Is it the same behavior as classes?

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 view this discussion on the web visit
For more options, visit

Reply via email to