Afternoon all,

I am looking to do the following using Puppet to simplify
relationships for our AD class.  I've stripped it down to the basic
relation I'd like to work.

$kerberos_packages = ["winbind", "krb5-config", "libpam-krb5",
"portmap", "krb5-user", "samba-common"]
$kerberos_dependencies = ["/etc/nsswitch.conf", "/etc/samba/smb.conf",
"/etc/pam.d/common-account", "/etc/pam.d/common-auth", "/etc/pam.d/
common-session"]

package { $kerberos_packages: ensure => installed }

Package[$kerberos_packages] -> File[$kerberos_dependencies]

file { files listed here with various options }

This does not generate an error for the puppet parser however the
puppet master fails to compile modules with an error.

Jun 16 14:29:25 puppetmaster puppet-master[9820]: Could not find
resource 'Package[winbind]Package[krb5-config]Package[libpam-
krb5]Package[portmap]Package[krb5-user]Package[samba-common]' for
relationship on 'File[/etc/nsswitch.conf]File[/etc/samba/
smb.conf]File[/etc/pam.d/common-account]File[/etc/pam.d/common-
auth]File[/etc/pam.d/common-session]]' on node example.domain

Please note the issue isn't in sending the array, Package["one",
"two"] -> File["a","b"] still fails.

The documentation on chaining is literally the brief post by the guy
who wrote the patch that added this functionality.  There is also
mention of the <| |> relationship operator however I cannot figure out
how to limit its actions to the items in my arrays.

So I'd like to know if I've made a mistake in my syntax or if the
chaining is limited to one-to-one relations? If it is limited to one-
to-one relations is there already a bug asking for many-to-many passed
via array?

Thanks,

Edward Savage

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