Skip to content

Commit

Permalink
Merge pull request redhat-openstack#181 from hunner/tweak_readme
Browse files Browse the repository at this point in the history
Reorder output and remove whitespace
  • Loading branch information
Jean B. committed Jul 28, 2015
2 parents 43f0c68 + af39974 commit ab87c73
Showing 1 changed file with 19 additions and 15 deletions.
34 changes: 19 additions & 15 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,6 @@ The inifile module tries hard not to manipulate your file any more than it needs

Use the `ini_subsetting` type:

~~~puppet
JAVA_ARGS="-Xmx512m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/log/pe-puppetdb/puppetdb-oom.hprof"
~~~


~~~puppet
ini_subsetting {'sample subsetting':
ensure => present,
Expand All @@ -67,13 +62,15 @@ ini_subsetting {'sample subsetting':
}
~~~

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

~~~puppet
default:
minage = 1
JAVA_ARGS="-Xmx512m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/log/pe-puppetdb/puppetdb-oom.hprof"
~~~


###Use a non-standard section header

~~~puppet
ini_setting { 'default minage':
ensure => present,
Expand All @@ -86,6 +83,13 @@ ini_setting { 'default minage':
}
~~~

Results in:

~~~puppet
default:
minage = 1
~~~

###Implement child providers

You might want to create child providers that inherit the `ini_setting` provider, for one or both of these purposes:
Expand Down Expand Up @@ -219,9 +223,9 @@ For the profile `example`:
class profile::example (
$settings,
) {
validate_hash($settings)
$defaults = { 'path' => '/tmp/foo.ini' }
create_ini_settings($settings, $defaults)
validate_hash($settings)
$defaults = { 'path' => '/tmp/foo.ini' }
create_ini_settings($settings, $defaults)
}
~~~

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

*Optional.* Accepts a hash to be used as the values for any attributes not defined in the first argument.

~~~puppet
$example = {
'section1' => {
'setting1' => {
'value' => 'value1', 'path' => '/tmp/foo.ini'
}
}
'value' => 'value1', 'path' => '/tmp/foo.ini'
}
}
}
~~~

Expand Down

0 comments on commit ab87c73

Please sign in to comment.