Am Freitag, 6. Februar 2015 22:45:30 UTC+1 schrieb guymatz: > > 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'] * > } >
to depend on a class: require => Class['Accounts::Account'], (and require without s) to depend on a specific resource in a class is always depending on the resource: require => User['xyz'], or group: require => Group['xyz'] - Thomas https://docs.puppetlabs.com/puppet/latest/reference/lang_relationships.html -- 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 puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/11c008d6-ed95-4808-8936-3d4af6749ba5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.