Hello! Is there a way to set the dependency for a resource that is a
subclass? I have an accounts module, and "within" that is
accounts::account which contains declarations to create user, group, etc. .
. . I would like to do something like:
file {'sdfdsf':
contents => 'sdkfjdsf',
owner => 'username',
*requires Accounts::account['username'] *
}
But that doesn't work. (Error 400 on SERVER: Syntax error at '::account';
expected ']')
I also thought I should be able to say:
file {'sdfdsf':
contents => 'sdkfjdsf',
owner => 'username',
*requires User['username'] *
}
since it's really the user resource that's at the heart of the matter, but
that didn't work either! Puppet still complains that it "Could not find
dependency User[username]"
Any thoughts would be appreciated.
Thanks,
Guy
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/CABnTgtXn%2B%3Du_Q3_UD%3DqkC4n9nqKxYDgXStkGQZyJiO6aNkEaAw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.