File: test.pp

package info (click to toggle)
puppet-module-puppetlabs-inifile 5.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 308 kB
  • sloc: ruby: 872; sh: 7; makefile: 2
file content (31 lines) | stat: -rw-r--r-- 658 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
ini_setting { "test setting":
  ensure  => present,
  path    => '/tmp/test1.ini',
  section => 'gazonk',
  setting => 'foo',
  value   => 'bar',
}

ini_subsetting {'test subsetting':
  ensure            => present,
  section           => '',
  key_val_separator => '=',
  path              => '/tmp/test2.ini',
  setting           => 'flargle',
  subsetting        => '-foo',
  value             => 'arglebargle',
}

$defaults = { 'path' => '/tmp/test3.ini' }
$example = {
  'one' => {
    'here'  => 'there',
    'gone' => {
      'ensure' => 'absent'
    }
  },
  'two' => {
    'meep' => 'wibble',
  }
}
inifile::create_ini_settings($example, $defaults)