我可以通过 puppet manifest 安装 puppet 模块吗? [英] Can I install puppet modules through puppet manifest?

查看:55
本文介绍了我可以通过 puppet manifest 安装 puppet 模块吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

主要目标是自动添加所有 puppet 模块,以便所有 dev-env 和 prod-env 可以通过一个命令启动.如何通过 puppet manifest 安装 puppet 模块?

Primary goal is to add all puppet modules automatically, so that all dev-env's and prod-env could be started with one command. How can I install puppet modules through puppet manifest?

推荐答案

我们一直很高兴使用 librarian-puppet 同步所有第三方模块,支持设置模块位置和版本.因此生产和开发运行完全相同的代码.用法为一班

We've been happily using librarian-puppet to sync all 3rd party modules, it supports setting the modules' locations and versions. So production and dev run the exact same code. The usage is one liner

librarian-puppet install

在其他情况下,我们有一个 shell 脚本,它运行两次 puppet,一次是一个只负责获取所需模块的最小模块,然后在所有模块都可用时运行完整的 puppet 流程.

In other cases we have a shell script that runs puppet two times, one time a minimal module that is only responsible for fetching the required modules, and then the full blown puppet flow when all modules are available.

这篇关于我可以通过 puppet manifest 安装 puppet 模块吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆