puppetlabs/puppetlabs-razor — pull request #64 by sileht (2012-08-27 17:50:59+00:00)
Title: Generate configuration from "razor config"

Hi,

I have writen a variant of the following pull request to keep in sync razor_server.conf and razor.ipxe files with razor project:
https://github.com/puppetlabs/puppetlabs-razor/pull/63

It allow to customize any razor_server.conf field too.

The idea is to have a hash to store non default value of the config file,
a concat file is built with three part:
- the header
- the default configuration without customised fields provided in the hash
- the customized field from the hash
concat ensure that Service["razor"] in restart only if final file has been changed
this match the recommendation of nian in the pull request 63

The changeset contains:
- the patch :)
- updated spec and fixture
- updated dependencies

Related issue: https://github.com/puppetlabs/puppetlabs-razor/issues/43

Let me know for any other improvements or for anything else.

Cheers.