Hi all, I think i''m forgetting something. If i do: "puppet apply manifiests/site.pp" it works perfectly, loading modules i have include in site.pp file. site.pp: cat manifiests/site.pp node default { include ntp, motd } But it does not work if i run puppet agent. puppet agent --test --server=debianita.user.arinso --environment production Info: Retrieving plugin Info: Caching catalog for debianita.user.arinso Info: Applying configuration version ''1367916628'' Notice: Finished catalog run in 0.02 seconds It is in the same host. pwd /etc/puppet/environment/production cat /etc/puppet/puppet.conf [main] logdir=/var/log/puppet vardir=/var/lib/puppet ssldir=/var/lib/puppet/ssl rundir=/var/run/puppet factpath=$vardir/lib/facter templatedir=$confdir/templates server=Debianita.user.arinso modulepath = $confdir/environment/$environment/modules manifest = $confdir/environments/$environment/manifests/site.pp cat /etc/hosts xx.xx.xx.xx Debianita.user.arinso Debianita localhost -- 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 puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
David Schmitt
2013-May-07 19:48 UTC
Re: [Puppet Users] Modules doesn''t work from puppet agent.
On 2013-05-07 11:04, Fco CM wrote:> Hi all, > > I think i''m forgetting something. > > If i do: "puppet apply manifiests/site.pp" it works perfectly, loading > modules i have include in site.pp file. > > site.pp: > > cat manifiests/site.pp > node default { > include ntp, motd > } > > But it does not work if i run puppet agent. > > puppet agent --test --server=debianita.user.arinso --environment production > Info: Retrieving plugin > Info: Caching catalog for debianita.user.arinso > Info: Applying configuration version ''1367916628'' > Notice: Finished catalog run in 0.02 seconds > > It is in the same host. > > pwd > /etc/puppet/environment/production > > cat /etc/puppet/puppet.conf > [main] > logdir=/var/log/puppet > vardir=/var/lib/puppet > ssldir=/var/lib/puppet/ssl > rundir=/var/run/puppet > factpath=$vardir/lib/facter > templatedir=$confdir/templates > server=Debianita.user.arinso > modulepath = $confdir/environment/$environment/modules > manifest = $confdir/environments/$environment/manifests/site.pp > > cat /etc/hosts > xx.xx.xx.xx Debianita.user.arinso Debianita localhost >According to your configuration, the site.pp must be at "$confdir/environments/$environment/manifests/site.pp", which usually expands to "/etc/puppet/environments/production/manifests/site.pp", not "manifiests/site.pp". Regards, David -- 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 puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
OK, thanks for your response, it is already fixed. El martes, 7 de mayo de 2013 11:04:24 UTC+2, Fco CM escribió:> > Hi all, > > I think i''m forgetting something. > > If i do: "puppet apply manifiests/site.pp" it works perfectly, loading > modules i have include in site.pp file. > > site.pp: > > cat manifiests/site.pp > node default { > include ntp, motd > } > > But it does not work if i run puppet agent. > > puppet agent --test --server=debianita.user.arinso --environment production > Info: Retrieving plugin > Info: Caching catalog for debianita.user.arinso > Info: Applying configuration version ''1367916628'' > Notice: Finished catalog run in 0.02 seconds > > It is in the same host. > > pwd > /etc/puppet/environment/production > > cat /etc/puppet/puppet.conf > [main] > logdir=/var/log/puppet > vardir=/var/lib/puppet > ssldir=/var/lib/puppet/ssl > rundir=/var/run/puppet > factpath=$vardir/lib/facter > templatedir=$confdir/templates > server=Debianita.user.arinso > modulepath = $confdir/environment/$environment/modules > manifest = $confdir/environments/$environment/manifests/site.pp > > cat /etc/hosts > xx.xx.xx.xx Debianita.user.arinso Debianita localhost > > > > >-- 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 puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Reasonably Related Threads
- Warning: Local environment: "42A" doesn't match server specified node environment "production", switching agent to "production"
- Problem with Load Balancing Puppet masters with Apache mod_proxy
- Change the location of puppet.conf
- Puppet Configuration - Running --configprint generates long list of values
- 'eval_generate: SSL_connect returned=1 errno=0 state=SSLv3 read server session ticket A: tlsv1 alert unknown ca