Re: [Puppet Users] ldapmodfiy via exec

2013-03-15 Thread geoff
For followers of this thread, I've started to create a puppet ldap dn 
resource which might help here: https://github.com/gtmtechltd/puppet_ldapdn


On Thursday, November 13, 2008 5:41:14 PM UTC, Russell Miller wrote:

 On Thu, Nov 13, 2008 at 8:55 AM, jbo...@gmail.com javascript: 
 jbo...@gmail.com javascript: wrote:


 I'm trying to execute an ldap modify command but have run into issues
 with multiple lines and can't seem to find a happy medium. Any ideas ?


 I just created a script that does all of the ldap server setup for me.  
 And just execed the script.

 --Russell 



-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[Puppet Users] ldapmodfiy via exec

2008-11-13 Thread [EMAIL PROTECTED]

I'm trying to execute an ldap modify command but have run into issues
with multiple lines and can't seem to find a happy medium. Any ideas ?

exec {ipa_modify_username_length:
command = /usr/bin/ldapmodify -h $host_name -p 389 -
Y GSSAPI LDAP
dn: cn=ipaConfig,cn=etc,dc=example,dc=com
changetype: modify
replace: ipaMaxUsernameLength
ipaMaxUsernameLength: 12
LDAP,
}

When run it errors out due to the LDAP line not being on it own line.
If I add \ to the end of each line I still run into the same problem.
Has anyone been through this problem before?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~--~~~~--~~--~--~---