[英]Changing puppet module source
I checked Puppet's documentation but didn't find any suggestions about it. 我查看了Puppet的文档,但没有找到任何建议。 I have Puppet module for
Monit
- https://forge.puppetlabs.com/dhoppe/monit . 我有用于
Monit
Puppet模块Monit
: //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 . 它已经在
files
夹-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? 将新服务配置添加到本地`puppet / module / monit / files /文件夹可以吗? Will this folder be overwritten when update for module comes?
当模块更新到来时,此文件夹会被覆盖吗? Or maybe there is a better way for it?
也许有更好的方法呢?
PS. PS。 My services aren't public wide, so i can't make pull request to original
dhoppe-monit
repository. 我的服务不是公共范围的,因此我无法向原始
dhoppe-monit
存储库发出拉取请求。
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. 除了从头开始编写自己的模块之外,我还没有真正看到实现这一目标的另一种方法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.