Puppet
Version vom 20. Februar 2015, 10:02 Uhr von Thomas (Diskussion | Beiträge)
puppet grundlagen
szenario
der spätere master server "puppet"
root@puppet:~# host tac tac.xinux.org has address 192.168.244.52 root@puppet:~# host tic tic.xinux.org has address 192.168.244.53
der client "tac"
root@tac:~# host puppet puppet.xinux.org has address 192.168.244.51
root@tac:~# netstat -lntp Aktive Internetverbindungen (Nur Server) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 913/sshd tcp6 0 0 :::22 :::* LISTEN 913/sshd
der client "tic"
root@tic:~# host puppet puppet.xinux.org has address 192.168.244.51
root@tic:~# netstat -lntp Aktive Internetverbindungen (Nur Server) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 916/sshd tcp6 0 0 :::22 :::* LISTEN 916/sshd
installation vom puppetmaster
root@puppet:~# apt-get update root@puppet:~# apt-get install puppetmaster -y
das konfigurationsverzeichnis
root@puppet:/etc/puppet# ls auth.conf etckeeper-commit-post etckeeper-commit-pre files fileserver.conf manifests modules puppet.conf templates
das standard site manifest
das verzeichnis ist leer
root@puppet:/etc/puppet# cd manifests/ root@puppet:/etc/puppet/manifests# ls
beispiel apache
root@puppet:/etc/puppet/manifests# cat site.pp
package {
'apache2' :
ensure => installed
}
service {
'apache2 :
ensure => true,
enable => true,
require => Package['apache2']
}
restarten des service
root@puppet:~# service puppetmaster restart * Restarting puppet master
docus
- https://docs.puppetlabs.com/guides/install_puppet/install_debian_ubuntu.html
- https://www.howtoforge.com/puppet-ubuntu-14.04
- https://www.jerger.org/blog-lang/-/blogs/puppetmaster-einer-sie-alle-zu-knechten-