Hi, I'm looking for help on this use case:
I have several modules managing e.g. ntp and ssh on some nodes. The content of ntp.conf and sshd_config are generated from templates for most of the nodes. Now we have a use case where some nodes need specific sshd_config or other admins need to make permanent local edits to those files or even provide their own sshd_config. How can I select between source and template for file resouces and how do I organize this in my VCS? Snippet from ssh module => file { $config : ensure => file, owner => 0, group => 0, mode => 0600, content => template("${module_name}/${config_tpl}"), require => Package[$pkg_name], notify => Service[$svc_name] } How can I incorporate a selector that checks for a source first on the fileserver? and defaults to the sshd_config template? if source => "puppet://private/${module_name}/file/sshd_config else content => template("${module_name}/${config_tpl}") end I have seen some post showing a select like this inside the module, but every module has its own repository and I don't want these node specific configs inside the module. source => "puppet:///files/modules/${module_name}/etc/ssh/sshd_config.$hostname", "puppet:///files/modules/${module_name}/etc/ssh/sshd_config.$hostname", Hope someone can give me some pointers on how you (would) do this. Thank you! -- Met vriendelijke groet, Kind Regards, Martin Willemsma -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.