File: ini_setting.pp

package info (click to toggle)
puppet-module-puppetlabs-inifile 5.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 308 kB
  • sloc: ruby: 872; sh: 7; makefile: 2
file content (25 lines) | stat: -rw-r--r-- 618 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
ini_setting { 'sample setting':
  ensure  => present,
  path    => '/tmp/foo.ini',
  section => 'foo',
  setting => 'foosetting',
  value   => 'FOO!',
}

ini_setting { 'sample setting2':
  ensure            => present,
  path              => '/tmp/foo.ini',
  section           => 'bar',
  setting           => 'barsetting',
  value             => 'BAR!',
  key_val_separator => '=',
  require           => Ini_setting['sample setting'],
}

ini_setting { 'sample setting3':
  ensure  => absent,
  path    => '/tmp/foo.ini',
  section => 'bar',
  setting => 'bazsetting',
  require => Ini_setting['sample setting2'],
}