Skip to content

Commit ab87c73

Browse files
author
Jean B.
committed
Merge pull request #181 from hunner/tweak_readme
Reorder output and remove whitespace
2 parents 43f0c68 + af39974 commit ab87c73

1 file changed

Lines changed: 19 additions & 15 deletions

File tree

README.markdown

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,6 @@ The inifile module tries hard not to manipulate your file any more than it needs
5050

5151
Use the `ini_subsetting` type:
5252

53-
~~~puppet
54-
JAVA_ARGS="-Xmx512m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/log/pe-puppetdb/puppetdb-oom.hprof"
55-
~~~
56-
57-
5853
~~~puppet
5954
ini_subsetting {'sample subsetting':
6055
ensure => present,
@@ -67,13 +62,15 @@ ini_subsetting {'sample subsetting':
6762
}
6863
~~~
6964

70-
###Use a non-standard section header
65+
Results in managing this `-Xmx` subsetting:
7166

7267
~~~puppet
73-
default:
74-
minage = 1
68+
JAVA_ARGS="-Xmx512m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/log/pe-puppetdb/puppetdb-oom.hprof"
7569
~~~
7670

71+
72+
###Use a non-standard section header
73+
7774
~~~puppet
7875
ini_setting { 'default minage':
7976
ensure => present,
@@ -86,6 +83,13 @@ ini_setting { 'default minage':
8683
}
8784
~~~
8885

86+
Results in:
87+
88+
~~~puppet
89+
default:
90+
minage = 1
91+
~~~
92+
8993
###Implement child providers
9094

9195
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`:
219223
class profile::example (
220224
$settings,
221225
) {
222-
validate_hash($settings)
223-
$defaults = { 'path' => '/tmp/foo.ini' }
224-
create_ini_settings($settings, $defaults)
226+
validate_hash($settings)
227+
$defaults = { 'path' => '/tmp/foo.ini' }
228+
create_ini_settings($settings, $defaults)
225229
}
226230
~~~
227231

@@ -375,14 +379,14 @@ Manages multiple `ini_setting` resources from a hash. Note that this cannot be u
375379
##### Second argument: `defaults`
376380

377381
*Optional.* Accepts a hash to be used as the values for any attributes not defined in the first argument.
378-
382+
379383
~~~puppet
380384
$example = {
381385
'section1' => {
382386
'setting1' => {
383-
'value' => 'value1', 'path' => '/tmp/foo.ini'
384-
}
385-
}
387+
'value' => 'value1', 'path' => '/tmp/foo.ini'
388+
}
389+
}
386390
}
387391
~~~
388392

0 commit comments

Comments
 (0)