puppetrun/puppet kick

163 views
Skip to first unread message

Craig White

unread,
Jul 12, 2011, 7:21:44 PM7/12/11
to Puppet Users
Can't seem to make it work

puppet 2.6.8 (client/server)

# puppet kick -f ubuntu4.ttinet
Triggering ubuntu4.ttinet
Host ubuntu4.ttinet failed: Error 400 on SERVER: 'save ' is not an allowed value for method directive
ubuntu4.ttinet finished with exit code 2
Failed: ubuntu4.ttinet

root@ubuntu4:~# cat /etc/puppet/auth.conf
path /run
method save
allow *

root@ubuntu4:~# cat /etc/puppet/namespaceauth.conf
[puppetrunner]
allow *

root@ubuntu4:~# grep listen /etc/puppet/*
/etc/puppet/puppet.conf: listen = true

--
Craig White ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ craig...@ttiltd.com
1.800.869.6908 ~~~~~~~~~~~~~~~~~~~~~~~~~~~ www.ttiassessments.com

Need help communicating between generations at work to achieve your desired success? Let us help!

Craig White

unread,
Jul 14, 2011, 1:31:38 PM7/14/11
to Puppet Users
Too stupid a question? (puppet kick seems to be identical to puppetrun command as discussed in Pro Puppet book)

I spent enough time looking through puppet documentation and googling and couldn't solve it so I asked...

Nick Lewis

unread,
Jul 14, 2011, 1:50:52 PM7/14/11
to puppet...@googlegroups.com

On Tuesday, July 12, 2011 at 4:21 PM, Craig White wrote:

Can't seem to make it work

puppet 2.6.8 (client/server)

# puppet kick -f ubuntu4.ttinet
Triggering ubuntu4.ttinet
Host ubuntu4.ttinet failed: Error 400 on SERVER: 'save ' is not an allowed value for method directive
ubuntu4.ttinet finished with exit code 2
Failed: ubuntu4.ttinet

root@ubuntu4:~# cat /etc/puppet/auth.conf
path /run
method save
allow *

root@ubuntu4:~# cat /etc/puppet/namespaceauth.conf
[puppetrunner]
allow *

root@ubuntu4:~# grep listen /etc/puppet/*
/etc/puppet/puppet.conf: listen = true

It looks like you have a trailing space on your "method save" line, and Puppet is taking that to mean method "save " (note the space). Remove that and you should be okay.

See ticket #5010.
 
--
Craig White ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ craig...@ttiltd.com
1.800.869.6908 ~~~~~~~~~~~~~~~~~~~~~~~~~~~ www.ttiassessments.com

Need help communicating between generations at work to achieve your desired success? Let us help!

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to puppet...@googlegroups.com.
To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.

Craig White

unread,
Jul 14, 2011, 2:09:12 PM7/14/11
to puppet...@googlegroups.com

On Jul 14, 2011, at 10:50 AM, Nick Lewis wrote:

> On Tuesday, July 12, 2011 at 4:21 PM, Craig White wrote:
>
>> Can't seem to make it work
>>
>> puppet 2.6.8 (client/server)
>>
>> # puppet kick -f ubuntu4.ttinet
>> Triggering ubuntu4.ttinet
>> Host ubuntu4.ttinet failed: Error 400 on SERVER: 'save ' is not an allowed value for method directive
>> ubuntu4.ttinet finished with exit code 2
>> Failed: ubuntu4.ttinet
>>
>> root@ubuntu4:~# cat /etc/puppet/auth.conf
>> path /run
>> method save
>> allow *
>>
>> root@ubuntu4:~# cat /etc/puppet/namespaceauth.conf
>> [puppetrunner]
>> allow *
>>
>> root@ubuntu4:~# grep listen /etc/puppet/*
>> /etc/puppet/puppet.conf: listen = true
>>
> It looks like you have a trailing space on your "method save" line, and Puppet is taking that to mean method "save " (note the space). Remove that and you should be okay.
>
> See ticket #5010.
> http://projects.puppetlabs.com/issues/5010

----
indeed - which of course comes from Pro Puppet which gives it all as a one liner...

path /run method save allow foreman.example.com

which clearly didn't work which is when I put them on separate lines but obviously leaving the space there for it to give me that error. Ugh

Thanks

Craig

Reply all
Reply to author
Forward
0 new messages