-
-
Save endzyme/5b064b126808e5a09ba3 to your computer and use it in GitHub Desktop.
Hiera Getting Started Advanced Source
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
--- | |
ntp::service_enable: true | |
ntp::service_ensure: 'running' | |
ntp::autoupdate: false | |
ntp::servers: | |
- 0.us.pool.ntp.org | |
- 1.us.pool.ntp.org |
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
--- | |
ntp::servers: | |
- 0.us.denver.pool.ntp.org | |
- 1.us.denver.pool.ntp.org |
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
--- | |
ntp::servers: | |
- 0.us.oregon.pool.ntp.org | |
- 1.us.oregon.pool.ntp.org |
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
--- | |
:backends: | |
- yaml | |
:yaml: | |
:datadir: /etc/puppet/manifests/data | |
:hierarchy: | |
- nodes/%{::clientcert} | |
- types/%{server_type} | |
- datacenters/%{::datacenter} | |
- %{::environment} | |
- common | |
:logger: console |
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
--- | |
apache::vhosts: | |
'anotherSub.loc': | |
priority: 3 | |
port: '8081' | |
docroot: '/var/www/specificdir' | |
'anotherSub2.loc': | |
priority: 3 | |
port: '8083' | |
docroot: '/var/www/specificdi233r' |
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
--- | |
ntp::service_enable: true | |
ntp::service_ensure: 'running' | |
ntp::autoupdate: true | |
ntp::servers: | |
- ntp.ubuntu.com |
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
node /ntp(\d+)?.localhost/ { | |
$server_type = 'time-server' | |
include ntp | |
} | |
node /apache(\d+)?.localhost/ { | |
$server_type = 'web-server' | |
include ntp | |
include apache | |
$resource = hiera_hash('apache::vhosts') | |
create_resources('apache::vhost', $resource) | |
} |
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
--- | |
ntp::autoupdate: true | |
ntp::servers: | |
- '0.us.pool.ntp.org' | |
- '1.us.pool.ntp.org' | |
- '2.us.pool.ntp.org' | |
- '3.us.pool.ntp.org' |
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
--- | |
ntp::service_enable: false | |
ntp::service_ensure: 'stopped' | |
apache::default_vhost: false | |
apache::vhosts: | |
'subdomain2.loc': | |
priority: 2 | |
port: 8080 | |
docroot: '/var/www/somethingelse' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment