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?



    

-- 
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/e06eb5f0-3613-4d23-a898-3342eb086e31%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to