Does puppet allow Resource References of different types?

16 views
Skip to first unread message

Mike R

unread,
Jun 3, 2014, 4:35:16 PM6/3/14
to puppet...@googlegroups.com
I read the Puppet documentation regarding Resource References: http://docs.puppetlabs.com/puppet/latest/reference/lang_datatypes.html#resource-references

I know Multi-Resouce references are allowed:

file { 'some-a':
    ...
    require => File['file-b', 'file-c']
}


However what if my resource depends on a File type and some other type?
Is there a syntax for that?

Thanks

-Mike

Spencer Krum

unread,
Jun 3, 2014, 4:38:32 PM6/3/14
to puppet...@googlegroups.com
require => [File['foo], Service['science']


--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/caa03139-5b3f-4ad3-8b73-1aef93da3748%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Spencer Krum
(619)-980-7820

Spencer Krum

unread,
Jun 3, 2014, 4:38:47 PM6/3/14
to puppet...@googlegroups.com
Er,

require => [File['foo], Service['science']]
--
Spencer Krum
(619)-980-7820

Spencer Krum

unread,
Jun 3, 2014, 4:39:10 PM6/3/14
to puppet...@googlegroups.com
Wow I am failing at email:
--
Spencer Krum
(619)-980-7820
Reply all
Reply to author
Forward
0 new messages