Created
June 24, 2014 18:18
-
-
Save zipkid/b9f023587cb6b8ae909d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
19:58 < happytux> I do this because I want that the role 'role::mail::primary' will be looked up as mail_primary.yaml. | |
see files... |
This file contains hidden or 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
as fact or in site.pp or via an ENC or whatever method set $role and $subrol for a node |
This file contains hidden or 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
in the following hierarchy | |
/etc/puppet/hieradata/mail/primary.yaml | |
/etc/puppet/hieradata/mail/secondary.yaml | |
/etc/puppet/hieradata/mail/common.yaml | |
/etc/puppet/hieradata/<otherrole>/common.yaml |
This file contains hidden or 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
--- | |
:hierarchy: | |
- 01_nodes/%{::fqdn} | |
- 01_nodes/%{::hostname} | |
- 02_roles/%{::role}/${::subrole} | |
- 02_roles/%{::role}/common | |
- common | |
:yaml: | |
:datadir: /etc/puppet/hieradata |
This file contains hidden or 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
--- | |
classes: | |
- <class common to all mail subroles> |
This file contains hidden or 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
--- | |
classes: | |
- postfix | |
- <someclass> |
This file contains hidden or 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 will combine the array of all the classes in the matching yaml files in the hierarchy. | |
hiera_include("classes", [] ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment