Ask Your Question
0

two errors with foreman and puppet

asked 2015-10-22 19:35:08 -0500

tagomasa gravatar image

I configure puppet like this on centos7 is a test server at home and so certificates are autosigned i do those commands

rpm -ivh https://yum.puppetlabs.com/puppetlabs-release-el-7.noarch.rpm   
yum install puppet-server                                            
puppet master --verbose --no-daemonize #ok

add some ports to firewall

for i in 53 80 443 3000 3306 5910-5930 5432 8140 8443;do firewall-cmd --permanent --zone=internal --add-port=$i/tcp;done
for i in 53 67-69 ;do firewall-cmd --permanent --zone=internal --add-port=$i/udp;done

then install foreman

yum -y install epel-release http://yum.theforeman.org/releases/1.7/el7/x86_64/foreman-release.rpm
yum -y install foreman-installer

go to work and.. ERROR!

puppet agent --test --verbose --debug

Debug: Caching connection for https://centos71.giallo.privata:8140
Warning: Unable to fetch my node definition, but the agent run will continue:
Warning: Error 400 on SERVER: Failed to find centos71.giallo.privata via exec: Execution of '/etc/puppet/node.rb centos71.giallo.privata' returned 1:

then i try

 /etc/puppet/node.rb centos71.giallo.privata

Another error

Error retrieving node centos71.giallo.privata: Net::HTTPForbidden
Check Foreman's /var/log/foreman/production.log for more information.

Check the log and...

Processing by HostsController#externalNodes as YML
Parameters: {"name"=>"centos71.giallo.privata"} No smart proxy server found on ["centos71.giallo.privata"] and is not in trustedpuppetmasterhosts Redirected to https://centos71.giallo.privata/users... Filter chain halted as :requirepuppetmasteror_login rendered or redirected Completed 403 Forbidden in 9ms (ActiveRecord: 1.0ms)

on formeman production.log

What's wrong?

edit retag flag offensive close merge delete

Comments

Did foreman-installer run successfully? Did you pass any arguments to it? Do you have any smart proxies listed in the Foreman UI under Infrastructure > Smart proxies?

domcleal gravatar imagedomcleal ( 2015-10-23 02:35:51 -0500 )edit

Foreman-installer report error the same error reported by puppet,i launch foreman-installer without any arguments,no proxy configured

tagomasa gravatar imagetagomasa ( 2015-10-23 07:25:03 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-10-23 15:42:18 -0500

tagomasa gravatar image

Solution found,upgrading to latest version 1.9

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2015-10-22 19:35:08 -0500

Seen: 613 times

Last updated: Oct 23 '15