msacks
2011-Mar-03 01:25 UTC
Re: [Puppet Users] Puppet mkusers error (was Puppet without FQDN (could not retrieve fact fqdn))
On Wed, Mar 2, 2011 at 5:24 PM, msacks <ntwrkd@gmail.com> wrote:> So I bit the bullet and added the system to DNS. > Now I am trying to generate the files automatically, but when I call > "puppet --mkusers" now it doesn''t seem to take any action.Facepalm, I mean # puppet master --mkusers Yields the following error: Could not parse for environment production: Could not find file /root/master.pp> I checked the puppet logs but nothing has been logged or generated yet. > > > On Wed, Mar 2, 2011 at 4:54 PM, Richard Crowley <r@rcrowley.org> wrote: >> 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. >> >> -- >> You received this message because you are subscribed to the Google Groups "Puppet Users" group. >> To post to this group, send email to puppet-users@googlegroups.com. >> To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. >> For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. >> >> >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
James Turnbull
2011-Mar-03 01:38 UTC
Re: [Puppet Users] Puppet mkusers error (was Puppet without FQDN (could not retrieve fact fqdn))
msacks wrote:> On Wed, Mar 2, 2011 at 5:24 PM, msacks <ntwrkd@gmail.com> wrote: >> So I bit the bullet and added the system to DNS. >> Now I am trying to generate the files automatically, but when I call >> "puppet --mkusers" now it doesn''t seem to take any action. > Facepalm, I mean > > # puppet master --mkusers >What version are you running? The git-like sub commands came in 2.6.x and later? Regards James -- James Turnbull Puppet Labs 1-503-734-8571 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
tony e
2013-Oct-17 00:19 UTC
Re: [Puppet Users] Puppet mkusers error (was Puppet without FQDN (could not retrieve fact fqdn))
James Turnbull <james <at> puppetlabs.com> writes:> > msacks wrote: > > On Wed, Mar 2, 2011 at 5:24 PM, msacks <ntwrkd <at> gmail.com> wrote: > >> So I bit the bullet and added the system to DNS. > >> Now I am trying to generate the files automatically, but when I call > >> "puppet --mkusers" now it doesn''t seem to take any action. > > Facepalm, I mean > > > > # puppet master --mkusers > > > > What version are you running? The git-like sub commands came in 2.6.x > and later? > > Regards > > James >All you need to do to fix is remove the association of your short hostname and add it to the host file.... ahh let me just show you: [root@puppetmd01 puppetdev]# grep puppetmd01 /etc/hosts 192.168.122.200 puppetmd01 puppetmd01.fastpedal.com puppet puppet.fastpedal.com [root@puppetmd01 puppetdev]# cat /etc/resolv.conf # Generated by NetworkManager search fastpedal.com nameserver 192.168.122.1 As long as you use the host file and us a made-up domain name and you add that into the search variable in the /etc/resolve.conf file.... that error should go away... - you don''t need DNS .. you need the resolver :-) Tony tony@fastpedal.com -- 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+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.