简体   繁体   English

流浪汉和木偶的属性文件

[英]properties file for vagrant and puppet

I am in the process of creating a company-internal SDK for a set of systems we are building. 我正在为正在构建的一组系统创建公司内部的SDK。 We have multiple stages, such as "development", "quality-assurance" and "production" were we host the real services. 我们提供真正的服务,我们有多个阶段,例如“发展”,“质量保证”和“生产”。

I'd like the SDK to be able to mirror these stages. 我希望SDK能够反映这些阶段。 For that I'd like to use vagrant, puppet and some kind of property file which contains the versions of the services that match the stages. 为此,我想使用vagrant,puppet和某种属性文件,其中包含与阶段匹配的服务版本。

Is it possible to have such an external file? 是否可以有这样的外部文件? All it defines are a couple of variables for the versions. 它定义的只是版本的几个变量。 Everything else (nodes, network, applications, WAR-files, DBs, etc) should be defined in a generic vagrant/puppet file. 其他所有内容(节点,网络,应用程序,WAR文件,DB等)都应在通用的vagrant / puppet文件中定义。

Thanks for your help! 谢谢你的帮助!

take a look at hiera , it's a hierarchical data structure for puppet parameters, it enables setting different parameter values for different environments (dev, test & prod). 看一下hiera ,它是用于伪参数的分层数据结构,它可以为不同的环境(开发,测试和生产)设置不同的参数值。

Starting from puppet3 hiera is built into puppet (make sure the puppet client on your vagrant box is > 3, run: puppet -V) 从puppet3开始,hiera已内置到puppet中(确保您的流浪者盒子上的puppet客户端> 3,运行:puppet -V)

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

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