search in a section a setting and execute a command

9 views
Skip to first unread message

puppetstan

unread,
Feb 28, 2017, 12:24:17 PM2/28/17
to Puppet Users
Hi,

Actually my configuation permit to search in a section a parameter and give it a value. this it's ok

ini_setting {'priority':
  ensure                => present,
  path                  => '/etc/file',
  section               => 'main',
  key_val_separator     => '=',
  setting               => 'priority',
  value                 => '5',
}


But now, i would like doing the same (search in a section a parameter) if he doesnt exist, not create it and give a value but execute a command...

can you have an idea?
regards
Reply all
Reply to author
Forward
0 new messages