[Puppet Users] ignoring changes to a file
Hi All, One of my application requires me to copy a config file after installation the application. This needs to be done only once after installation However this config file is managed by a central server and keeps on getting updated every day, which means puppet will overwrite the updated file every day. Which is a problem. How can i configure puppet to ignore changes to this file. Is there a way to do this ? Any help is appreciated! -Kaustubh -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/b6917248-fe5d-45f4-b587-a40c85f34d7c%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] ignoring changes to a file
On Wed, 05 Mar 2014 06:41:45 -0800 wrote kaustubh chaudhari: One of my application requires me to copy a config file after installation the application. This needs to be done only once after installation However this config file is managed by a central server and keeps on getting updated every day, which means puppet will overwrite the updated file every day. Which is a problem. if the config file does not exist, you can use the replace parameter of the file type. http://docs.puppetlabs.com/references/latest/type.html#file-attribute- replace - Thomas -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/lf7eb3%24ns4%241%40ger.gmane.org. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] ignoring changes to a file
Thanks Alexzender and Thomas for the reply. This is partially useful. The requirement is i need to copy it first basically overwrite it once and then ignore all the changes. Any clue how this can be achieved! 5, 2014 10:02:59 AM UTC-5, Thomas Müller wrote: On Wed, 05 Mar 2014 06:41:45 -0800 wrote kaustubh chaudhari: One of my application requires me to copy a config file after installation the application. This needs to be done only once after installation However this config file is managed by a central server and keeps on getting updated every day, which means puppet will overwrite the updated file every day. Which is a problem. if the config file does not exist, you can use the replace parameter of the file type. http://docs.puppetlabs.com/references/latest/type.html#file-attribute- replace - Thomas -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/ac04d01a-81e2-401f-be56-47583aa20d52%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] ignoring changes to a file
On Wed, 05 Mar 2014 07:32:59 -0800 wrote kaustubh chaudhari: Thanks Alexzender and Thomas for the reply. This is partially useful. The requirement is i need to copy it first basically overwrite it once and then ignore all the changes. Any clue how this can be achieved! create the config file before the application installation creates it. if its an rpm installation, the file will not be overwritten. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/lf7grs%24ns4%242%40ger.gmane.org. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] ignoring changes to a file
Hey Thomas, Thats the tricky part! The location where i want to copy this file is created by setup. Its a windows application. So i will have to copy the file(overwrite) it after the package installation and than ignore any changes to that file. Thats where i am stuck! -Kaustubh On Wednesday, March 5, 2014 10:46:04 AM UTC-5, Thomas Müller wrote: On Wed, 05 Mar 2014 07:32:59 -0800 wrote kaustubh chaudhari: Thanks Alexzender and Thomas for the reply. This is partially useful. The requirement is i need to copy it first basically overwrite it once and then ignore all the changes. Any clue how this can be achieved! create the config file before the application installation creates it. if its an rpm installation, the file will not be overwritten. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/96b689bb-0f34-43e4-a200-1417b612742a%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] ignoring changes to a file
On Wed, 05 Mar 2014 07:57:18 -0800 wrote kaustubh chaudhari: Hey Thomas, Thats the tricky part! The location where i want to copy this file is created by setup. Its a windows application. So i will have to copy the file(overwrite) it after the package installation and than ignore any changes to that file. Thats where i am stuck! ugly workaround: - copy the config-file with a added .puppet suffix. - create an Exec with refreshonly = true which copies this file to the correct location - create another empty file which notifies the Exec - Thomas -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/lf7ieb%24o3a%241%40ger.gmane.org. For more options, visit https://groups.google.com/groups/opt_out.