View difference between Paste ID: wvW1Hvgc and u63Q1vZb
SHOW: | | - or go back to the newest paste.
1
if $puppet_interval {
2
  $action = 'set'
3
} else {
4
  $action = 'del'
5
}
6
7
augeas { 'puppet.conf':
8
    context => '/files/etc/puppet.conf',
9-
  }
9+
10
      "set agent/server $::servername",
11-
  if $puppet_interval {
11+
12-
    Augeas['puppet.conf'] {
12+
      "${action}  agent/runinterval $puppet_interval",
13-
      changes +> [
13+
14-
        "set agent/runinterval $puppet_interval",
14+
15-
      ],
15+
16-
    }
16+