informatica:linux:puppet
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| informatica:linux:puppet [2012/06/08 09:28] – javi | informatica:linux:puppet [2015/04/13 20:19] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| Sistema para centralizar configuraciones e instalacion de paquetes... | Sistema para centralizar configuraciones e instalacion de paquetes... | ||
| - | |||
| - | |||
| - | |||
| ===== Instalación y configuración del servidor ===== | ===== Instalación y configuración del servidor ===== | ||
| Line 49: | Line 46: | ||
| sudo mkdir -p / | sudo mkdir -p / | ||
| - | < | + | |
| - | / | + | |
| Simplemente un archivo vacio | Simplemente un archivo vacio | ||
| - | </ | ||
| < | < | ||
| Line 73: | Line 68: | ||
| En este ejemplo: | En este ejemplo: | ||
| - | | + | * Instalamos (si no lo esta) el paquete ' |
| - | * Copiamos el archivo puppet_server.domain.com:/ | + | * Copiamos el archivo: |
| - | * Importante: el archivo (/ | + | |
| + | A: | ||
| + | | ||
| + | Notese que la URL es: | ||
| + | | ||
| + | * **Importante**: el archivo (/ | ||
| 2. Arrancar/ | 2. Arrancar/ | ||
| Line 114: | Line 114: | ||
| / | / | ||
| / | / | ||
| + | |||
| + | |||
| Line 124: | Line 126: | ||
| sudo aptitude update; sudo aptitude install puppet -R | sudo aptitude update; sudo aptitude install puppet -R | ||
| - | 2. Configurar para que se puede arrancar como demonio | + | 2. Configurar para que se puede arrancar como demonio: |
| - | sudo cp / | + | sudo mv / |
| + | | ||
| - | Y dejar la siguiente | + | < |
| + | # Start puppet on boot? | ||
| + | START=yes | ||
| + | |||
| + | # Startup options | ||
| + | DAEMON_OPTS=" | ||
| + | </ | ||
| + | |||
| + | Si quisieramos redirigir el log a otro archivo podriamos usar la siguiente | ||
| + | |||
| + | < | ||
| + | # Start puppet on boot? | ||
| + | START=yes | ||
| + | |||
| + | # Startup options | ||
| + | DAEMON_OPTS=" | ||
| + | </ | ||
| - | ... | ||
| - | START=yes | ||
| - | ... | ||
| 3. Definir el nombre del servidor al que se conecta: | 3. Definir el nombre del servidor al que se conecta: | ||
| Line 212: | Line 228: | ||
| notice: Signed certificate request for dns.jj.com | notice: Signed certificate request for dns.jj.com | ||
| notice: Removing file Puppet:: | notice: Removing file Puppet:: | ||
| + | |||
| ===== Revocar certificado ===== | ===== Revocar certificado ===== | ||
| + | |||
| 2 formas: | 2 formas: | ||
| Line 226: | Line 244: | ||
| notice: Removing file Puppet:: | notice: Removing file Puppet:: | ||
| </ | </ | ||
| + | |||
| + | |||
| + | |||
| + | ===== Arrancar puppetmaster como otro usuario ===== | ||
| + | |||
| + | < | ||
| + | sudo cp / | ||
| + | sudo vim / | ||
| + | </ | ||
| + | |||
| + | Y cambiar solo esta linea: | ||
| + | |||
| + | chown USUARIO: | ||
| + | |||
| + | < | ||
| + | sudo cp / | ||
| + | sudo vim / | ||
| + | </ | ||
| + | |||
| + | Y anyadir esta linea en la seccion [main]: | ||
| + | |||
| + | < | ||
| + | [main] | ||
| + | ... | ||
| + | user=usuario | ||
| + | </ | ||
| + | |||
| + | Reiniciar: | ||
| + | |||
| + | sudo / | ||
| + | |||
| + | |||
| + | |||
| + | ===== Instalar modulos ===== | ||
| + | |||
| + | http:// | ||
| + | |||
| + | |||
| + | |||
| + | ===== Errores / bugs ===== | ||
| + | |||
| + | **err: Could not call revoke: Cannot convert into OpenSSL:: | ||
| + | |||
| + | sudo rm -fr / | ||
| + | |||
| + | --------------------------------------------------------------------------------------------------------------------- | ||
| + | |||
| + | * La funcion split() no va bien en la version 2.6. Actualizar a la 2.7.x (me funciona en la 2.7.18) | ||
| + | |||
| + | http:// | ||
| + | |||
| + | --------------------------------------------------------------------------------------------------------------------- | ||
| + | |||
| + | **Could not request certificate: | ||
| + | |||
| + | 1. (Servidor) Eliminar el certificado: | ||
| + | |||
| + | sudo rm -fr / | ||
| + | |||
| + | 2. (Cliente) Eliminar certificados: | ||
| + | |||
| + | sudo su | ||
| + | rm -fr / | ||
| + | |||
informatica/linux/puppet.1339147716.txt.gz · Last modified: (external edit)
