Reorder output and remove whitespace
This commit is contained in:
parent
43f0c68631
commit
af39974708
1 changed files with 19 additions and 15 deletions
|
@ -50,11 +50,6 @@ The inifile module tries hard not to manipulate your file any more than it needs
|
||||||
|
|
||||||
Use the `ini_subsetting` type:
|
Use the `ini_subsetting` type:
|
||||||
|
|
||||||
~~~puppet
|
|
||||||
JAVA_ARGS="-Xmx512m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/log/pe-puppetdb/puppetdb-oom.hprof"
|
|
||||||
~~~
|
|
||||||
|
|
||||||
|
|
||||||
~~~puppet
|
~~~puppet
|
||||||
ini_subsetting {'sample subsetting':
|
ini_subsetting {'sample subsetting':
|
||||||
ensure => present,
|
ensure => present,
|
||||||
|
@ -67,13 +62,15 @@ ini_subsetting {'sample subsetting':
|
||||||
}
|
}
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
###Use a non-standard section header
|
Results in managing this `-Xmx` subsetting:
|
||||||
|
|
||||||
~~~puppet
|
~~~puppet
|
||||||
default:
|
JAVA_ARGS="-Xmx512m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/log/pe-puppetdb/puppetdb-oom.hprof"
|
||||||
minage = 1
|
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
|
|
||||||
|
###Use a non-standard section header
|
||||||
|
|
||||||
~~~puppet
|
~~~puppet
|
||||||
ini_setting { 'default minage':
|
ini_setting { 'default minage':
|
||||||
ensure => present,
|
ensure => present,
|
||||||
|
@ -86,6 +83,13 @@ ini_setting { 'default minage':
|
||||||
}
|
}
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
|
Results in:
|
||||||
|
|
||||||
|
~~~puppet
|
||||||
|
default:
|
||||||
|
minage = 1
|
||||||
|
~~~
|
||||||
|
|
||||||
###Implement child providers
|
###Implement child providers
|
||||||
|
|
||||||
You might want to create child providers that inherit the `ini_setting` provider, for one or both of these purposes:
|
You might want to create child providers that inherit the `ini_setting` provider, for one or both of these purposes:
|
||||||
|
@ -219,9 +223,9 @@ For the profile `example`:
|
||||||
class profile::example (
|
class profile::example (
|
||||||
$settings,
|
$settings,
|
||||||
) {
|
) {
|
||||||
validate_hash($settings)
|
validate_hash($settings)
|
||||||
$defaults = { 'path' => '/tmp/foo.ini' }
|
$defaults = { 'path' => '/tmp/foo.ini' }
|
||||||
create_ini_settings($settings, $defaults)
|
create_ini_settings($settings, $defaults)
|
||||||
}
|
}
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
|
@ -375,14 +379,14 @@ Manages multiple `ini_setting` resources from a hash. Note that this cannot be u
|
||||||
##### Second argument: `defaults`
|
##### Second argument: `defaults`
|
||||||
|
|
||||||
*Optional.* Accepts a hash to be used as the values for any attributes not defined in the first argument.
|
*Optional.* Accepts a hash to be used as the values for any attributes not defined in the first argument.
|
||||||
|
|
||||||
~~~puppet
|
~~~puppet
|
||||||
$example = {
|
$example = {
|
||||||
'section1' => {
|
'section1' => {
|
||||||
'setting1' => {
|
'setting1' => {
|
||||||
'value' => 'value1', 'path' => '/tmp/foo.ini'
|
'value' => 'value1', 'path' => '/tmp/foo.ini'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue