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