module-inifile/tests/ini_setting.pp

26 lines
618 B
ObjectPascal
Raw Normal View History

2013-04-10 14:57:39 +02:00
ini_setting { 'sample setting':
ensure => present,
path => '/tmp/foo.ini',
section => 'foo',
setting => 'foosetting',
value => 'FOO!',
}
2013-04-10 14:57:39 +02:00
ini_setting { 'sample setting2':
ensure => present,
path => '/tmp/foo.ini',
section => 'bar',
setting => 'barsetting',
value => 'BAR!',
key_val_separator => '=',
require => Ini_setting['sample setting'],
}
2012-10-21 07:16:36 +02:00
2013-04-10 14:57:39 +02:00
ini_setting { 'sample setting3':
ensure => absent,
path => '/tmp/foo.ini',
section => 'bar',
setting => 'bazsetting',
require => Ini_setting['sample setting2'],
2012-10-21 07:16:36 +02:00
}