Puppet without FQDN (could not retrieve fact fqdn)

2,125 views
Skip to first unread message

msacks

unread,
Mar 2, 2011, 7:43:53 PM3/2/11
to Puppet Users
Hello,
I am testing Puppet and I would like to use it without having to add a
DNS entry. Is there a way around this, or am I required to rely on
DNS?

More specifically, the reason I ask is I am getting the following
error when trying to invoke puppet --mkusers:
# puppet master --mkusers
warning: Could not retrieve fact fqdn
Could not parse for environment production: Could not find file /root/
master.pp

Same goes for:
#sudo -u puppet puppet master --mkusers
warning: Could not retrieve fact fqdn
Could not parse for environment production: Could not find file /root/
master.pp



Thanks,
msacks

Richard Crowley

unread,
Mar 2, 2011, 7:54:00 PM3/2/11
to puppet...@googlegroups.com
On Wednesday, March 2, 2011 at 4:43 PM, msacks wrote:
Hello,
> I am testing Puppet and I would like to use it without having to add a
> DNS entry. Is there a way around this, or am I required to rely on
> DNS?

You can run Puppet like this:

puppet master --certname=$(cat/etc/puppet/certname)
puppet agent --certname=$(cat/etc/puppet/certname)

to use the contents of an arbitrary file as the SSL certificate name instead of the fqdn fact.

Reply all
Reply to author
Forward
0 new messages