简体   繁体   English

如何在我的派生存储库中使用puppet的sure_packages

[英]How to use puppet's ensure_packages with my forked repository

I'm installing the latest sensu-plugins-mysql with the following puppet code successfully: 我正在成功安装带有以下木偶代码的最新sensu-plugins-mysql

ensure_packages('sensu-plugins-mysql', { provider => sensu_gem, ensure => latest})

But I want to use my fork nagyt234/sensu-plugins-mysql , created from sensu-plugins/sensu-plugins-mysql , how to do it? 但是我想使用从sensu-plugins/sensu-plugins-mysql创建的fork nagyt234/sensu-plugins-mysql sensu-plugins/sensu-plugins-mysql ,该怎么做? The source option doesn't work: source选项不起作用:

ensure_packages('sensu-plugins-mysql', { provider => sensu_gem, source => 'https://github.com/nagyt234/sensu-plugins-mysql.git', ensure => latest})

The problem is, that sensu_gem is not able to install a gem directly from a github repository, so the sensu-plugins-mysql was always installed from rubygem.org . 问题是, sensu_gem无法直接从github存储库安装gem,因此sensu-plugins-mysql始终是从rubygem.org安装的。 I had to generate my own gem with a different name and publish it to rubygem.org . 我必须用不同的名称生成自己的gem ,然后将其发布到rubygem.org

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM