On Tue, Aug 28, 2012 at 3:55 PM, Nick Fagerlund < nick.fagerl...@puppetlabs.com> wrote:
> Could you please link me to these tutorials, so I may destroy them. > It is easy to destroy incomplete tutorials, but harder to offer something good instead! When I started using Puppet it took long time until I suddenly found somewhere that the starting point is site.pp After that all went flawlessly. But this first step was very hard to understand. It would be nice to have a working scenario that describes basic details, how Puppet works, step by step, instead of long explanations of syntax, variables, and tricks with code optimization that are not needed to start running it. Anatoliy > > Okay, anyway, here's how Puppet works: > > The master has ONE manifest file that it ALWAYS reads, called > /etc/puppet/manifests/site.pp. (use puppet master --configprint manifest to > confirm its location. You can set the 'manifest' setting to change that.) > It also OPTIONALLY can have an external node classifier; don't worry about > that right now. > > The main manifest and the ENC can declare classes. Puppet will AUTOLOAD > classes from MODULES. See here: > http://docs.puppetlabs.com/puppet/2.7/reference/modules_fundamentals.html > > If you use an IMPORT statement in site.pp, you can also load arbitrary > files like nodes.pp or nodes/somethingelse.pp. See here: > http://docs.puppetlabs.com/puppet/2.7/reference/lang_import.html But you > don't need to do this right now. > > So to get your simple thing working now: > > * rename nodes.pp to site.pp so puppet master will use it > * move ntp.pp to /etc/puppet/modules/ntp/manifests/init.pp > > > On Tuesday, August 28, 2012 1:19:23 PM UTC-7, Bai Shen wrote: >> >> I created some manifest files, but my client doesn't seem to be picking >> them up. According to all of the tutorials, I'm doing this right, so I'm >> not sure what the issue is. >> >> nodes.pp: >> node default { >> include ntp >> } >> >> >> ntp.pp: >> class ntp { >> package { >> ntp: >> ensure => installed >> } >> >> service { >> ntpd: >> ensure => running, >> } >> } >> >> >> puppetd --test: >> dnsdomainname: Unknown host >> dnsdomainname: Unknown host >> info: Caching catalog for testserver >> info: Applying configuration version '1346184997' >> notice: Finished catalog run in 0.01 seconds >> >> -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/puppet-users/-/ABbfMKE7JkgJ. > > 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. > -- 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.