On 10-12-28 09:45 AM, mbuyukkarakas wrote: > Dear members, > > I'm a newbie in Puppet. I was not able to find answers about this. > Could you please redirect me to the correct resources. Thank you. > > > I need to manage several Solaris10 servers. But I guess every server > wont have the same configuration or same templates. So how the agents > are distinguishing the correct configuration file which matches to the > server or the group ?
well, generally you need to build your puppet modules so that the file they send to the client can be set specifically for one server (or group of servers, depending on your needs..) here's an example taken from a module for 'apt' (the whole file can be seen at https://labs.riseup.net/code/projects/shared-apt/repository/revisions/master/entry/manifests/init.pp ): apt_conf { "02show_upgraded": source => [ "puppet:///modules/site-apt/${fqdn}/02show_upgraded", "puppet:///modules/site-apt/02show_upgraded", "puppet:///modules/apt/02show_upgraded" ] } so, here (for this example, let's name the host requesting the config file 'host1.example.com') puppet first tries to find something in the 'site-apt' module's files directory in the 'host1.example.com' subdirectory (i.e. 'site-apt/files/host1.example.com/02show_upgraded'). If there's nothing there (or the subdirectory doesn't exist), it'll try to get 'site-apt/files/02show_upgraded'. If this one is not there, its last resort is in the 'apt' module. So, it'll try to find a file in 'apt/files/02show_upgraded'. This way, you have one very generic file in the module, one way to change the generic file (by putting one in the site-apt module) and one way to set the config file's contents to be specific to one host. -- Gabriel Filion -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@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.