-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #213 from myii/feat/add-gentoo
feat: add Gentoo support
- Loading branch information
Showing
9 changed files
with
155 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,9 @@ Suse: | |
pkg: | ||
name: TEMPLATE-suse | ||
|
||
Gentoo: {} | ||
Gentoo: | ||
pkg: | ||
name: TEMPLATE-gentoo | ||
|
||
Arch: | ||
pkg: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
test/integration/default/files/_mapdata/gentoo-2-sysd.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# yamllint disable rule:indentation rule:line-length | ||
# Gentoo-2 | ||
--- | ||
added_in_defaults: defaults_value | ||
added_in_lookup: lookup_value | ||
added_in_pillar: pillar_value | ||
arch: amd64 | ||
config: /etc/template-formula.conf | ||
lookup: | ||
added_in_lookup: lookup_value | ||
master: template-master | ||
winner: lookup | ||
master: template-master | ||
pkg: | ||
name: app-shells/bash | ||
rootgroup: root | ||
service: | ||
name: systemd-journald | ||
subcomponent: | ||
config: /etc/TEMPLATE-subcomponent-formula.conf | ||
tofs: | ||
files_switch: | ||
- any/path/can/be/used/here | ||
- id | ||
- roles | ||
- osfinger | ||
- os | ||
- os_family | ||
source_files: | ||
TEMPLATE-config-file-file-managed: | ||
- example.tmpl.jinja | ||
TEMPLATE-subcomponent-config-file-file-managed: | ||
- subcomponent-example.tmpl.jinja | ||
winner: pillar |
34 changes: 34 additions & 0 deletions
34
test/integration/default/files/_mapdata/gentoo-2-sysv.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# yamllint disable rule:indentation rule:line-length | ||
# Gentoo-2 | ||
--- | ||
added_in_defaults: defaults_value | ||
added_in_lookup: lookup_value | ||
added_in_pillar: pillar_value | ||
arch: amd64 | ||
config: /etc/template-formula.conf | ||
lookup: | ||
added_in_lookup: lookup_value | ||
master: template-master | ||
winner: lookup | ||
master: template-master | ||
pkg: | ||
name: app-shells/bash | ||
rootgroup: root | ||
service: | ||
name: mtab | ||
subcomponent: | ||
config: /etc/TEMPLATE-subcomponent-formula.conf | ||
tofs: | ||
files_switch: | ||
- any/path/can/be/used/here | ||
- id | ||
- roles | ||
- osfinger | ||
- os | ||
- os_family | ||
source_files: | ||
TEMPLATE-config-file-file-managed: | ||
- example.tmpl.jinja | ||
TEMPLATE-subcomponent-config-file-file-managed: | ||
- subcomponent-example.tmpl.jinja | ||
winner: pillar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,3 +20,4 @@ supports: | |
- platform-name: amazon | ||
- platform-name: oracle | ||
- platform-name: arch | ||
- platform-name: gentoo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,3 +17,4 @@ supports: | |
- platform-name: amazon | ||
- platform-name: oracle | ||
- platform-name: arch | ||
- platform-name: gentoo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# -*- coding: utf-8 -*- | ||
# vim: ft=yaml | ||
--- | ||
portage: | ||
sync_wait_one_day: true | ||
TEMPLATE: | ||
pkg: | ||
name: 'app-shells/bash' | ||
service: | ||
name: "{{ 'systemd-journald' if grains.init == 'systemd' else 'mtab' }}" |