class os_common::users ( ) {
$users = loadyaml('/etc/puppet/resources/users.yaml')
define virtualuser ( ) {
tag $users[$title]['tag']
basic::add_user { $title:
email => $users[$title]['email'],
uid => $users[$title]['uid'],
role => $users[$title]['role'],
}
basic::add_ssh_key { "${title}_laptop":
user => $title,
type => $users[$title]['keytype'],
key => $users[$title]['key'],
}
}
}
..then try to collect:
Os_common::Users::Virtualuser <| tag == 'ops' |>
...doesnt work. No errors, but nothing gets applied either. realizing the
resource by title works however, so theres clearly something wrong with the
tagging. any ideas?
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.