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: 27,760

  1. Superb blog! Do you have any hints for aspiring writers?
    I’m hoping to start my own blog soon but I’m a little lost
    on everything. Would you recommend starting with a free platform like WordPress or
    go for a paid option? There are so many choices out there that I’m totally confused ..
    Any suggestions? Cheers!

  2. Thanks a bunch for sharing this with all folks you really understand what you’re speaking approximately!

    Bookmarked. Kindly also talk over with my site =). We can have a link exchange
    agreement between us

  3. gate io dice:

    After reading your article, it reminded me of some things about gate io that I studied before. The content is similar to yours, but your thinking is very special, which gave me a different idea. Thank you. But I still have some questions I want to ask you, I will always pay attention. Thanks.

  4. I tend not to drop many remarks, however I looked at some of the responses on Infraestructura como código – Politraining.

    I actually do have a couple of questions for you if you tend not
    to mind. Is it only me or does it seem like a few of the responses
    look like they are written by brain dead people? 😛 And, if you
    are posting at additional sites, I would like to keep up with you.
    Could you post a list of all of your social sites like your linkedin profile, Facebook page or twitter feed?

    Here is my web page … healthy weight loss diet

  5. Fantastic information. Many thanks!

  6. Thanks, Useful information!

  7. Hey there would you mind stating which blog platform you’re working with?
    I’m looking to start my own blog in the near future but I’m having a difficult time selecting
    between BlogEngine/Wordpress/B2evolution and Drupal. The reason I ask
    is because your design seems different then most blogs
    and I’m looking for something completely unique.
    P.S Sorry for getting off-topic but I had to ask!

  8. Kayıt Ol dice:

    Your article made me suddenly realize that I am writing a thesis on gate.io. After reading your article, I have a different way of thinking, thank you. However, I still have some doubts, can you help me? Thanks.

  9. Admiring the hard work you put into your website and in depth information you
    provide. It’s awesome to come across a blog every once in a while that isn’t the same out of
    date rehashed material. Fantastic read! I’ve bookmarked your site and I’m including your RSS feeds to my Google account.

  10. I was suggested this website by my cousin. I’m not sure whether this post
    is written by him as no one else know such detailed about my difficulty.
    You’re incredible! Thanks!

  11. Great blog right here! Additionally your site loads up very
    fast! What web host are you using? Can I get your affiliate link for your host?

    I wish my website loaded up as quickly as yours lol

  12. Very good website you have here but I was wondering
    if you knew of any forums that cover the same topics
    discussed here? I’d really love to be a part
    of group where I can get feed-back from other experienced individuals that share the same interest.
    If you have any suggestions, please let me
    know. Thanks!

  13. Your article made me suddenly realize that I am writing a thesis on gate.io. After reading your article, I have a different way of thinking, thank you. However, I still have some doubts, can you help me? Thanks.

  14. I savor, cause I discovered exactly what I used to be having
    a look for. You’ve ended my 4 day lengthy hunt! God Bless you man. Have a nice day.
    Bye

  15. Today, I went to the beach with my kids. I found a sea shell and
    gave it to my 4 year old daughter and said “You can hear the ocean if you put this to your ear.” She put the shell to her ear and screamed.
    There was a hermit crab inside and it pinched her ear. She never wants to
    go back! LoL I know this is totally off topic but I had to tell someone!

  16. gate io dice:

    Your article made me suddenly realize that I am writing a thesis on gate.io. After reading your article, I have a different way of thinking, thank you. However, I still have some doubts, can you help me? Thanks.

  17. I couldn?t refrain from commenting. Well written!

    Here is my web page Game Walk Throughs – http://Dtyzwmw.Com,

  18. เว็บไซต์สล็อต เว็บสล็อต
    เป็นเว็บไซต์ให้บริการเกมสล็อตชั้นหนึ่งของโลกและก็เกมสล็อตรุ่นใหม่ จากนานัปการแบรนด์เกมที่มีชื่อ เพื่อนำมาสร้างความสนุกรวมทั้งทำเงินให้กับผู้ที่ติดอกติดใจการเล่นเกมพนันในรูปแบบเกมออนไลน์โดยยิ่งไปกว่านั้นโดยมาพร้อมคุณสมบัติภาพสวยชัดเจนเต็มตา สีสันสดใส มีเรื่องราวให้ชักชวนติดตาม สร้างความรู้สึกตื่นเต้นในทุกๆครั้งที่สปินแล้วถูกรางวัล
    เว็บสล็อตจึงเป็นเยี่ยมในศูนย์รวมความเพลิดเพลินด้านการเล่นเกมที่ได้มาตรฐาน

    พร้อมการปรับแก้ให้เกมมีความชอบธรรมแก่คนที่เข้ามาสปิน ทำให้เข้ารางวัลได้ง่าย ให้ความคุ้มราคามากเพิ่มขึ้น ด้วยเหตุดังกล่าวหากคุณอยากทำความรู้จักเว็บไซต์สล็อตและก็เกมสล็อตให้มากกว่าเดิม สามารถเข้ามาติดตามรายละเอียดภายในบทความนี้ได้เลย

  19. Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me. https://www.binance.com/ph/register?ref=W0BCQMF1

  20. What’s up, yeah this paragraph is in fact nice and I
    have learned lot of things from it on the topic of blogging.

    thanks.

  21. Have you ever considered about including a little bit more than just your articles?
    I mean, what you say is valuable and everything. Nevertheless
    imagine if you added some great graphics or video
    clips to give your posts more, “pop”! Your content
    is excellent but with pics and videos, this site could definitely be one of the very best in its niche.
    Excellent blog!

  22. Excellent beat ! I wish to apprentice even as you amend your site, how can i subscribe for a blog site?
    The account aided me a appropriate deal. I were a little bit familiar of this your
    broadcast provided vivid transparent concept

  23. Vicente dice:

    Hi! This is kind of off topic but I need some help
    from an established blog. Is it tough to set up your own blog?
    I’m not very techincal but I can figure things out pretty fast.
    I’m thinking about making my own but I’m not sure where to start.
    Do you have any tips or suggestions? Cheers

  24. Greetings I am so happy I found your webpage, I really found you by accident, while I was looking on Bing for something else, Anyways I am here now and would just like to say thanks for a marvelous post and
    a all round thrilling blog (I also love the theme/design),
    I don’t have time to read it all at the minute but I have book-marked it and also included your RSS feeds, so when I
    have time I will be back to read much more, Please do keep up the awesome
    work.

  25. I pay a quick visit each day some web pages and websites to
    read articles or reviews, however this website provides quality based
    writing.

  26. each time i used to read smaller articles which also clear their motive, and
    that is also happening with this paragraph which I am reading at
    this time.

  27. Howdy just wanted to give you a quick heads up. The text in your post seem to be running off the screen in Opera. I’m not sure if this is a format issue or something to do with internet browser compatibility but I thought I’d post to let you know. The design and style look great though! Hope you get the issue resolved soon. Thanks

    Here is my web page :: http://soniaadrian.com/__media__/js/netsoltrademark.php?d=medtehlist.ru%2Findex.php%3Fsubaction%3Duserinfo%26user%3DSharonVyd240

  28. Hello! This is kind of off topic but I need some advice from an established blog. Is it difficult to set up your own blog? I’m not very techincal but I can figure things out pretty quick. I’m thinking about creating my own but I’m not sure where to begin. Do you have any points or suggestions? Cheers

    My web blog – http://6e0ylapiwh.preview.infomaniak.website/index.php?title=Utilisateur:KARKara6663

  29. Hi, i think that i saw you visited my weblog so
    i came to “return the favor”.I am trying to find
    things to improve my website!I suppose its ok to use some of your ideas!!

  30. binance code dice:

    Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me. https://accounts.binance.com/en/register-person?ref=GJY4VW8W

  31. Great article. I will be experiencing some of these issues as well..

  32. Slot Gacor dice:

    Hello colleagues, how is everything, and what you desire to say about
    this paragraph, in my view its genuinely remarkable for me.

  33. At the beginning, I was still puzzled. Since I read your article, I have been very impressed. It has provided a lot of innovative ideas for my thesis related to gate.io. Thank u. But I still have some doubts, can you help me? Thanks.

  34. Great article! That is the kind of info that are supposed
    to be shared around the internet. Disgrace on Google for not positioning
    this submit higher! Come on over and seek advice from my site .
    Thanks =)

  35. This specific massage makes use of smooth, flat volcanic rocks thaqt
    have been heated prior to the therapy.

    my page: 스웨디시마사지

  36. essaytyper dice:

    Pretty great post. I simply stumbled upon your weblog and wanted to mention that I have
    really enjoyed browsing your weblog posts. After
    all I will be subscribing on your feed and I’m hoping you write again soon!

  37. Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me? https://www.binance.com/de-CH/register?ref=PORL8W0Z

  38. Linkk exchange is notһing else ƅut іt is simply placing thhe ⲟther person’ѕ website link ᧐n youг ⲣage
    аt proper ⲣlace and othеr perrson wil aⅼso do ѕimilar іn support օf you.

    Look at mʏ homepge :: sledovat tyto věci online

  39. discuss dice:

    Hi there, You’ve done a great job. I will definitely digg it
    and personally recommend to my friends. I’m confident they’ll be benefited from this web site.

  40. It’s appropriate time to make some plans for the future and it’s time to be happy.
    I’ve read this post and if I could I wish to suggest you some interesting things or suggestions.
    Maybe you could write next articles referring to this article.
    I desire to read more things about it!

  41. Hello, after reading this remarkable article i am as well
    happy to share my experience here with friends.

  42. hts 판매 dice:

    fantastic submit, very informative. I’m wondering why the opposite experts of this sector do not understand this.
    You should continue your writing. I’m confident, you have a huge readers’ base already!

  43. I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.

  44. Great post! We are linking to this great post on our site.
    Keep up the good writing.

  45. It’s a pity you don’t haᴠe a donate button! І’d moѕt certаinly donate tο this outstanding blog!

    I suppose fߋr now i’ll settle fоr bookmarkingg
    and adrding yοur RSS feed to my Google
    account. Ӏ look forward tо brand neԝ updates and will talk ɑbout this site
    ᴡith mү Facebook grouр. Talk sοon!

    Stⲟp by my һomepage: læs dette gratis

Responder a Eunice Aylward Cancelar respuesta