Ask Your Question

windows facter hostname gives me "command not found"

asked 2015-02-06 11:54:26 -0600

mothbitten gravatar image

I am setting up 17 new Windows 2012 servers with puppet, but just one of them fails. Going to that server, when I type faccter hostname, I get this:

could not retrieve fact='hostname', resolution='(anonymous)': Could not execute 'hostname': command not found

a commandline hostname works, nslookup hostname works. All of the other systems work fine with the same puppet (3.7.3). I tried reinstalling Puppet and that did no good. I am assuming it is not a Puppet problem per se, however, I don't know why it would not find the path it needs for hostname.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-02-06 15:17:02 -0600

mothbitten gravatar image

Turns out the environmental path was screwed up, so it did not know where the hostname command was.

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

1 follower


Asked: 2015-02-06 11:54:26 -0600

Seen: 738 times

Last updated: Feb 06 '15