Ask Your Question

curl: (7) couldn't connect to host

asked 2013-12-27 04:04:35 -0600

Arun gravatar image

I Installed Puppet Agent on Windows2008R2 machine and get registered with Puppet master. But I am not able to trigger puppet windows agent run thru

Scenario1: <linuxmachine>:/# "curl -k -X PUT -H "Content-Type: text/pson" -d "{}" https://<puppetwindowsagent>:8139/production/run/no_key".</puppetwindowsagent></linuxmachine>

Output : "curl: (7) couldn't connect to host" ##Running the above command from Linux host to trigger Remote Windows puppet agent

But with the same above command I could able to trigger the puppet Linux agent run thru


<linuxmachine>:/# "curl -k -X PUT -H "Content-Type: text/pson" -d "{}" https://<puppetlinuxagent>:8139/production/run/no_key". And ... (more)

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2014-02-20 11:44:08 -0600

joshc gravatar image

Currently, puppet agent cannot run with --listen due to, which means you can't kick windows agents.

Also, you'll want to make sure the windows firewall allows incoming TCP connections on port 8139. The Puppet installer does not modify the firewall during installation.

edit flag offensive delete link more

answered 2013-12-27 13:53:02 -0600

reidmv gravatar image

Puppet kick is deprecated in Puppet 3.0. It should still work if configured correctly, but it would be best at this point to consider alternative means of remotely directing Puppet's actions. The official Puppet Labs replacement for kick is MCollective.

That said, until at least Puppet 4.0 kick is supposed to continue to function. On Windows, getting kick to work would require

  • Setting listen=true in the agent's puppet.conf file
  • Creating an auth.conf file with an appropriate entry for the /run/no_key endpoint

Currently however (2013-12-27), it seems to me that there's a ... (more)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2013-12-27 04:04:35 -0600

Seen: 1,452 times

Last updated: Feb 20 '14