请参阅puppetmaster.conf和dashboard-vhost.conf文件的要点 。 我有我的Puppetmaster(3.7.3)在Apache和Passenger端口TCP / 8140下运行在CentOS 6.5上。 它工作正常。 但是我的Puppet仪表板也运行在80端口的Passenger下,当我浏览到端口80上的服务器IP /主机名时会产生这个错误: The environment must be purely alphanumeric, not '' 如果我从/etc/httpd/conf.d删除了puppetmaster.conf文件,我可以浏览到仪表盘。 当我把它放回去,我得到的错误。 我已经研究过这个,而且我发现的所有东西在有人在端口8140上浏览到Puppetmaster的上下文中显示了这个错误,尽pipe我正在浏览端口80.我感觉我正在寻找错误的地方。
一旦我安装了Puppet,Foreman,Hiera和Facter,我怎样才能让他们一起工作呢? Foreman GUI工作正常,可以使用浏览器进行查看。 Hiera是安装的,通过我在互联网上阅读的指南,它似乎configuration正确,Facter也可以正常工作,但代理没有从Puppet服务器获取模块。 我添加了一个非常简单的MOTD模块,并将其configuration为在common.yaml运行。 但是模块没有安装在代理机器上,也没有显示错误。 在服务器和客户端上运行puppet agent -t工作: [root@puppet production]# puppet agent -t Info: Retrieving pluginfacts Info: Retrieving plugin Info: Loading facts Info: Caching catalog for puppet.nj.peer39.com Info: Applying configuration version '1425802774' Notice: Finished catalog run in 0.05 seconds [root@puppet production]# hiera.yaml看起来像这样: [root@puppet production]# cat /etc/puppet/hiera.yaml :backends: – yaml :yaml: :datadir: '/etc/puppet/hieradata/%{::environment}' :hierarchy: – […]
我有IP地址列表,我想查找与IP地址相关的实例是否仍在运行或终止。 我每天都会启动并终止很多实例,只是想从puppet中删除他们的证书。 如果有其他方法,我可以达到我的目标,我可以做到这一点。
我们正在使用共享的Puppet Server来pipe理QA和DEV环境。 Puppet Server使用的默认configuration是生产环境 # puppet master –configprint all | grep production environment = production manifest = /data/puppetlabs/code/environments/production/manifests modulepath = /data/puppetlabs/code/environments/production/modules:/data/puppetlabs/code/modules:/opt/puppetlabs/puppet/modules 我想启用两个更多的环境DEV和QA。 为此,我将复制上述目录,并分别在Puppet Server上重命名为qa和development环境。 在puppet.conf中启用什么configuration项来启用Puppet Server中的新环境。 如果我在上面的例子中创build了多个条目,它将工作。 请build议。
我正在尝试使用http://puppetlabs.com/blog/git-workflow-and-puppet-environments/作为指导来设置dynamic环境。 不幸的是,我并不完全清楚自己在做什么。 我在/ etc / puppetlabs / puppet / environments /下创build了一个目录, 我已经将configuration示例从上面的文档复制到我的木偶大师的puppet.conf文件。 我在文档的每个部分中添加了三行到puppet.conf文件的相应部分,并进行了适合我的系统(path等)的更改。在这些更改之前,我正在使用default-post- puppet.conf的安装副本 现在当我尝试从客户端机器运行puppet agent -t -noop时,或者从服务器运行时出现以下错误。 err: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find class pe_compliance for puppet-test-01.mydomain.net on node puppet-test-01.mydomain.net warning: Not using cache on failed catalog err: Could not retrieve catalog; skipping run 如果我摆脱了所有的东西,手动放在master上的puppet.conf文件中,那么我可以添加environment […]
我有一个相当小的(10个主机)木偶安装,最近,我已经开始接受每个木偶代理运行的警告信息。 消息是: Info: Loading facts in /etc/puppet/modules/stdlib/lib/facter/root_home.rb Info: Loading facts in /etc/puppet/modules/stdlib/lib/facter/facter_dot_d.rb Info: Loading facts in /etc/puppet/modules/stdlib/lib/facter/puppet_vardir.rb Info: Loading facts in /etc/puppet/modules/firewall/lib/facter/iptables.rb Info: Loading facts in /etc/puppet/modules/concat/lib/facter/concat_basedir.rb Info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb Info: Loading facts in /var/lib/puppet/lib/facter/concat_basedir.rb Info: Loading facts in /var/lib/puppet/lib/facter/facter_dot_d.rb Info: Loading facts in /var/lib/puppet/lib/facter/iptables.rb Info: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb Debug: catalog supports […]
我有一个木偶大师(版本3.8.1)设置,我认为是正确设置的hiera.yaml文件,如下所示: pete@ip-172-31-4-61:~$ cat /etc/puppet/hiera.yaml — :hierarchy: – "%{::fqdn}" :backends: – yaml :yaml: :datadir: '/etc/puppet/hieradata' 当我运行以下命令: sudo puppet master –verbose –debug –compile ip-10-1-3-7 (ip-10-1-3-7是我的一个节点)我没有看到目录中的任何信息根据我的hiera数据。 更令人困惑的是我没有在debugging中看到这一行: Debug: hiera(): Hiera YAML backend starting 我在其他傀儡艺术家看到的,我也有和Hiera一起工作的 更新:我编辑了我的puppet.conf文件,包括hiera_config按照下面的注释,并重新启动puppetmaster,但它仍然无法正常工作。 pete@ip-172-31-4-61:~$ cat /etc/puppet/puppet.conf [main] logdir=/var/log/puppet vardir=/var/lib/puppet ssldir=/var/lib/puppet/ssl rundir=/var/run/puppet factpath=$vardir/lib/facter certname = master dns_alt_names = puppet hiera_config = $confdir/hiera.yaml [master] # These are needed […]
我按照https://www.youtube.com/watch?v=Lm6wsc8FjC8上的video教程来获得使用puppet将sshd_config部署到不同主机的基本示例。 这是我的“模块”: ssh_config/ |– files | |– sshd_config.Debian | `– sshd_config.Ubuntu `– manifests `– init.pp cat manifests/init.pp显示我的清单: class ssh_config { package { 'openssh-server': ensure => latest, } file { '/etc/ssh/sshd_config': ensure => 'present', owner => 'root', group => 'root', mode => '0644', source => 'puppet:///modules/ssh_config/sshd_config.${operatingsystem}', require => Package['openssh-server'], notify => Service['ssh'] } service { 'ssh': […]
我想使用DOCSF模块(从github)。 如果我尝试使用它,我得到这个结果: Error: /File[/var/lib/puppet/facts.d]: Failed to generate additional resources using 'eval_generate': Error 400 on SERVER: Permission denied – /etc/puppet/environments/production/modules/docsf/metadata.json Error: /File[/var/lib/puppet/facts.d]: Could not evaluate: Could not retrieve file metadata for puppet://puppetmaster.example.com/pluginfacts: Error 400 on SERVER: Permission denied – /etc/puppet/environments/production/modules/docsf/metadata.json Info: Retrieving plugin Error: /File[/var/lib/puppet/lib]: Failed to generate additional resources using 'eval_generate': Error 400 on SERVER: […]
我怎样才能得到所有连接到木偶大师木偶4的奴隶列表? 我以前可以看看/ var / lib / puppet / reports文件夹,但使用Puppet 4; 我无法find它的目录。 谢谢