I'd like to initialize a user config file once, at software install time, then allow application admins to manage the file contents via web interface (add/remove users, etc.) - I have come up with the following:
file { 'users':
ensure => present,
content => template('my-template'),
validate_cmd => '/bin/test ! -f users.control',
}
file { 'users.control':
ensure => present,
content => "puppet managed",
require => File['users'],
}
The above code works ok, however I was wondering if there is a more elegant solution.
Thanks,
Steve