[英]What is the puppet way to send configurations along with request from the puppet agent
[英]How should I structure my puppet configurations for shared environment resources (packages, configurations, etc) when using Puppet?
因此,我正在為一個正在研究的項目設置人偶,我想知道在環境之間共享資源的最佳方法是什么。 問題是我有一些常見的軟件包,需要在幾個不同的環境之間安裝。
我閱讀了有關對環境的偽造的支持,看來您所能做的就是指定模塊路徑和清單。 如果是這樣,那么環境的意義何在?
我正在考慮的只是共享模塊路徑,該路徑具有要安裝的共享軟件包的模塊,然后將其導入每個環境的站點清單中,但這似乎是一種很麻煩的方式,尤其是在應該使用模塊的情況下獨自一人。
有沒有更好的方法來實現這一目標? 我想念什么嗎?
謝謝。
您可以使用node
配置不同的環境:
# /etc/puppetlabs/puppet/manifests/site.pp
node 'dev' {
include common
include apache
include squid
}
node 'prod' {
include common
include mysql
}
這是參考: http : //docs.puppetlabs.com/puppet/2.7/reference/lang_node_definitions.html
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.