Re: [Puppet Users] conditional statement in config.pp

2014-03-21 Thread jcbollinger
On Thursday, March 20, 2014 1:26:56 PM UTC-5, Peter Bukowinski wrote: > > On Mar 20, 2014, at 1:26 PM, John > > wrote: > > Below is a my current config,.pp file I'm trying to create a > condition that says > > if (/etc/ldap.conf contains the string host1.mydomain.com or > host2.mydomain.c

Re: [Puppet Users] conditional statement in config.pp

2014-03-20 Thread Peter Bukowinski
On Mar 20, 2014, at 1:26 PM, John wrote: > Below is a my current config,.pp file I'm trying to create a condition > that says > > if (/etc/ldap.conf contains the string host1.mydomain.com or > host2.mydomain.com) > Then install an sshd_ldap.erb template > else if (/etc/ldap.conf contai

[Puppet Users] conditional statement in config.pp

2014-03-20 Thread John
Below is a my current config,.pp file I'm trying to create a condition that says if (/etc/ldap.conf contains the string host1.mydomain.com or host2.mydomain.com) Then install an sshd_ldap.erb template else if (/etc/ldap.conf contains the string hostB.mydomain.com or hostA.mydomain.com)