Hi, I''m trying to figure if this is the right way to update my system. So, - Is the include function the best way to use dependency between classes or should I use ''Class[''foo''] -> Class[''bar''] instead? - The ''require => Exec[''apt-weekly-update''],'' is being executed for every array element. How can I do this correctly :)? - In this same step, should/can I have a ''subscribe => Service[''my-tools'']? and for this to work, do I need to include ''restart_updated_pkgs'' class in ''my_pkgs'' class? Sorry guys and many thanks in advance for your time. -- class base_pkg_defs { schedule { ''weekly'': period => weekly, } } # update ''rep'' class debian_pkg_defs { include base_pkg_defs Exec { path => ["/bin/", "/sbin/", "/usr/bin", "/usr/sbin" ] } exec { "apt-weekly-update": command => "apt-get update", schedule => ''weekly'', } } # upgrade pkgs after update cache class my_pkgs { include debian_pkg_defs package { [ ''my-net-snmp'', ''my-tools'' ]: ensure => latest, require => Exec[''apt-weekly-update''], } } # restart daemons after upgrade class restart_updated_pkgs { include my_pkgs service { "my-tools": provider => "daemontools", path => "/servers/daemontools", ensure => restart, subscribe => Exec[''my_pkgs''] } } Cheers, Frank -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.