----- Original Message ----- > From: "Erez Zarum" <erezza...@gmail.com> > To: "puppet-users" <puppet-users@googlegroups.com> > Sent: Wednesday, 21 September, 2016 09:16:18 > Subject: [Puppet Users] Defined Resource types and Relationship
> Is it the same behavior as classes? > Example: > > define app::server { > ::app::server::config { '/etc/app.conf': } > ::app::server::service { 'app': } > > App::Server::Config['/etc/app.conf'] -> App::Server::Service['app'] > } > > define app::server::config { > file { $name: > ensure => present > } > } > > define app::server::service { > service { $name: > ensure => 'running' > } > } > > Will this work as expected, what happens if i have dependency resources > inside the defined types? will it contain it as well? yes with the same caveats as classes and class containment -- 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/214964943.339.1474444748140.JavaMail.zimbra%40devco.net. For more options, visit https://groups.google.com/d/optout.