module-inifile/examples/ini_subsetting.pp
Dmitry Ilyin 357ecf8e8e Add insert_type and subsetting_key_val_separator
* Insert_type and insert value can define where
  a new subsetting element will be placed.
* subsetting_key_val_separator allows you to have
  a separator character between a subsetting name
  and its value.
* Refactor ini_subsetting and its spec.
2016-07-01 13:49:10 +03:00

31 lines
1 KiB
Puppet

ini_subsetting { 'sample subsetting':
ensure => 'present',
section => '',
key_val_separator => '=',
path => '/etc/default/pe-puppetdb',
setting => 'JAVA_ARGS',
subsetting => '-Xmx',
value => '512m',
}
ini_subsetting { 'sample subsetting2':
ensure => 'absent',
section => '',
key_val_separator => '=',
path => '/etc/default/pe-puppetdb',
setting => 'JAVA_ARGS',
subsetting => '-Xms',
}
ini_subsetting { 'sample subsetting3':
ensure => 'present',
section => '',
key_val_separator => '=',
subsetting_key_val_separator => ':',
path => '/etc/default/pe-puppetdb',
setting => 'JAVA_ARGS',
subsetting => '-XX',
value => '+HeapDumpOnOutOfMemoryError',
insert_type => 'after',
insert_value => '-Xmx',
}