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
### Configure variables | |
These variables will be used for this snippet. Please substitute accordingly. | |
```bash | |
export RootCAName="root_ca" | |
export InterCAName="inter_ca" | |
export CommonName="hashidemos.io" | |
export InterCommonName="inter.hashidemos.io" | |
export Root_CA_ttl="730h" | |
export Inter_CA_ttl="350h" | |
export Cert_ttl="8h" |
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
[root@puppet2017 ~]# cat /tmp/test.pp | |
$epptemplate = @(EPP/L) | |
<%- | $nodes | -%> | |
My nodes: | |
<% $nodes.each |$n| { -%> | |
Hostname: <%= $n[0] %> | |
IP: <%= $n[1] %> | |
<% } -%> | |
| EPP |
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
--- | |
:backends: | |
- yaml | |
- eyaml | |
- mongodb | |
- xml | |
:yaml: | |
:datadir: "/etc/puppetlabs/code/environments/%{environment}/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
# Source global definitions | |
[[ -f /etc/bashrc ]] && source /etc/bashrc | |
# load customizations, such as the pretty git prompt. | |
# comment this out to use your own customizations. | |
[[ -f ~/.bashrc.puppet ]] && source ~/.bashrc.puppet | |
# Pull in customizations | |
[[ -f ~/.profile ]] && source ~/.profile |
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
node_group { 'PE ActiveMQ Broker': | |
ensure => 'present', | |
classes => {'puppet_enterprise::profile::amq::broker' => {}}, | |
environment => 'production', | |
id => '19394fe0-f0bd-4d3c-ad9d-3cc4ca626982', | |
override_environment => 'false', | |
parent => 'PE Infrastructure', | |
rule => ['or', ['=', 'name', 'master.puppetlabs.vm']], | |
} | |
node_group { 'PE Certificate Authority': |