Seems I don't quite understand how it's supposed to work

At the moment, I have it inside a 'file' resource

content => generate("/etc/puppet/scripts/ldap-add-host.sh $fqdn admins_all"),

Thus I want to execute the command
/etc/puppet/scripts/ldap-add-host.sh

and pass parameters
$1 = $fqdn
$2 = admins_all (though there will be other groups to pass in the future)

the error it gives me is...

Could not retrieve catalog from remote server: Error 400 on SERVER: Generators 
can only contain alphanumerics, file separators, and dashes at 
/etc/puppet/modules/ldap/manifests/configure.pp:93 on node ubuntu.ttinet

documentation on the generate function is sort of sparse and I am not able to 
deduce the structure of an acceptable command but I gather that spaces are not 
allowed.

How do I structure this?

-- 
Craig White ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  craig.wh...@ttiltd.com
1.800.869.6908 ~~~~~~~~~~~~~~~~~~~~~~~~~~~ www.ttiassessments.com 

Need help communicating between generations at work to achieve your desired 
success? Let us help!

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

Reply via email to