-----Original Message----- From: puppetplayer Sent: 23/08/2010, 14:37 To: Puppet Users Subject: [Puppet Users] Is it possible to use hierarchic LDAP entries for puppet clients and parentnodes?
Hi all, i want to create a network and customer parentnodes to store network and/or customer specific attributes only at one place. Therefore i created following puppet client an parentnodes within LDAP: Network specific parentnode: dn: cn=192_168_100_0,ou=profile,dc=zz,dc=example,dc=com objectClass: top objectClass: DUAConfigProfile objectClass: puppetClient objectClass: TSYSConfigProfile defaultServerList: 192.168.100.101 defaultSearchBase: dc=zz,dc=example,dc=com authenticationMethod: simple followReferrals: TRUE defaultSearchScope: sub searchTimeLimit: 30 profileTTL: 43200 credentialLevel: proxy bindTimeLimit: 10 HostEntry: 100.101.110.111:first.entry.from.zz.profile HostEntry: 200.202.220.222:second.entry.from.zz.profile cn: 192_168_100_0 Customer specific parentnode: dn: cn=zzbasenode,ou=HostConfig,dc=zz,dc=example,dc=com objectClass: top objectClass: device objectClass: puppetClient description: Puppet Base Node ZZ puppetclass: base3 cn: zzbasenode parentnode: 192_168_100_0 and the Client: dn: cn=puppetc2,ou=HostConfig,dc=zz,dc=example,dc=com objectClass: top objectClass: device objectClass: puppetClient objectClass: TSYSjumpsta objectClass: ieee802Device objectClass: iphost description: Puppet Client 2 ipHostNumber: 192.168.100.111 cn: puppetc2 parentnode: zzbasenode puppetclass: base1 HostEntry: 1.2.3.4:first.entry.from.hostconfig HostEntry: 2.3.4.5:second.entry.from.hostconfig And now, most attributes from LDAP are stored in the client catalog. But not all... You can see, that only the HostEntry Attribute from the PuppetClient "puppetc2" is stored in the yaml file, an not the HostEntry attrbiutes from the network specific parentnode "192_168_100_0": var/puppet/yaml/node$ cat puppetc2.zz.example.com.yaml --- !ruby/object:Puppet::Node classes: - base1 - base3 environment: production expiration: 20 E-mail troncato a 2,000 caratteri :::0:99e27beaa3e6afbe439312c752f74fbc:7d0:::: Il messaggio originale si trova sul server -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.