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']" wouldn't work, and I don't see an
'onlyif' or similar parameter under "package"

===========================
class kerberosauth {
        include "kerberosauth::$operatingsystem"
}

class kerberosauth::common {
        ...
        $nss_ldap = "nss_ldap"
        package { $nss_ldap:
                ensure => installed
        }
        ...
}

class kerberosauth::freebsd inherits kerberosauth::common {
        exec { "port-sudo":
                cwd             => "/usr/ports/security/sudo",
                environment     => "BATCH=yes",
                command         => "make install",
                path            => "/bin/:/usr/bin/:/usr/local/bin/:/
sbin/:/usr/sbin/:/usr/local/sbin/",
                logoutput       => 'on_failure',
                require         => File['options-sudo']
        }
}
===========================

--
Darek

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