[Puppet Users] Re: Installing port on FreeBSD

2011-04-20 Thread fafaforza
On Apr 20, 3:11 am, Felix Frank wrote: > > "require => Package['port-sudo']" wouldn't work, and I don't see an > > 'onlyif' or similar parameter under "package" > > Yes it does. > > What semantics are you gunning for? "Only install X on boxes where Y is > getting installed" is a tough call. > Y

[Puppet Users] Re: Installing port on FreeBSD

2011-04-19 Thread fafaforza
One last somewhat unrelated question, but one that might help someone with a similar setup: How do I ensure that nss_ldap is installed only after 'sudo', as otherwise, installing nss_ldap from ports would trigger the openldap and sudo packages, which I don't want. "require => Package['port-sudo']

[Puppet Users] Re: Installing port on FreeBSD

2011-04-19 Thread fafaforza
One last somewhat unrelated question, but one that might help someone with a similar setup: How do I ensure that nss_ldap is installed only after 'sudo', as otherwise, installing nss_ldap from ports would trigger the openldap and sudo packages, which I don't want. "require => Package['port-sudo']

[Puppet Users] Re: Installing port on FreeBSD

2011-04-19 Thread fafaforza
One last somewhat unrelated question, but one that might help someone with a similar setup: How do I ensure that nss_ldap is installed only after 'sudo', as otherwise, installing nss_ldap from ports would trigger the openldap and sudo packages, which I don't want. "require => Package['port-sudo']

[Puppet Users] Re: Installing port on FreeBSD

2011-04-19 Thread fafaforza
One last somewhat unrelated question, but one that might help someone with a similar setup: How do I ensure that nss_ldap is installed only after 'sudo', as otherwise, installing nss_ldap from ports would trigger the openldap and sudo packages, which I don't want. "require => Package['port-sudo']

[Puppet Users] Re: Installing port on FreeBSD

2011-04-18 Thread fafaforza
On Apr 18, 11:29 am, Felix Frank wrote: > Yes, you definitely want to set "log_output => 'on_failure'" (I think it > was) in your exec resource. > > Regards, > Felix Thanks again. it's right in the documentation :P I should pay better attention! And surprisingly openldap client installed as a

[Puppet Users] Re: Installing port on FreeBSD

2011-04-18 Thread fafaforza
On Apr 18, 8:55 am, Felix Frank wrote: > Your path syntax looks funny: Yeah, I wasn't sure whether Puppet did anything with it as a comma separated variable (not an array). Set it to the normal Unix colon separated string and seems to have worked. This is the current resource: 84:ex

[Puppet Users] Installing port on FreeBSD

2011-04-16 Thread fafaforza
New user trying to get a port to compile: I tried searching but all I get are links to the FreeBSD port of puppet. Easier to find a needle in a haystack. A class has: exec { "port-sudo": cwd => "/usr/ports/security/sudo", environment => "BATCH=yes", command =