Hey guys,
Sorry for my bad english. I'm on a traineeship at the moment. My boss gave
me the task to install Puppet on 2 virtual machines and install a package
on the puppetclient over the puppetmaster (Im running Debian "wheezy" on
both machines).
I configurated both machines and also could sign the puppetclient on the
puppetmaster. If I type: puppet agent --test in my clients terminal I get
the following error:
err: Could not retrieve catalog from remote server: getaddrinfo: No address
associated with hostname
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run
err: Could not send report: getaddrinfo: No address associated with hostname
I documented the way of my configurations:
(I did it on German thats why Konfiguration with "K" ;) )
Puppetmaster
Hostname Konfiguration
Puppetmaster → vi /etc/hostname → „puppetmaster“
Domain/Host Konfiguration
→ vi /etc/hosts
127.0.0.1 localhost
#127.0.1.1 puppetmaster.puppet puppetmaster
192.168.56.101 puppetmaster.puppet puppetmaster
192.168.56.102 puppetclient1.puppet puppetclient1
Network Interface
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth1
iface eth1 inet static
address 192.168.56.101
netmask 255.255.255.0
network 192.168.56.0
broadcast 192.168.56.255
dns-nameservers 192.168.56.101
auto eth0
iface eth0 inet dhcp
# I got 1 auto and 1 static, because i need to network adapters: NAT and
Hots-only for my machines, otherwise the connection wouldnt work as it
should.
nodes.pp
Puppetmaster → cd /etc/puppet/manifests → vi nodes.pp →
node ’puppetmaster’ {
include apache2
}
site.pp
/etc/puppet/manifests → vi site.pp
package {
'apache2':
ensure => installed
}
service {
'apache2':
ensure => true,
enable => true,
require => Package['apache2']
}
Puppet.conf
cd /etc/puppet → vi puppet.conf →
[master]
# These are needed when the puppetmaster is run by passenger
# and can safely be removed if webrick is used.
ssl_client_header = SSL_CLIENT_S_DN
ssl_client_verify_header = SSL_CLIENT_VERIFY
puppetclient1 = 192.168.56.102
Puppetclient1
Hostname Konfiguration
Puppetclient1 → vi /etc/hostname → „puppetclient1“
Domain/Host Konfiguration
vi /etc/hosts
127.0.0.1 localhost
#127.0.1.1 puppetclient1.puppet puppetclient1
192.168.56.101 puppetmaster.puppet puppetmaster
192.168.56.102 puppetclient1.puppet puppetclient1
Network Interface
# The loopback network interface
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
# The primary network interface
auto eth1
iface eth1 inet static
address 192.168.56.102
netmask 255.255.255.0
network 192.168.56.0
broadcast 192.168.56.255
dns-nameservers 192.168.56.101
Puppet.conf
cd /etc/puppet → vi puppet.conf
[master]
# These are needed when the puppetmaster is run by passenger
# and can safely be removed if webrick is used.
ssl_client_header = SSL_CLIENT_S_DN
ssl_client_verify_header = SSL_CLIENT_VERIFY
certname=puppetmaster
Would be very kind of you if you guys could help me (:
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/3db33b4a-1d59-4cd0-80a3-7a9b8572c833%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.