2016-01-30 151 views
0

當我嘗試安裝基本的Windows模塊(傀儡新手)時,我無法識別當我嘗試將其類添加到新組時。傀儡不識別支持的模塊

當我列出模塊時,我可以看到它們,當我檢查生產模塊路徑時,它位於正確的位置,爲什麼我無法在GUI中看到它們?

謝謝..

[[email protected] ~]# puppet module list <br> 
/etc/puppetlabs/code/environments/production/modules<br> 
├── badgerious-windows_env (v2.2.2)<br> 
├── chocolatey-chocolatey (v1.2.1)<br> 
├── puppet-download_file (v1.2.1)<br> 
├── puppet-iis (v1.4.1)<br> 
├── puppet-windowsfeature (v1.1.0)<br> 
├── puppetlabs-acl (v1.1.2)<br> 
├── puppetlabs-apache (v1.8.0)<br> 
├── puppetlabs-concat (v1.2.5)<br> 
├── puppetlabs-powershell (v1.0.6)<br> 
├── puppetlabs-reboot (v1.2.1)<br> 
├── puppetlabs-registry (v1.1.3)<br> 
├── puppetlabs-stdlib (v4.11.0)<br> 
├── puppetlabs-windows (v2.1.1)<br> 
└── puppetlabs-wsus_client (v1.0.1)<br> 
/opt/puppetlabs/puppet/modules<br> 
├── puppetlabs-pe_accounts (v2.0.2-6-gd2f698c)<br> 
├── puppetlabs-pe_concat (v1.1.2-7-g77ec55b)<br> 
├── puppetlabs-pe_console_prune (v0.1.1-9-gfc256c0)<br> 
├── puppetlabs-pe_hocon (v2015.3.0-rc0)<br> 
├── puppetlabs-pe_inifile (v1.1.4-16-gcb39966)<br> 
├── puppetlabs-pe_java_ks (v1.2.4-37-g2d86015)<br> 
├── puppetlabs-pe_nginx (v2015.2.0-rc0)<br> 
├── puppetlabs-pe_postgresql (v3.4.4-35-g51cdb78)<br> 
├── puppetlabs-pe_puppet_authorization (v2015.3.0-rc1-31-g6d266e1)<br> 
├── puppetlabs-pe_puppetdbquery (v2015.3.0-rc1-1-gb278efd)<br> 
├── puppetlabs-pe_r10k (v2015.2.2-2-g21c67b9)<br> 
├── puppetlabs-pe_razor (v0.2.1-84-gbb045d2)<br> 
├── puppetlabs-pe_repo (v2015.3.0-rc2-39-g796afc6)<br> 
├── puppetlabs-pe_staging (v0.3.3-24-g2d5dbb0)<br> 
└── puppetlabs-puppet_enterprise (v2015.3.1-1-g8c41b9f)<br> 

[[email protected] ~]# puppet config print modulepath --section master --environment production 
/etc/puppetlabs/code/environments/production/modules:/etc/puppetlabs/code/modules:/opt/puppetlabs/puppet/modules 

回答

0

爲了讓工頭GUI獲取安裝的模塊,你需要用它使puppet.yml文件工頭代理運行。

注:我希望你有一個工作的工頭工代理,運行puppet.yml 文件啓用。如果它沒有運行,請啓用foreman-proxy的puppet,並在foreman GUI中配置代理設置。這是 足以使這些類可見。

我也粘貼了我的puppet.conf文件,如果需要的話就馬上運行。

[main] 
logdir=/var/log/puppet 
vardir=/var/lib/puppet 
ssldir=/var/lib/puppet/ssl 
rundir=/var/run/puppet 
factpath=$vardir/lib/facter 
prerun_command=/etc/puppet/etckeeper-commit-pre 
postrun_command=/etc/puppet/etckeeper-commit-post 
environment=production 
reports=log, foreman 

[master] 
dns_alt_names = yourdomain.com 
certname=yourdomain.com 
external_nodes=/etc/puppet/node.rb 
node_terminus=exec 

[agent] 
server=yourdomain.com 
listen=true 

[production] 
modulepath=/etc/puppetlabs/code/environments/production/modules