On Apr 25, 2011, at 8:07 AM, Mark wrote:

> Hello,
> 
> I'm just starting out with Puppet. I currently have a puppetmaster
> running on Ubuntu 10.04 so it is using puppet 0.25.x. I've been
> running into issues with modules. I want to create some custom modules
> to do random configurations, but it doesn't seem to be working for me.
> I've been working from this documentation 
> http://docs.puppetlabs.com/guides/modules.html
> 
> Here is the issue I'm having. Under configuration it mentions
> [puppetmasterd] But I don't seem to have that with my default Ubuntu
> config. I have an auth.conf and a fileserver.conf. The auth.conf
> indicates that it mimics puppetmasterd. So can I just set my module
> path just like the the instructions linked or is there a different
> syntax with this file? I'm just trying to understand where I'm going
> wrong. My classes specified and linked via the manifests folder are
> working fine, but it seems as though my class referenced from the
> module I created aren't.
> 
> Any help is welcomed. Thanks


Try putting this module in /etc/puppet/modules/ntp/manifests/init.pp

class ntp {

        service { "ntp":
                ensure => running,
                enable => true,
        }

}

Then put "include ntp" in /etc/puppet/manifests/site.pp

Warning:
This will start ntp and make it autostart.  If that's a problem, don't run this.

Does that work?

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

Reply via email to