recovery from foreman

71 views
Skip to first unread message

mjac...@broadsoft.com

unread,
Feb 26, 2014, 6:15:48 PM2/26/14
to puppet...@googlegroups.com
I am new to puppet.

running puppet 2.7.19

didn't know that you couldn't install foreman and dashboard on the same system/puppet master.
I've uninstalled both of them.

puppet nodes are complaining about not being able to get their catalogs.

puppet.conf has:

snippet:

[main]
    # The Puppet var directory.
    vardir = /var/lib/puppet

    # The Puppet log directory.
    # The default value is '$vardir/log'.
    logdir = /var/log/puppet

    # Where Puppet PID files are kept.
    # The default value is '$vardir/run'.
    rundir = /var/run/puppet

    # Where SSL certificates are kept.
    # The default value is '$confdir/ssl'.
    ssldir = $vardir/ssl

    # Allow services in the 'puppet' group to access key (Foreman + proxy)
    privatekeydir = $ssldir/private_keys { group = service }
    hostprivkey = $privatekeydir/$certname.pem { mode = 640 }

    # Puppet 3.0.x requires this in both [main] and [master] - harmless on agents
    autosign       = $confdir/autosign.conf { mode = 664 }


[master]
    autosign       = $confdir/autosign.conf { mode = 664 }
    reports        = store, http
    external_nodes = /etc/puppet/node.rb
    node_terminus  = exec
    ca             = true
[development]
    modulepath     = /etc/puppet/modules/development:/etc/puppet/modules/common:/usr/share/puppet/modules
[production]
    modulepath     = /etc/puppet/modules/production:/etc/puppet/modules/common:/usr/share/puppet/modules

/etc/puppet/manifests/site.pp
includes:

import "classes/*"
import "roles/*.pp"
import "nodes/*.pp"
import "users/*.pp"

-----------end snippet-------------

and yes /etc/puppet/manifests/nodes does contain node_$agent(fqdn).pp

ls /var/lib/puppet/yaml/facts

shows: $agent_hosts.yaml

in /var/log/messages, I find the following types of errors:

puppet puppet-master[16517]: Could not find node '$agent_hosts(fqdn)';   cannot compile

# note: $agent_hosts(fqdn)  = a list of hosts that should be managed by puppet.  they all look like an fqdn.

my question:  where would the configuration be to tell where these machines are for compiling catalogs?




This email is intended solely for the person or entity to which it is addressed and may contain confidential and/or privileged information. If you are not the intended recipient and have received this email in error, please notify BroadSoft, Inc. immediately by replying to this message, and destroy all copies of this message, along with any attachment, prior to reading, distributing or copying it.

Martin Alfke

unread,
Feb 27, 2014, 3:28:23 AM2/27/14
to puppet...@googlegroups.com
Hi
On 27 Feb 2014, at 00:15, mjac...@broadsoft.com wrote:

> I am new to puppet.
>
> running puppet 2.7.19
>
> didn't know that you couldn't install foreman and dashboard on the same system/puppet master.
> I've uninstalled both of them.
>
> puppet nodes are complaining about not being able to get their catalogs.

Forman makes use of an ENC: /etc/puppet/node.rb
You can verify whether this command (with a certname as parameter) will deliver desired results.
(It should show yaml code).

hth,

Martin
> --
> 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...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/f07723f1-f06f-4861-b87f-e368ea275e32%40googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

mjac...@broadsoft.com

unread,
Feb 27, 2014, 1:29:48 PM2/27/14
to puppet...@googlegroups.com
Hi,

I uninstalled foreman.  why would  node.rb be utilized?

Regards,

johan-OF

unread,
Feb 27, 2014, 1:36:52 PM2/27/14
to puppet...@googlegroups.com
Because it is in your puppet.conf :

external_nodes = /etc/puppet/node.rb

more info about ENC : http://docs.puppetlabs.com/guides/external_nodes.html
--
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...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

-- 
Johan De Wit

Open Source Consultant

Red Hat Certified Engineer         (805008667232363)
Puppet Certified Professional 2013 (PCP0000006)
_________________________________________________________
 
Open-Future                 Phone     +32 (0)2/255 70 70
Zavelstraat 72              Fax       +32 (0)2/255 70 71
3071 KORTENBERG             Mobile    +32 (0)474/42 40 73
BELGIUM                     http://www.open-future.be
_________________________________________________________ 

Upcoming Events:

Zabbix Certified Training | http://www.open-future.be/zabbix-certified-training-10-till-12th-march

Zabbix for Large Environments Training | http://www.open-future.be/zabbix-large-environments-training-13-till-14th-march

Puppet Introduction Course | http://www.open-future.be/puppet-introduction-course-14th-april

Puppet Advanced Training | http://www.open-future.be/puppet-advanced-training-15-till-17th-april

Subscribe to our newsletter: http://eepurl.com/BUG8H


mjac...@broadsoft.com

unread,
Feb 27, 2014, 3:21:28 PM2/27/14
to puppet...@googlegroups.com
Yes, it was in my puppet.conf file.  That has been removed and now a compile is working.

Thanks!


On Wednesday, February 26, 2014 3:15:48 PM UTC-8, mjac...@broadsoft.com wrote:

mjac...@broadsoft.com

unread,
Feb 27, 2014, 7:31:39 PM2/27/14
to puppet...@googlegroups.com
Hi Again,

Out of curiosity ... How does PuppetEnterprise interface w/ VMware/Vsphere to set the host name in Linux?


On Wednesday, February 26, 2014 3:15:48 PM UTC-8, mjac...@broadsoft.com wrote:
Reply all
Reply to author
Forward
0 new messages