On Mon, Apr 26, 2010 at 9:37 AM, Julian Simpson <[email protected]> wrote: > >> The first poster said he would include os::centos in his module. What >> happens if the module might be running on either CentOS or Ubuntu? I >> don't think 'include os::centos' will work so great on an Ubuntu >> system. How do you make it dynamic? > > By using the $operatingsystem variable in the include. You can make an > empty os::ubuntu class in a couple of lines if you have no resources to > declare.
Let me guess. Apr 26 09:42:29 [email protected] puppetd[10289]: Starting Puppet client version 0.24.8 Apr 26 09:42:31 [email protected] puppetd[10289]: Could not retrieve catalog: Could not parse for environment production: Syntax error at ':'; expected '}' at /etc/puppet/manifests/nodes/fr.xxx.com/app09.pp:22 line 22 being: include opsys::$operatingsystem .... that using facter variables in include statements is not supported in puppet 0.24.8. Friggin brilliant. Doug. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
