Hi,
I am using open source Puppet 3.6.2 with Dashboard and Mcollective.
If I have puppet agent running and then from puppet master I run "mco
puppet runonce --server puppetmaster_name", I will get this error:
Cannot specify any custom puppet options when the daemon is running
I understand that I do not need to have puppet agent running for the agent
to work.
I can stop it entirely and then trigger runs through mcollective -- in that
setup it will happily pass custom arguments like --noop or --no-noop etc.
However, that's not exactly what I want. Here is what I want:
1. I want my puppet agent to be running so that it can retrieve the catalog
from puppet master based on the runinterval set in /etc/puppet/puppet.conf
on agent machine. For example,
#The interval between each puppet agent run, in seconds
runinterval = 6000
In one post, someone mentioned that if you did want periodic noop runs then
just cron
puppet agent --daemonize --onetime --noop
So if I setup cron for puppet agent, that will run "puppet agent --test"
based on the cron schedule?
2. Occasionally, I want to push configuration change and don't want to wait
until the next runinterval time. I want to push the change to my puppet
agent machines using MCollective command line "mco puppet runonce".
mco puppet runonce --server host_name
In this case, I always get "daemon is running" error, if puppet agent is
running, if I use --server option.
If I use -I option (mco puppet runonce -I puppet-agent.example.com)
<http://puppet-agent.example.com>, it works even if puppet agent daemon is
running.
What is the difference between option --server and -I? If I want to push
configurations to multiple hosts, which option should I use?
Hope I make myself understood :)
Thanks a lot,
Stella
--
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/15daf8e8-b45e-49d4-9358-c9a03969e85f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.