Skip to content

Commit

Permalink
feat(map.jinja): add documentation header to parameter files
Browse files Browse the repository at this point in the history
  • Loading branch information
baby-gnu committed Feb 16, 2020
1 parent b11d21c commit dfdf86d
Show file tree
Hide file tree
Showing 46 changed files with 617 additions and 107 deletions.
1 change: 1 addition & 0 deletions TEMPLATE/parameters/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ map.jinja:
- osfinger
- roles
- any/path/can/be/used/here.yaml
...
15 changes: 13 additions & 2 deletions TEMPLATE/parameters/os/Amazon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,22 @@
# vim: ft=yaml
#
# Setup variables specific to salt['config.get']('os') == Amazon.
# You just need to add the key:values for an `os` that differ
# You just need to add the key:values for this `os` that differ
# from `defaults.yaml` + `<osarch>.yaml` + `<os_family>.yaml`.
#
# If you do not need to provide defaults via the `os` grain,
# If you do not need to provide defaults via the `os` config,
# you can remove this file or provide at least an empty dict, e.g.
# values: {}
#
# This file will be merged with `salt.slsutil.merge`:
#
# You can select the merging strategy by defining the `strategy` dict
# with one of: `aggregate`, `list`, `overwrite`, `recurse`, `smart`, e.g.
# strategy: 'recurse'
#
# If you use the `recurse` or `overwrite` strategy, you can aggregate
# the lists by defining the `merge_lists` dict with a boolean, e.g.
# merge_lists: 'true'
---
values: {}
...
15 changes: 13 additions & 2 deletions TEMPLATE/parameters/os/CentOS.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,22 @@
# vim: ft=yaml
#
# Setup variables specific to salt['config.get']('os') == CentOS.
# You just need to add the key:values for an `os` that differ
# You just need to add the key:values for this `os` that differ
# from `defaults.yaml` + `<osarch>.yaml` + `<os_family>.yaml`.
#
# If you do not need to provide defaults via the `os` grain,
# If you do not need to provide defaults via the `os` config,
# you can remove this file or provide at least an empty dict, e.g.
# values: {}
#
# This file will be merged with `salt.slsutil.merge`:
#
# You can select the merging strategy by defining the `strategy` dict
# with one of: `aggregate`, `list`, `overwrite`, `recurse`, `smart`, e.g.
# strategy: 'recurse'
#
# If you use the `recurse` or `overwrite` strategy, you can aggregate
# the lists by defining the `merge_lists` dict with a boolean, e.g.
# merge_lists: 'true'
---
values: {}
...
15 changes: 13 additions & 2 deletions TEMPLATE/parameters/os/Fedora.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,26 @@
# vim: ft=yaml
#
# Setup variables specific to salt['config.get']('os') == Fedora.
# You just need to add the key:values for an `os` that differ
# You just need to add the key:values for this `os` that differ
# from `defaults.yaml` + `<osarch>.yaml` + `<os_family>.yaml`.
#
# If you do not need to provide defaults via the `os` grain,
# If you do not need to provide defaults via the `os` config,
# you can remove this file or provide at least an empty dict, e.g.
# values: {}
#
# This file will be merged with `salt.slsutil.merge`:
#
# You can select the merging strategy by defining the `strategy` dict
# with one of: `aggregate`, `list`, `overwrite`, `recurse`, `smart`, e.g.
# strategy: 'recurse'
#
# If you use the `recurse` or `overwrite` strategy, you can aggregate
# the lists by defining the `merge_lists` dict with a boolean, e.g.
# merge_lists: 'true'
---
values:
pkg:
name: TEMPLATE-fedora
service:
name: service-fedora
...
15 changes: 13 additions & 2 deletions TEMPLATE/parameters/os/Funtoo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,22 @@
# vim: ft=yaml
#
# Setup variables specific to salt['config.get']('os') == Funtoo.
# You just need to add the key:values for an `os` that differ
# You just need to add the key:values for this `os` that differ
# from `defaults.yaml` + `<osarch>.yaml` + `<os_family>.yaml`.
#
# If you do not need to provide defaults via the `os` grain,
# If you do not need to provide defaults via the `os` config,
# you can remove this file or provide at least an empty dict, e.g.
# values: {}
#
# This file will be merged with `salt.slsutil.merge`:
#
# You can select the merging strategy by defining the `strategy` dict
# with one of: `aggregate`, `list`, `overwrite`, `recurse`, `smart`, e.g.
# strategy: 'recurse'
#
# If you use the `recurse` or `overwrite` strategy, you can aggregate
# the lists by defining the `merge_lists` dict with a boolean, e.g.
# merge_lists: 'true'
---
values: {}
...
15 changes: 13 additions & 2 deletions TEMPLATE/parameters/os/Manjaro.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,22 @@
# vim: ft=yaml
#
# Setup variables specific to salt['config.get']('os') == Manjaro.
# You just need to add the key:values for an `os` that differ
# You just need to add the key:values for this `os` that differ
# from `defaults.yaml` + `<osarch>.yaml` + `<os_family>.yaml`.
#
# If you do not need to provide defaults via the `os` grain,
# If you do not need to provide defaults via the `os` config,
# you can remove this file or provide at least an empty dict, e.g.
# values: {}
#
# This file will be merged with `salt.slsutil.merge`:
#
# You can select the merging strategy by defining the `strategy` dict
# with one of: `aggregate`, `list`, `overwrite`, `recurse`, `smart`, e.g.
# strategy: 'recurse'
#
# If you use the `recurse` or `overwrite` strategy, you can aggregate
# the lists by defining the `merge_lists` dict with a boolean, e.g.
# merge_lists: 'true'
---
values: {}
...
15 changes: 13 additions & 2 deletions TEMPLATE/parameters/os/Raspbian.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,22 @@
# vim: ft=yaml
#
# Setup variables specific to salt['config.get']('os') == Raspbian.
# You just need to add the key:values for an `os` that differ
# You just need to add the key:values for this `os` that differ
# from `defaults.yaml` + `<osarch>.yaml` + `<os_family>.yaml`.
#
# If you do not need to provide defaults via the `os` grain,
# If you do not need to provide defaults via the `os` config,
# you can remove this file or provide at least an empty dict, e.g.
# values: {}
#
# This file will be merged with `salt.slsutil.merge`:
#
# You can select the merging strategy by defining the `strategy` dict
# with one of: `aggregate`, `list`, `overwrite`, `recurse`, `smart`, e.g.
# strategy: 'recurse'
#
# If you use the `recurse` or `overwrite` strategy, you can aggregate
# the lists by defining the `merge_lists` dict with a boolean, e.g.
# merge_lists: 'true'
---
values: {}
...
15 changes: 13 additions & 2 deletions TEMPLATE/parameters/os/SUSE.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,22 @@
# vim: ft=yaml
#
# Setup variables specific to salt['config.get']('os') == SUSE.
# You just need to add the key:values for an `os` that differ
# You just need to add the key:values for this `os` that differ
# from `defaults.yaml` + `<osarch>.yaml` + `<os_family>.yaml`.
#
# If you do not need to provide defaults via the `os` grain,
# If you do not need to provide defaults via the `os` config,
# you can remove this file or provide at least an empty dict, e.g.
# values: {}
#
# This file will be merged with `salt.slsutil.merge`:
#
# You can select the merging strategy by defining the `strategy` dict
# with one of: `aggregate`, `list`, `overwrite`, `recurse`, `smart`, e.g.
# strategy: 'recurse'
#
# If you use the `recurse` or `overwrite` strategy, you can aggregate
# the lists by defining the `merge_lists` dict with a boolean, e.g.
# merge_lists: 'true'
---
values: {}
...
15 changes: 13 additions & 2 deletions TEMPLATE/parameters/os/SmartOS.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,22 @@
# vim: ft=yaml
#
# Setup variables specific to salt['config.get']('os') == SmartOS.
# You just need to add the key:values for an `os` that differ
# You just need to add the key:values for this `os` that differ
# from `defaults.yaml` + `<osarch>.yaml` + `<os_family>.yaml`.
#
# If you do not need to provide defaults via the `os` grain,
# If you do not need to provide defaults via the `os` config,
# you can remove this file or provide at least an empty dict, e.g.
# values: {}
#
# This file will be merged with `salt.slsutil.merge`:
#
# You can select the merging strategy by defining the `strategy` dict
# with one of: `aggregate`, `list`, `overwrite`, `recurse`, `smart`, e.g.
# strategy: 'recurse'
#
# If you use the `recurse` or `overwrite` strategy, you can aggregate
# the lists by defining the `merge_lists` dict with a boolean, e.g.
# merge_lists: 'true'
---
values: {}
...
15 changes: 13 additions & 2 deletions TEMPLATE/parameters/os/Ubuntu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,25 @@
# vim: ft=yaml
#
# Setup variables specific to salt['config.get']('os') == Ubuntu.
# You just need to add the key:values for an `os` that differ
# You just need to add the key:values for this `os` that differ
# from `defaults.yaml` + `<osarch>.yaml` + `<os_family>.yaml`.
#
# If you do not need to provide defaults via the `os` grain,
# If you do not need to provide defaults via the `os` config,
# you can remove this file or provide at least an empty dict, e.g.
# values: {}
#
# This file will be merged with `salt.slsutil.merge`:
#
# You can select the merging strategy by defining the `strategy` dict
# with one of: `aggregate`, `list`, `overwrite`, `recurse`, `smart`, e.g.
# strategy: 'recurse'
#
# If you use the `recurse` or `overwrite` strategy, you can aggregate
# the lists by defining the `merge_lists` dict with a boolean, e.g.
# merge_lists: 'true'
---
values:
pkg:
name: TEMPLATE-ubuntu
config: /etc/TEMPLATE.d/custom-ubuntu.conf
...
15 changes: 13 additions & 2 deletions TEMPLATE/parameters/os/openSUSE.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,22 @@
# vim: ft=yaml
#
# Setup variables specific to salt['config.get']('os') == openSUSE.
# You just need to add the key:values for an `os` that differ
# You just need to add the key:values for this `os` that differ
# from `defaults.yaml` + `<osarch>.yaml` + `<os_family>.yaml`.
#
# If you do not need to provide defaults via the `os` grain,
# If you do not need to provide defaults via the `os` config,
# you can remove this file or provide at least an empty dict, e.g.
# values: {}
#
# This file will be merged with `salt.slsutil.merge`:
#
# You can select the merging strategy by defining the `strategy` dict
# with one of: `aggregate`, `list`, `overwrite`, `recurse`, `smart`, e.g.
# strategy: 'recurse'
#
# If you use the `recurse` or `overwrite` strategy, you can aggregate
# the lists by defining the `merge_lists` dict with a boolean, e.g.
# merge_lists: 'true'
---
values: {}
...
15 changes: 13 additions & 2 deletions TEMPLATE/parameters/os_family/Alpine.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,22 @@
# vim: ft=yaml
#
# Setup variables specific to salt['config.get']('os_family') == Alpine.
# You just need to add the key:values for an `os_family` that differ
# You just need to add the key:values for this `os_family` that differ
# from `defaults.yaml` + `<osarch>.yaml`.
#
# If you do not need to provide defaults via the `os_family` grain,
# If you do not need to provide defaults via the `os_family` config,
# you can remove this file or provide at least an empty dict, e.g.
# values: {}
#
# This file will be merged with `salt.slsutil.merge`:
#
# You can select the merging strategy by defining the `strategy` dict
# with one of: `aggregate`, `list`, `overwrite`, `recurse`, `smart`, e.g.
# strategy: 'recurse'
#
# If you use the `recurse` or `overwrite` strategy, you can aggregate
# the lists by defining the `merge_lists` dict with a boolean, e.g.
# merge_lists: 'true'
---
values: {}
...
16 changes: 14 additions & 2 deletions TEMPLATE/parameters/os_family/Arch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,27 @@
# vim: ft=yaml
#
# Setup variables specific to salt['config.get']('os_family') == Arch.
# You just need to add the key:values for an `os_family` that differ
# You just need to add the key:values for this `os_family` that differ
# from `defaults.yaml` + `<osarch>.yaml`.
#
# If you do not need to provide defaults via the `os_family` grain,
# If you do not need to provide defaults via the `os_family` config,
# you can remove this file or provide at least an empty dict, e.g.
# values: {}
#
# This file will be merged with `salt.slsutil.merge`:
#
# You can select the merging strategy by defining the `strategy` dict
# with one of: `aggregate`, `list`, `overwrite`, `recurse`, `smart`, e.g.
# strategy: 'recurse'
#
# If you use the `recurse` or `overwrite` strategy, you can aggregate
# the lists by defining the `merge_lists` dict with a boolean, e.g.
# merge_lists: 'true'
---
values:
pkg:
name: TEMPLATE-arch
service:
name: service-arch

...
16 changes: 14 additions & 2 deletions TEMPLATE/parameters/os_family/Debian.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,26 @@
# vim: ft=yaml
#
# Setup variables specific to salt['config.get']('os_family') == Debian.
# You just need to add the key:values for an `os_family` that differ
# You just need to add the key:values for this `os_family` that differ
# from `defaults.yaml` + `<osarch>.yaml`.
#
# If you do not need to provide defaults via the `os_family` grain,
# If you do not need to provide defaults via the `os_family` config,
# you can remove this file or provide at least an empty dict, e.g.
# values: {}
#
# This file will be merged with `salt.slsutil.merge`:
#
# You can select the merging strategy by defining the `strategy` dict
# with one of: `aggregate`, `list`, `overwrite`, `recurse`, `smart`, e.g.
# strategy: 'recurse'
#
# If you use the `recurse` or `overwrite` strategy, you can aggregate
# the lists by defining the `merge_lists` dict with a boolean, e.g.
# merge_lists: 'true'
---
values:
pkg:
name: TEMPLATE-debian
config: /etc/TEMPLATE.d/custom.conf

...
16 changes: 14 additions & 2 deletions TEMPLATE/parameters/os_family/FreeBSD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,24 @@
# vim: ft=yaml
#
# Setup variables specific to salt['config.get']('os_family') == FreeBSD.
# You just need to add the key:values for an `os_family` that differ
# You just need to add the key:values for this `os_family` that differ
# from `defaults.yaml` + `<osarch>.yaml`.
#
# If you do not need to provide defaults via the `os_family` grain,
# If you do not need to provide defaults via the `os_family` config,
# you can remove this file or provide at least an empty dict, e.g.
# values: {}
#
# This file will be merged with `salt.slsutil.merge`:
#
# You can select the merging strategy by defining the `strategy` dict
# with one of: `aggregate`, `list`, `overwrite`, `recurse`, `smart`, e.g.
# strategy: 'recurse'
#
# If you use the `recurse` or `overwrite` strategy, you can aggregate
# the lists by defining the `merge_lists` dict with a boolean, e.g.
# merge_lists: 'true'
---
values:
rootgroup: wheel

...
15 changes: 13 additions & 2 deletions TEMPLATE/parameters/os_family/Gentoo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,22 @@
# vim: ft=yaml
#
# Setup variables specific to salt['config.get']('os_family') == Gentoo.
# You just need to add the key:values for an `os_family` that differ
# You just need to add the key:values for this `os_family` that differ
# from `defaults.yaml` + `<osarch>.yaml`.
#
# If you do not need to provide defaults via the `os_family` grain,
# If you do not need to provide defaults via the `os_family` config,
# you can remove this file or provide at least an empty dict, e.g.
# values: {}
#
# This file will be merged with `salt.slsutil.merge`:
#
# You can select the merging strategy by defining the `strategy` dict
# with one of: `aggregate`, `list`, `overwrite`, `recurse`, `smart`, e.g.
# strategy: 'recurse'
#
# If you use the `recurse` or `overwrite` strategy, you can aggregate
# the lists by defining the `merge_lists` dict with a boolean, e.g.
# merge_lists: 'true'
---
values: {}
...
Loading

0 comments on commit dfdf86d

Please sign in to comment.