Note that there are some explanatory texts on larger screens.

plurals
  1. POPuppet breaks with multiple node inheritances
    primarykey
    data
    text
    <p>Puppet on the tst-01 works fine when using:</p> <pre><code>node "tst-01" inherits basenode { </code></pre> <p>But it breaks when I try to organize servers into groups with this configuration:</p> <pre><code>node "tst-01" inherits redhat6server { </code></pre> <p>The error with "inherits redhat6server" is:</p> <pre><code>err: Could not retrieve catalog; skipping run [root@tst-01 ~]# puppet agent --test err: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to parse template ldap/access.conf: Could not find value for 'netgroup' at 124:/etc/puppet/modules/ldap/templates/access.conf at /etc/puppet/modules/ldap/manifests/init.pp:82 on node tst-01.tst.it.test.com warning: Not using cache on failed catalog err: Could not retrieve catalog; skipping run </code></pre> <p>This is the access.conf file, that works fine if inherits is set to "inherits basenode".</p> <pre><code>[root@puppet]# grep -v "#" /etc/puppet/modules/ldap/templates/access.conf + : root : LOCAL + : @&lt;%= netgroup %&gt; : ALL - : ALL : ALL [root@puppet]# </code></pre> <p>This is the configuration in /etc/puppet/manifests/nodes.pp.</p> <pre><code># Basenode configuration node "basenode" { include resolv_conf include sshd include ntpd include motd } # Groups node "redhat6server" inherits basenode { include ldap_auth } # Testservers node "tst-01" inherits redhat6server { $netgroup = tst-01 } </code></pre> <p>I am planning to bring more organisation (read: avoid configuration repetition) in the nodes.pp by grouping machines, e.g. RH5 and RH6 machines instead of adding multiple lines of includes for all RH5 and RH6 servers.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload