[Puppet Users] sshd service enable on Ubuntu

2011-06-16 Thread Cashdollar, Matthew
Hello,

Could someone tell me how to use 'enable' on Ubuntu?  I am not too
familiar with this OS, as I usually use CentOS.  I am using Puppet
2.6.8.

The problem is that every time I try to use enable it causes the node to
appear as "yellow" on the puppet-dashboard:
notice  enable changed 'false' to 'true'
/Stage[main]/Ssh::Service/Service[ssh]/enable
/etc/puppet/modules/ssh/manifests/service.pp11  2011-06-16 13:32
CDT

My CentOS systems don't have this problem when using the same module.

Here is my service.pp class:
class ssh::service {
if $operatingsystem == "Ubuntu" {
$daemonname = "ssh"
} else {
$daemonname = "sshd"
}
service { $daemonname:
ensure => running,
enable => true,
require => Class["ssh::config"],
}
}

Thanks,
Matt

-- 
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.



[Puppet Users] Defines in External node classifier

2011-03-07 Thread Cashdollar, Matthew
Hello,

Does anyone know if external node classifiers support defined resource types?  
I am able to do it through the internal 'node X { }' but I'm not sure if this 
is possible with the external node yaml.

I started by doing it with parameterized classes as described here:
http://projects.puppetlabs.com/issues/5045

However I found some cases where there were multiple instances of the same 
thing running on the server with slightly different parameters.  For this 
reason I had to use define instead of class.

Thanks
Matt

-- 
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.