[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

Welcome to the Slackware Documentation Project

Diferencias

Muestra las diferencias entre dos versiones de la página.

Enlace a la vista de comparación

Próxima revisión
Revisión previa
es:howtos:slackware_admin:slackware_automation_using_ansible [2019/02/03 21:08 (UTC)] – creado slackwarespanoles:howtos:slackware_admin:slackware_automation_using_ansible [2019/02/04 20:23 (UTC)] (actual) – [Bootstrap Una instalación Slackware fresca] m3rsy
Línea 1: Línea 1:
-====== Slackware Automation Using Ansible ====== 
  
-===== Rationale, and What Is Ansible, Anyway? =====+====== Slackware Automatización utilizando Ansible ======
  
-Like everyone else, I used to write Perl and bash scripts to automate things, but decided to learn the modern way of doing such things. I looked at Puppet initially but decided to learn Ansible instead. I wrote a simple collection of Perl scripts and Ansible playbooks to be run on a fresh Slackware install, and was told in Freenode #slackware that I ought to write something for the wiki, which brings us up to date.+===== ¿Justificación y qué es imposible de todos modos? =====
  
-So what is [[https://www.ansible.com/|Ansible]]? It'buzzword-compliant IT automation platform, comparable to Chef, Puppet, Saltstack and whatever else the cool kids are using this weekAnsible's advantages over its competitors is that it's lightweight (it runs over SSH) and it'simple to understand and use. If you're new to Ansible, you might want to take a look at the [[http://docs.ansible.com|official docs]] first.+Como todos los demás, solía escribir scripts de Perl y bash para automatizar cosas, pero decidí aprender la forma moderna de hacer tales cosasMiré a Puppet inicialmente pero decidí aprender Ansible en su lugarEscribí una colección simple de scripts de Perl y libros de juego Ansible para ejecutar en una nueva instalación de Slackwarey en Freenode #slackware se me dijo que debía escribir algo para la wiki, lo que nos pone al día.
  
-===== Bootstrap A Fresh Slackware Install =====+Entonces, ¿qué es [[https://www.ansible.com/|Ansible]]? ? Es una plataforma de automatización de TI compatible con buzzword, comparable a Chef, Puppet, Saltstack y cualquier otra cosa que los niños geniales estén usando esta semana. Las ventajas de Ansible sobre sus competidores es que es liviano (se ejecuta sobre SSH) y es fácil de entender y usar. Si eres nuevo en Ansible, es posible que desees consultar primero los  [[http://docs.ansible.com| documentos oficiales]] .
  
-Let's say you have a brand-new Slack 14.2 install... now what? You have to log in and make sure all the software you want is installed, copy over your .bashrc and whatnot, and generally get your shiny new desktop or server ready to be used. You can use my **ansible_slackware_bootstrap** scripts and playbooks to automate some of that for you.+===== Bootstrap Una instalación Slackware fresca =====
  
-There are prerequisites, of course... you need git and ansible installed on a Linux machine (perhaps your Ubuntu desktopmaybe)plus you need to set up SSH keysso that you can log in as root to the Slackware machine you want to set up. Lastlyyou need to list your target machine in the /etc/ansible/hosts inventory file on your desktopOnce that's done, you can begin.+Digamos que tienes una nueva instalación de Slack 14.... ¿ahora qué? Debe iniciar sesión y asegurarse de que todo el software que desea esté instaladocopiar sobre su .bashrc y otras cosasyen generalpreparar su nuevo escritorio o servidor listo para usarPuedes usar mis scripts y playbooks  **ansible_slackware_bootstrap** para automatizar algo de eso para ti.
  
-The latest code [[https://github.com/mmlj4/ansible_slackware_bootstrap|can be found on GitHub]]All you have to do is click the green "Clone or download" button and copy the link providedget root on your Linux boxand type "git clone $URL"then cd to the directory it creates and you've got the code.+Por supuesto, hay requisitos previos ... necesita tener instalado git y ansible en una máquina Linux (quizás en su escritorio Ubuntu)además de configurar claves SSH, para que pueda iniciar sesión como root en la máquina Slackware que desea preparar. Por últimodebe incluir su máquina de destino en el archivo de inventario / etc / ansible / hosts en su escritorio. Una vez hecho estopuedes comenzar.
  
-The [[https://github.com/mmlj4/ansible_slackware_bootstrap/blob/master/README.md|README file]] from GitHub will give you more information, but what you want to do is run //**slackware-bootstrap-perl-and-python.pl**//which will install Perl and Python on your target Slackware machine. After that, run the //**slackware-installsets.yaml**// and //**slackware-admin-setup.yaml**// playbooks, in that order. You can use my runplaybook.pl script for these if you like. Once you're run the scripts and playbookslog in to your target Slackware machine and verify that slackpkgsbopkg and your favorite dotfiles are installed.+El último código [[https://github.com/mmlj4/ansible_slackware_bootstrap|se puede encontrar en GitHub]]. odo lo que tiene que hacer es hacer clic en el botón verde "Clonar o descargar" y copiar el enlace proporcionadoobtener root en su caja de Linuxy escribir "git clone $ URL "luego cd al directorio que crea y obtendrá el código.
  
 +El [[https://github.com/mmlj4/ansible_slackware_bootstrap/blob/master/README.md|README file]] de GitHub le dará más información, pero lo que desea hacer es ejecutar //**slackware-bootstrap-perl-and-python.pl**//, que instalará Perl y Python en su máquina Slackware de destino. Después de eso, ejecute el //**slackware-installsets.yaml**// y //**slackware-admin-setup.yaml**// playbooks, en ese orden. Puedes usar mi script runplaybook.pl para estos si quieres. Una vez que haya ejecutado los scripts y los libros de jugadas, inicie sesión en su máquina Slackware de destino y verifique que slackpkg, sbopkg y sus archivos de puntos favoritos estén instalados.
 {{tag>howtos}} {{tag>howtos}}
 + --- //[[wiki:user:m3rsy|M3rsy]] 2019/02/04 20:20 (UTC)//
 es:howtos:slackware_admin:slackware_automation_using_ansible ()