Hello, I would like to know what are the best pratices in node declaration.
I tried to play with inheritance with failures : Here my* puppet/manifest/site.pp* node basenode { > class { 'ssh': } > class { 'ntp': } > class { 'users': } > class { 'sudo': } > } > > node default inherits basenode { > } > > ################################################################ > # serv1 > ################################################################ > node "serv1" inherits basenode { > class { 'sudo' : > sudoers => "sudoers_serv1" > } > class { 'debug': } > } > As you can see i have to manage 2 sudoers file : One in almost all server, and an other one in my "serv1" server here is my *sudo class* class sudo ($sudoers="sudoers") { > package { 'sudo': > ensure => installed, > } > file { '/etc/sudoers': > source => "puppet://puppetmaster.foo.com/sudo/$sudoers", > ensure => file, > mode => 440, > owner => 'root', > group => 'root', > require => Package['sudo'], > } > } > Can you tell me what is the best way to resolve that kind of problems. Thx -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/zoT3tKXyIUcJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.