====== Instalación Server PUPPET ====== apt-get install puppetmaster vim-puppet git ====== Instalación Cliente PUPPET ====== Este documento describe los pasos para instalar PUPPET cliente en un computador. ===== Cliente ===== ==== hostname ==== El hostname **tiene** que estar perfectamente configurado y coincidir con lo que devuelve el DNS. $ cat /etc/hostname amazing $ hostname amazing y también devolver el nombre completo $ cat /etc/hosts 127.0.0.1 localhost 192.168.1.123 amazing.system.com amazing $ hostname -f amazing.system.com ==== servidor puppet ==== El cliente debe reconocer el servidor puppet $ cat /etc/hosts [...] 192.168.1.29 master master.system.com ==== instalar puppet ==== El proceso de instalación crea los certificados del cliente y el ''csr'' para firmar. # apt-get update # apt-get -y install puppet Configurar servidor puppet # cat /etc/puppet/puppet.conf # pluginsync=false server=master.system.com Correr comando # puppetd --test --waitforcert 15 ** produce error!! ** Exiting, no certificate found ===== Servidor ===== ==== firmar certificado ==== # puppetca -la amazing.system.com (3E:F0:01:3B:86:13:3A:AA:7B:E5:0D:C9:01:BD:18:3D) # puppetca -s amazing.system.com # puppetca -la + amazing.system.com (3E:F0:01:3B:86:13:3A:AA:7B:E5:0D:C9:01:BD:18:3D) ===== Cliente ===== ==== correr sincronización ==== $ sudo puppetd --test ==== levantar daemon ==== # cat /etc/default/puppet START=yes # /etc/init.d/puppet start ===== Servidor ===== ==== crear receta ==== En ''/etc/puppet/manifest'' están las recetas