Hi, As you''ll guess I''m new to puppet. I''ve been playing aroung with puppet for the last few days and have stumbled accross the usual noob''s questions and misconceptions. I''ve spent some time on the Wiki and in the ML archives but so far I have not been able to figure out how to organize my stuff in a clean/ flexible manner. Here''s what I intend to do (more of a concept than real implementation as it doesn''t work !): /manifests/site.pp ==> node "myhost.mydomain" { include mypool } /manifests/classes/mypool.pp ==> class mypool { $httpd_listen_ports = [ 80, 8080 ] include linux, httpd } /modules/httpd/manifests/init.pp ==> class httpd { $httpd_listen_ports = [ 80 ] # default value file { "/etc/httpd/conf/ports.conf" content => template("httpd/ports.erb") # some template that iterates through httpd_listen_ports, as you''d probably guessed } } Well or course, as described on the wiki (http://reductivelabs.com/ trac/puppet/wiki/CommonMisconceptions#class-inheritance-and-variable- scope), I only get port 80 as $httpd_listen_ports is not overridden as noobs would expect. :) From what I''ve understood, resources can be overridden in subclasses class mypool_httpd inherits httpd { File { "/etc/httpd/conf/ports.conf" : override_property => new_value } } but variables cannot (as far as I understand). I could of course make httpd_listen_ports a global variable in sites.pp but doesn''t this defeat the purpose of modules ? Bottom line is: how do I define default values in a "module" that can be (quite) easily and overriden ? I guess I must be missing something here. Maybe I should look at define() ? Thanks for your input ! Calimero ! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---