Advertisement
Guest User

Untitled

a guest
Feb 12th, 2016
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Puppet 0.52 KB | None | 0 0
  1. augeas { 'puppet.conf':
  2.     context => '/files/etc/puppet.conf',
  3.     changes => [
  4.       "set agent/server $::servername",
  5.       "set agent/environment $::environment",
  6.     ],
  7.     requires => Package['puppet'],
  8.     notify => Service['puppet'],
  9.   }
  10.  
  11.   if $puppet_interval {
  12.     Augeas['puppet.conf'] {
  13.       changes +> [
  14.         "set agent/runinterval $puppet_interval",
  15.       ],
  16.     }
  17.   } else {
  18.     Augeas['puppet.conf'] {
  19.       changes +> [
  20.         "del agent/runinterval $puppet_interval",
  21.       ],
  22.     }
  23.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement