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 -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
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. ThanksTry 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 puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Mon, Apr 25, 2011 at 8:07 AM, Mark <mark.rosedale@gmail.com> 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.htmlYou can install natty''s puppet/puppet-common package and use puppet 2.6.4 on Ubuntu 10.04.> 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.The setting can be obtained via: puppet --configprint modulepath The following command will provide all the configuration info: puppet --configprint all You can replace the service resource in Patrick''s example with a notify to see it in action without changing your system. HTH, Nan -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Silly me. I failed to notice that the puppetmaster server was not starting properly. I must have edited the /etc/puppet/fileserver.conf improperly and that caused the init script to fail. I think the ball is rolling now. Thank you so much. BTW @Patrick. Thanks for the help. And @Nan I''d love to use the latest version, but am unable to per my work. Thanks all. On Apr 25, 11:07 am, Mark <mark.rosed...@gmail.com> 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 documentationhttp://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-- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.