On Tuesday, 21 October 2014 00:33:26 UTC+11, jcbollinger wrote: > > > > 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 > mel-integ04 is the puppet master and I am running puppet apply on it.
mel-integ02 is running puppet and factor. I want to test pushing the test change from mel-integ04 to mel-integ02. The whole setup is just for me to experiment and learn hence it is not overly logical. So are you saying that running puppet apply site.pp shouldn't propagate changes to the agents? Greg -- 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/9ed86b30-2476-4fd9-9836-e3be993545cb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
