On Sunday, October 19, 2014 8:40:54 PM UTC-5, [email protected] wrote: > > I am trying to learn puppet. I have been through the learningVM and now > trying to do something basic with it and am not getting anywhere. > > I have setup two VMs one as puppet master and the other as an agent. I am > using the open source version 3.7.1 > > my site.pp is: > Package { > allow_virtual => true, > } > > class test { > file { '/root/test': > ensure => file, > content => 'succeeded', > } > } > > node 'mel-integ02.xxxx.com' { > include test > } > > node 'mel-integ04.xxxx.com' { > } > > node default { > } > > The test file doesn't exist on mel-integ02. When I try to apply it I get > the following output and the test file still doesn't exist. > # puppet apply site.pp > Notice: Compiled catalog for mel-integ04.icellos.com in environment > production in 0.33 seconds > Notice: Finished catalog run in 0.01 seconds > > obviously I am missing something basic but I can't figure out what it is. > >
The machine you are building a catalog for is 'mel-integ04', not 'mel-integ02'. The node definition for the former is empty, and you do not declare any global resources (nor should you), so the catalog that is built and applied is empty. If you really are running this on node mel-integr02 then you must have cloned the certificate of 'mel-integ04', or somehow created one *de novo* with the wrong certname. Note, too, that you are running 'puppet apply', as opposed to 'puppet agent'. You should be using the latter if you mean to explore use of the master/agent Puppet paradigm. The 'apply' option is for when you want to distribute manifests and data to all your nodes outside the scope of Puppet, and then build catalogs locally at each machine. John -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/a38c61ec-8be2-4f35-92e1-ad0a7e58002f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
