Infraestructura como código

Festival Politraining Industria 4.0

Infraestructura como código

En este nuevo artículo me gustaría explicar que es infraestructura
como código (IAC), pero primero definamos a que nos referimos cuando
hablamos sobre infraestructura.
Cuando hablamos de infraestructura nos referimos en este caso, a un
servidor(vps) , dominios, redes privadas. etc.

Definición

El concepto de infraestructura como código no es más que la forma de
automatización de nuestra infraestructura a través de código .

Puede que tu seas un freelance o trabajes en una compañía, en la que
constantemente se hace deploy de nuevas aplicaciones.
Imagina tener que estar creando un servidor(vps), agregando las llaves
ssh, creando un record A, load balancers, continuar con la instalación y
configuración de nginx ,mysql docker, php, etc. Todo esto cada vez que
tengas que hacer deploy de una nueva aplicación.
Este es un proceso en el que muchas veces se le dedica tiempo
innecesario.

Es por ello que muchas veces, es mejor encontrar o crear una solución para la automatización en este tipo de procesos.

Para poder trabajar o usar infraestructura como código, lo único que
tenemos que hacer es bien, crear nuestro propio script, o bien usar
alguna herramienta de un tercero.

Usualmente cuando trabajamos con infraestructura como código,
independiente de la herramienta que usamos, siempre trabajamos con algún
lenguaje para la descripción de la configuración, pudiendo ser json,
yaml o algún nuevo lenguaje propio del software (domain-specific
language ). dentro del archivo de configuración, es donde definiremos
todo los componentes necesarios para crear nuestra infraestructura,
variando de sintaxis entre los diferentes softwares que podemos usar.

Cabe mencionar que, usualmente este tipo de software nos permite,
configurar a nuestra infraestructura, de una manera muy detallada,
dependiendo del tipo de proveedor que elijamos , por ejemplo, poder
configurar redes privadas, sistema operativo, podemos agregar dominios,
subdominios , agregar nuestra claves ssh, elegir el datacenter etc. Algo
interesante es que, podemos agregar y ejecutar scripts dentro del vps
durante la construcción, esto para poder configurar dentro todo el
software.

Aunque de igual forma, tenemos otro concepto llamado configuración
como código (CaC)
Qué es exactamente el mismo concepto, pero este está orientado a la
configuración del software dentro de la infraestructura(vps), por
ejemplo la instalación y configuración de nginx, docker, ruby etc. Sin
embargo muchas veces los mismos proveedores (IaC) tienen la misma
funcionalidad o su funcionalidad es intercambiable.

Ventajas y desventajas.

Dentro de las ventajas como hemos mencionado es el de elaborar una
plantilla que podemos re-utilizar múltiples veces, eliminando la
necesidad de realizar configuraciones manuales. Esta sería, la principal
y más importante característica de este tipo de software.
Ya que con ello podemos hacer la replicación de la misma configuración,
para diferentes entornos, para testing, QA, producción, desarrollo, etc.

Otra ventaja que podemos encontrar es que usualmente este tipo de
software es del tipo agnóstico lo que quiere decir que no importa, el
proveedor en donde estés configurando nuestra infraestructura, pudiendo
ser digital ocean, amazon web services, azure, e inclusive virtualbox.

Una desventaja que podemos encontrar es quizá el tiempo que le
dedicamos en configurar nuestro archivo de configuración, así mismo, el
tener que modificar el archivo si es que agregamos una nueva tecnología o
configuración a nuestra infraestructura.

Lista de software para IaC y CaC

Debajo vemos una lista con varios de los proveedores de infraestructura y configuración como código más sobresalientes.
Cada uno de ellos comparten cierta similitud, en cuanto a configuración.

  • Terraform
  • Chef
  • Puppet
  • Ansible
  • SaltStack

Conclusión

La automatización es sin duda una de las mejores cosas que podemos
hacer para ahorrar tiempo y muchas veces recursos.
El uso de IaC, dentro de una empresa o de manera independiente trae
muchas ventajas a largo plazo. Este concepto de IaC no es para nada
nuevo, es un concepto de muchos años. De hecho muchos autores. hacen
referencia a que este concepto fue la base de la cual ha surgido toda
esta tendencia del devops.
Espero que este pequeño artículo te haya servido, o te haya incentivado a
investigar más sobre el tema, y tal vez a aprender una nueva
tecnología.

Comments: 15,408

  1. This is the kind of post I enjoy reading.

  2. tour planner dice:

    My family always say that I am wasting my time here at net,
    but I know I am getting familiarity all the time by reading
    thes fastidious content.

  3. It’s very straightforward to find out any matter on web
    as compared to textbooks, as I found this article
    at this website.

  4. I genuinely valued the approach this was laid out.

  5. Greetings I am so happy I found your web site,
    I really found you by mistake, while I was researching on Askjeeve for something else, Regardless I am here now and would just like to say thanks for a marvelous post and a all round
    entertaining blog (I also love the theme/design), I don’t have
    time to go through it all at the minute but I have
    saved it and also added in your RSS feeds, so when I have time
    I will be back to read more, Please do keep up the excellent
    job.

  6. Wow, awesome weblog format! How long have you been running a blog for?

    you make running a blog look easy. The overall look of your web site is magnificent,
    let alone the content!

  7. hpdogvfd dice:

    Remember the Golden Rule: As hard as it may be some times, you can get a lot more done in the calm friendly manner then you ever will accomplish by pounding your fist around the counter. Factors staying taught in universities regularly variations, this is a fact. In order to register while using GPh – C, pharmacy technicians must obtain either a 3 Level 3 qualifications.

  8. More articles like this would make the online space a better place.

  9. keonhacai dice:

    Wow, superb weblog structure! How lengthy have you ever
    been blogging for? you made running a blog look easy.

    The whole look of your site is wonderful, as neatly as the content!

  10. Arthur Wood dice:

    I absolutely appreciated the manner this was explained.

  11. Hello! I know this is kinda off topic nevertheless I’d figured
    I’d ask. Would you be interested in exchanging
    links or maybe guest writing a blog post or vice-versa? My website
    goes over a lot of the same topics as yours and I feel we could greatly benefit from each other.
    If you’re interested feel free to send me an e-mail.
    I look forward to hearing from you! Awesome blog by the way!

  12. cpowlg dice:

    We were going on the big city to find out a doctor, so that it made sense. Drugs might be ordered by just entering the pharmacy website and placing an order which has a click with the mouse button. It is extremely important that the online doctor exactly understands what the problem is and accordingly provides the medicine.

  13. Thanks for sharing. It’s excellent.

  14. ixuaza dice:

    “(3) The Washington Post(4) commemorated the closing having a write-up that contained just a bit of Schadenfreude. I must add, I have never had just about any emotional disorder within my life and am a skeptic of anti-depressants. Cocci are sphere-shaped bacteria and can include streptococci, which are chains of cocci bacteria, and staphylococci, that happen to be clusters of cocci bacteria1.

  15. I like the valuable info you supply in your articles.
    I’ll bookmark your weblog and check once more here frequently.
    I’m quite certain I will be informed lots of new stuff right here!
    Best of luck for the following!

  16. Joseph Wood dice:

    This is the kind of content I enjoy reading.

  17. Daniel White dice:

    The clarity in this article is praiseworthy.

  18. The depth in this piece is noteworthy.

  19. Hey there! This is kind of off topic but I need some guidance from an established blog.
    Is it very hard to set up your own blog? I’m not
    very techincal but I can figure things out pretty fast.
    I’m thinking about setting up my own but I’m not sure where to begin. Do you have any points or suggestions?

    Thank you

  20. I genuinely enjoyed the way this was presented.

  21. I discovered useful points from this.

  22. Thanks for sharing. It’s well done.

  23. I am truly thankful to the owner of this web page who has shared this
    wonderful article at here.

  24. Paul Davies dice:

    More content pieces like this would make the web a better place.

  25. I get pleasure from, result in I discovered exactly what I used to be having a look for.

    You have ended my four day long hunt! God Bless you man. Have
    a nice day. Bye

  26. Alan Harris dice:

    The detail in this write-up is noteworthy.

  27. ztzowykx dice:

    In order to qualify for federal loans a Free Application for Federal Student Aid (FAFSA) must be completed and aid is granted dependant on student need, tuition rates in the college, and other factors. When I asked the tech about it new action she stated that yes, it is a fresh policy and that it is really a “law” that pharmacies must adhere to. You should find this information somewhere inside the “Contact Us” section in the website.

  28. More content pieces like this would make the web better.

  29. evostoto dice:

    I’m amazed, I must say. Rarely do I encounter a blog that’s both equally educative and amusing, and without a doubt, you’ve hit the nail on the head.

    The problem is something which not enough folks are speaking intelligently about.

    I am very happy that I found this during
    my hunt for something regarding this.

  30. Thanks for posting. It’s brilliant work.

  31. You’ve undoubtedly put in effort.

  32. hello there and thank you for your info – I’ve certainly picked
    up anything new from right here. I did however expertise some technical issues using this
    site, as I experienced to reload the website lots of times previous to I could get it to load correctly.
    I had been wondering if your web host is OK?

    Not that I am complaining, but sluggish loading instances times will very frequently affect your placement in google and could damage your quality score if ads and marketing with Adwords.

    Well I am adding this RSS to my email and can look out for a lot more of your respective fascinating content.
    Make sure you update this again very soon.

  33. I genuinely liked the manner this was written.

  34. I absolutely valued the manner this was explained.

  35. lfngbsml dice:

    Location and the sort of employer will be the final factors in determining the amount pharmacists make. The pharmacist technician have to have the prepared prescription, reviewed by way of a pharmacist, before dispensing or submitting the completed order with a patient or customer. If you receive prescriptions every month make sure your pharmacy has your most up to date prescription insurance information.

  36. I discovered useful points from this.

  37. More content pieces like this would make the internet better.

  38. toto12 dice:

    Just wish to say your article is as amazing. The clearness in your
    post is simply excellent and i can assume you’re an expert on this
    subject. Fine with your permission let me to grab your RSS feed to keep
    up to date with forthcoming post. Thanks a million and please continue
    the gratifying work.

  39. I took away a great deal from this.

  40. nwyggp dice:

    1 teaspoon grated fresh ginger, or 1-2 lumps of preserved ginger, chopped. Screaming, yelling, demanding things, or becoming rude won’t help the situation. After you done the account, you’ll now go with a payment scheme.

  41. James White dice:

    I discovered useful points from this.

  42. I truly valued the style this was written.

  43. Simon Hall dice:

    I’ll gladly be back for more.

  44. What’s up, I check your new stuff like every week.
    Your humoristic style is witty, keep up the good work!

Responder a nwyggp Cancelar respuesta