25 строки
692 Б
Puppet
25 строки
692 Б
Puppet
ini_setting { "sample setting":
|
|
path => '/tmp/foo.ini',
|
|
section => 'foo',
|
|
setting => 'foosetting',
|
|
value => 'FOO!',
|
|
ensure => present,
|
|
}
|
|
|
|
ini_setting { "sample setting2":
|
|
path => '/tmp/foo.ini',
|
|
section => 'bar',
|
|
setting => 'barsetting',
|
|
value => 'BAR!',
|
|
key_val_separator => '=',
|
|
ensure => present,
|
|
require => Ini_setting["sample setting"],
|
|
}
|
|
|
|
ini_setting { "sample setting3":
|
|
path => '/tmp/foo.ini',
|
|
section => 'bar',
|
|
setting => 'bazsetting',
|
|
ensure => absent,
|
|
require => Ini_setting["sample setting2"],
|
|
}
|