We have started having developers make changes to our manifests file. We have a couple of changes with errors that have broken updating for all clients. We even ran into a bug where a broken configuration on puppetmaster start would cause it to return 500 server errors to all clients. I would like to have a way for developers to check their changes before committing them to version control and updating the production puppet server. I would like a script that could check the validity of the entire configuration. This would include both syntax errors and logic errors like including a class that isn''t defined. I have used "puppet --parseonly" but that seems to only check for syntax errors. Does anybody have a script like this? Is anyone else interested in this? My idea is that the script would do load the configuration like the server does. - Ian
Ian Burrell wrote:> We have started having developers make changes to our manifests file. > We have a couple of changes with errors that have broken updating for > all clients. We even ran into a bug where a broken configuration on > puppetmaster start would cause it to return 500 server errors to all > clients. I would like to have a way for developers to check their > changes before committing them to version control and updating the > production puppet server. > > I would like a script that could check the validity of the entire > configuration. This would include both syntax errors and logic errors > like including a class that isn''t defined. I have used "puppet > --parseonly" but that seems to only check for syntax errors. Does > anybody have a script like this? Is anyone else interested in this? > My idea is that the script would do load the configuration like the > server does. > > - Ian > _______________________________________________ > Puppet-users mailing list > Puppet-users@madstop.com > https://mail.madstop.com/mailman/listinfo/puppet-users >I would be very interested in such a script actually.... At the moment at my site we are using --parseonly within vi ":!puppet --noop --parseonly /etc/puppet/manifests/site.pp && echo OK %" but obviously non-syntax errors do not show up via this method. We also run non-operational puppetd on a test server but still a script would make things much easier... cheers M.