ldap puppetVar not set.

39 views
Skip to first unread message

Daniel Kupfer

unread,
Jan 13, 2014, 4:26:02 AM1/13/14
to puppet...@googlegroups.com
Hi,
I'm migrating from puppet 2.x to 3.3.2, but i'm having trouble with the puppetvar from ldap.
In puppet 2 i could do:

if $nagios {
   include nagios
}

But in puppet 3 this does not seem to work anymore. Now i didn't set up the former puppetmaster. Am i missing something?

The ldap puppetnode looks like so and works with puppet 2:

dn: cn=myhost.int-tp.here.local,ou=productie,ou=hosts,dc=here,dc=local
objectClass: puppetClient
objectClass: top
objectClass: ipHost
objectClass: device
environment: productie
ipHostNumber: 192.99.22.69
puppetVar: ldap
puppetVar: ntp
puppetVar: nagios
puppetVar: vmwaretools
cn: myhost.int-tp.here.local

Johan De Wit

unread,
Jan 13, 2014, 4:53:26 AM1/13/14
to puppet...@googlegroups.com
Any raeson why not using puppetClass in ldap instead ? Then that class
will be included and is that kind of code not needed.

I assume the ldap configuration in yout puppet.conf is OK concerning the
ldap part ?

Grts

Johan
> --
> 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/5273f6d1-5f99-42c5-b9a3-eb05ced9b876%40googlegroups.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
_________________________________________________________


Next Events:
Puppet Fundamentals Training | http://www.open-future.be/puppet-fundamentals-training-4-till-6th-february
Puppet Intruction Course | http://www.open-future.be/puppet-introduction-course-7th-february
Zabbix Certified Training | http://www.open-future.be/zabbix-certified-training-10-till-12th-february
Zabbix for Large Environments Training | http://www.open-future.be/zabbix-large-environments-training-13-till-14th-february
Subscribe to our newsletter | http://eepurl.com/BUG8H

Daniel Kupfer

unread,
Jan 13, 2014, 5:00:52 AM1/13/14
to puppet...@googlegroups.com
Johan,
(dank) thanks for your reply, i will have a look at that.

Regards,
Daniel.

Daniel Kupfer

unread,
Jan 13, 2014, 5:55:21 AM1/13/14
to puppet...@googlegroups.com
Johan,

I use the puppetVar's for more then just including classes. Do you perhaps happen to know why the 'if' statement doesn't work?

Kind regards,
Daniel.

Johan De Wit

unread,
Jan 13, 2014, 5:59:46 AM1/13/14
to puppet...@googlegroups.com
Not with that little information.

Just add a notify { "nagios contains $::nagios": } for a start, and see whats happening.

You can also run puppet with --debug and post the relevant parts

grts

Jo
--
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:

Reply all
Reply to author
Forward
0 new messages