I'm getting this and it isn't applying my apache module. Is it because
of these warnings?
notice: Starting Puppet client version 2.7.5
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/puppet-2.7.5/lib/puppet/
provider/service/freebsd.rb:8: warning: class variable access from
toplevel
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/puppet-2.7.5/lib/puppet/
provider/service/freebsd.rb:9: warning: class variable access from
toplevel
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/puppet-2.7.5/lib/puppet/
provider/service/freebsd.rb:10: warning: class variable access from
toplevel
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/puppet-2.7.5/lib/puppet/
provider/service/bsd.rb:11: warning: class variable access from
toplevel
info: Caching catalog for stagedns05.ttrb2b.com
info: Applying configuration version '1318482080'
notice: Finished catalog run in 0.27 seconds
I want to make sure that I'm using a modules correctly.
I have:
/etc/puppet/modules/apache/manifests/init.pp
class apache
{
include apache::install, apache::service
}
/etc/puppet/modules/apache/manifests/service.pp
class apache::service
{
service
{
'apache2':
ensure => true,
hasstatus => true,
hasrestart => true,
enable => true,
require => Class["apache::install"],
}
}
/etc/puppet/modules/apache/manifests/install.pp
class apache::install
{
package
{
['apache2']:
ensure => present,
}
}
/etc/puppet/manifests/nodes.pp
node /^stagedns\d+\.example\.com/
{
include apache
}
/etc/puppet/manifests/sites.pp
import 'nodes.pp'
--
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.