Changing puppet module source

扶醉桌前 提交于 2019-12-31 04:40:09

问题


I checked Puppet's documentation but didn't find any suggestions about it. I have Puppet module for Monit - https://forge.puppetlabs.com/dhoppe/monit . It already has some predefined configurations for some services in files folder - https://github.com/dhoppe/puppet-monit/tree/master/files/common/etc/monit/conf.d . I want to add more, but not sure how to do it in the correct puppet way.

Is it ok to add new service configuration to local `puppet/module/monit/files/ folder? Will this folder be overwritten when update for module comes? Or maybe there is a better way for it?

PS. My services aren't public wide, so i can't make pull request to original dhoppe-monit repository.


回答1:


Pull request is a good keyword.

If you cannot send your requirements upstream, you may wish to maintain a private fork/branch instead. And yes, you will be required to accomodate for upstream changes yourself to make sure that your additions keep working.

Apart from writing your own module from scratch, I don't really see another way to make this happen.



来源:https://stackoverflow.com/questions/23255185/changing-puppet-module-source

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!