Hi I want to deploy a customized /etc/multipath.conf file for all our server. Any idea I can do this with puppet? The file should be editable (to mask some wwid etc...). I could try it with file { replace => false} but, if the rpm is allready installed it will not get initialized. Any ideas? BR, Rene --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hi> I want to deploy a customized /etc/multipath.conf file for all our > server. Any idea I can do this with puppet? The file should be > editable (to mask some wwid etc...). I could try it with file > { replace => false} but, if the rpm is allready installed it will not > get initialized.if you can place the file before installing the rpm, you could ensure with a relationship that the file is placed before the rpm is installed. if the rpm is installed: how can you or actually puppet decide wether this file haven''t yet been edited? cheers pete --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Rene schrieb:> Hi > > I want to deploy a customized /etc/multipath.conf file for all our > server. Any idea I can do this with puppet? The file should be > editable (to mask some wwid etc...). I could try it with file > { replace => false} but, if the rpm is allready installed it will not > get initialized. > > Any ideas?In that case I would recommend editing and distributing the file from the puppetmaster. e.g. like this: file { "/etc/multipath.conf": source => [ "puppet:///files/multipath.conf/$hostname", "puppet:///files/multipath.conf/default" ], mode => 0644, ... } That way you can have per-host files in /etc/puppet/files/multipath.conf/ and use a default file else. Regards, DavidS -- dasz.at OG Tel: +43 (0)664 2602670 Web: http://dasz.at Klosterneuburg UID: ATU64260999 FB-Nr.: FN 309285 g FB-Gericht: LG Korneuburg --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I thought about that too, but I think it is to dangerous, if someone edits the file locali and it then gets overwritten... I think I ensure, that multipath is not installed via kickstart and do it the way pete suggested.... On Jun 4, 1:52 pm, David Schmitt <da...@dasz.at> wrote:> Rene schrieb: > > > Hi > > > I want to deploy a customized /etc/multipath.conf file for all our > > server. Any idea I can do this with puppet? The file should be > > editable (to mask some wwid etc...). I could try it with file > > { replace => false} but, if the rpm is allready installed it will not > > get initialized. > > > Any ideas? > > In that case I would recommend editing and distributing the file from > the puppetmaster. e.g. like this: > > file { "/etc/multipath.conf": > source => [ "puppet:///files/multipath.conf/$hostname", > "puppet:///files/multipath.conf/default" ], > mode => 0644, ... > > } > > That way you can have per-host files in > /etc/puppet/files/multipath.conf/ and use a default file else. > > Regards, DavidS > > -- > dasz.at OG Tel: +43 (0)664 2602670 Web:http://dasz.at > Klosterneuburg UID: ATU64260999 > > FB-Nr.: FN 309285 g FB-Gericht: LG Korneuburg--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I cannot remove multipath from kickstart, since it has a lot of dependencies. I think I will write a custom fact and work with the md5sum of the original /etc/multipath.conf file. On Jun 4, 1:58 pm, Rene <rene.zbin...@gmail.com> wrote:> I thought about that too, but I think it is to dangerous, if someone > edits the file locali and it then gets overwritten... > > I think I ensure, that multipath is not installed via kickstart and do > it the way pete suggested.... > > On Jun 4, 1:52 pm, David Schmitt <da...@dasz.at> wrote: > > > Rene schrieb: > > > > Hi > > > > I want to deploy a customized /etc/multipath.conf file for all our > > > server. Any idea I can do this with puppet? The file should be > > > editable (to mask some wwid etc...). I could try it with file > > > { replace => false} but, if the rpm is allready installed it will not > > > get initialized. > > > > Any ideas? > > > In that case I would recommend editing and distributing the file from > > the puppetmaster. e.g. like this: > > > file { "/etc/multipath.conf": > > source => [ "puppet:///files/multipath.conf/$hostname", > > "puppet:///files/multipath.conf/default" ], > > mode => 0644, ... > > > } > > > That way you can have per-host files in > > /etc/puppet/files/multipath.conf/ and use a default file else. > > > Regards, DavidS > > > -- > > dasz.at OG Tel: +43 (0)664 2602670 Web:http://dasz.at > > Klosterneuburg UID: ATU64260999 > > > FB-Nr.: FN 309285 g FB-Gericht: LG Korneuburg--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hi> I cannot remove multipath from kickstart, since it has a lot of > dependencies.:(> I think I will write a custom fact and work with the md5sum of the > original /etc/multipath.conf file.good idea. I think this is the only way around... :/ cheers pete --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---