由于modulepath
现在已在隐式作用域(IE main
)中弃用,我如何保留每个环境的模块路径?我希望将模块保留在全局范围内,而无需指定环境。
[main]
certname = {somecert}
dns_alt_names = puppet,{otherorgs}
vardir = /var/opt/lib/pe-puppet
logdir = /var/log/pe-puppet
rundir = /var/run/pe-puppet
modulepath = $confdir/environments/$environment/modules:/opt/puppet/share/puppet/modules
manifest = /etc/puppetlabs/puppet/environments/$environment/manifests/site.pp
server = {puppetserver}
user = pe-puppet
group = pe-puppet
archive_files = true
archive_file_server = {puppetserver}
[master]
certname = {puppetserver}
ca_name = 'Puppet CA generated on {puppetserver} at 2013-11-07 13:15:40 -0800'
reports = puppetdb,cimlog,console
node_terminus = console
ssl_client_header = SSL_CLIENT_S_DN
ssl_client_verify_header = SSL_CLIENT_VERIFY
storeconfigs_backend = puppetdb
storeconfigs = true
manifest=$confdir/environments/$environment/manifests/site.pp
[agent]
report = true
classfile = $vardir/classes.txt
localconfig = $vardir/localconfig
graph = true
pluginsync = true
environment = production
http_compression = true
splaylimit=1800
configtimeout=480
splay=true
答案 0 :(得分:1)
你在这里提出的问题并不十分清楚,但我会假设你关心保留/opt/puppet/share/puppet/modules
中独立于各自环境的全局模块集的能力。< / p>
Puppet允许通过basemodulepath选项。
[main]
environmentpath=$confdir/environments
basemodulepath=/opt/puppet/share/puppet/modules