No, I didn't try with filtering. 

I tried Jose's suggestion:
mco puppet runall 10

and yours:
mco puppet runonce -F hostname=puppetmaster_name 

Both work fine. So I will forget --server option :)

thanks a lot
Stella

On Friday, September 5, 2014 3:41:16 PM UTC-4, Christopher Wood wrote:
>
> On Fri, Sep 05, 2014 at 11:46:14AM -0700, Stella wrote: 
> >    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 
>
> Have you tried with filtering instead of --server? It sounds like --server 
> is being used on the puppet invocation command line, to point the agent at 
> a particular server. 
>
> mco puppet runonce -F hostname=puppetmaster_name 
> mco puppet runonce -F fqdn=puppetmaster_name.domain.com 
>
> From 'mco help puppet' it seems that any options to runonce are taken as 
> options for the agent, not options for mcollective. 
>
> >    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 [1]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 [2]puppet-users...@googlegroups.com <javascript:>. 
> >    To view this discussion on the web visit 
> >    [3]
> https://groups.google.com/d/msgid/puppet-users/15daf8e8-b45e-49d4-9358-c9a03969e85f%40googlegroups.com.
>  
>
> >    For more options, visit [4]https://groups.google.com/d/optout. 
> > 
> > References 
> > 
> >    Visible links 
> >    1. http://puppet-agent.example.com/ 
> >    2. mailto:puppet-users+unsubscr...@googlegroups.com <javascript:> 
> >    3. 
> https://groups.google.com/d/msgid/puppet-users/15daf8e8-b45e-49d4-9358-c9a03969e85f%40googlegroups.com?utm_medium=email&utm_source=footer
>  
> >    4. https://groups.google.com/d/optout 
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/0b2705fa-369c-43f6-aa64-c5870e97df8b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to