On Mon, Apr 26, 2010 at 9:37 AM, Julian Simpson <simpsonjul...@gmail.com> 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 s_...@app09.fr.xxx.com puppetd[10289]: Starting Puppet
client version 0.24.8
Apr 26 09:42:31 s_...@app09.fr.xxx.com 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 puppet-us...@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.

Reply via email to