Support for dns aliases, dynamic creation of zone files (dependent
on the environment fact) from Facter facts and a fix for environment support in puppet.
This commit is contained in:
parent
0479aeb8b8
commit
b470ceb9b6
6 changed files with 75 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
|||
|
||||
# Install and configure Puppet client.
|
||||
#
|
||||
class puppet::client {
|
||||
class puppet::client ($environment='') {
|
||||
|
||||
tag("bootstrap")
|
||||
|
||||
|
|
|
@ -39,6 +39,10 @@
|
|||
# The bit length of keys.
|
||||
keylength = <%= puppet_keylength %>
|
||||
|
||||
<% if !(environment == '') %>
|
||||
# Environment this entity is in.
|
||||
environment = <%= environment %>
|
||||
<% end -%>
|
||||
<% if puppetversion[/\d+/].to_i >= 2 -%>
|
||||
[agent]
|
||||
# Ignore site manifest when run as agent. Fixes warnings about
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue