[vagrant@localhost ~]$ cat sectiononly.pp |
$testpath = '/home/vagrant/foo.ini'file { $testpath: |
ensure => present |
}ini_setting { 'test': |
ensure => present, |
section => 'test', |
path => $testpath, |
}File <||> -> Ini_setting <||> |
[vagrant@localhost ~]$ puppet apply sectiononly.pp --modulepath /usr/share/openstack-puppet/modules/ |
Notice: Compiled catalog for localhost.localdomain in environment production in 0.02 seconds |
Notice: /Stage[main]/Main/File[/home/vagrant/foo.ini]/ensure: created |
Notice: /Stage[main]/Main/Ini_setting[test]/ensure: created |
Notice: Applied catalog in 0.01 seconds |
[vagrant@localhost ~]$ cat foo.ini |
[test] |
[vagrant@localhost ~]$ puppet apply sectiononly.pp --modulepath /usr/share/openstack-puppet/modules/ |
Notice: Compiled catalog for localhost.localdomain in environment production in 0.02 seconds |
Notice: /Stage[main]/Main/Ini_setting[test]/ensure: created |
Notice: Applied catalog in 0.02 seconds |
[vagrant@localhost ~]$ cat foo.ini |
[test] |
[vagrant@localhost ~]$ puppet apply sectiononly.pp --modulepath /usr/share/openstack-puppet/modules/ |
Notice: Compiled catalog for localhost.localdomain in environment production in 0.02 seconds |
Notice: /Stage[main]/Main/Ini_setting[test]/ensure: created |
Notice: Applied catalog in 0.02 seconds |
[vagrant@localhost ~]$
|