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,829

  1. Highly energetic post, I enjoyed that bit. Will there be a part 2?

  2. toto12 dice:

    This excellent website definitely has all the information I wanted concerning
    this subject and didn’t know who to ask.

  3. will we not? we will not.By no manner of means.えろ コスプレ

  4. lihat disini dice:

    Tһiss is my firsxt time pay a visit at here and i am trᥙlү pleassɑwnt
    to read ɑll at sinngle plаce.

  5. ” assured Diana,as Marilla appeared in the doorway,ラブドール 女性 用

  6. Kennethpoice dice:

    whatever, dropping it here this came up somehow: [url=https://nmus.de]try this maybe[/url] then because clearly I had nothing better to do this too I guess [url=https://stefan-und-britta.de]click if you dare[/url] internet at 3am

  7. Jarrettunady dice:

    Расчет пожарных рисков – мероприятие по расчету и сопоставлению нормативно допустимой величины пожарного риска с реальной [url=https://vk.com/wall-48277440_22537]расчет пожарных рисков[/url]

  8. Hi there mates, its great article about cultureand entirely explained, keep it up all the time.

  9. Hi everyone, I’m Piotr from Poland. I wanna tell you about my insane experience
    with this new online casino I stumbled on last month.

    To be honest, I was super poor, and now I can’t believe it myself — I won €384,000 playing
    mostly live roulette!

    Now I’m thinking of buying a house here in Belgrade, and investing a serious chunk of
    my winnings into Ethereum.

    Later I’ll probably move to a better neighborhood and
    support my family.

    Now I’m going by Andrei from Romania because I honestly feel like a new person. My
    life is flipping upside down in the best
    way.

    Let’s be honest, what would you guys do if you
    had this kinda luck? Are you feeling curious right now?

    For real, I never thought I’d get out of debt. It’s all happening so fast!

    Let’s talk crypto too!

  10. I every time used to study post in news papers but now as I am a user of web so from
    now I am using net for content, thanks to web.

  11. Rex dice:

    RepairCdDvD is professional information recuperation software program specializing in repairing and improving statistics from damaged or scratched CD and DVD discs. Here are a few key points approximately RepairCdDvD: Features: Information restoration: RepairCdDvD lets in you to recover records from unreadable CD and DVD discs. Record gadget support: this system works with various document structures, such as UDF (usually used for storing information on DVDs). Photo advent: RepairCdDvD reads information from damaged discs and creates an picture report that may be used for statistics restoration. Coping with photo Discs: even if the disc is a extracted, RepairCdDvD can recover information. Other Media support: the program also can get better data from CD/DVD disks. Conversion to ISO format: It allows growing virtual disc copies (ISO pics) for less difficult recuperation inside the destiny. Transportable model: RepairCdDvD is to be had as a transportable version, allowing you to apply it on one of a kind computers without installation. Velocity and convenience: RepairCdDvD offers an intuitive interface and powerful algorithms, making it clean to experiment and get better statistics with out useless complications. In case you need to get better records from CD and DVD discs, RepairCdDvD is a useful device. Its support for various document structures and photograph introduction skills makes it a effective solution for records restoration. No accrued value in case you need more than one kind media or report machine supported. RepairCdDvD is a quite specialized yet smooth to use media facts recuperation device. It supports all disc codecs and all common document structures. Insert a disc, begin up RepairCdDvD and pick the pressure or media (if no longer selected already) and let RepairCdDvD mount the media. RepairCdDvD immediately shows you all the walls or tracks and sessions located on the media, mixed with all report structures which might be gift. This way you get clean access, similar to explorer, to all the files and folders per report device. As opposed to being constrained to one document system that the OS choices for you, you’ve got get admission to. Get entry to records from older periods or hidden partitions, get right of entry to information that your OS (e.G. Home windows) does now not see or hides from you etc. Integrate this all-revealing functionality with some distance higher examine and healing mechanisms, scanning for lost files functionality, workarounds for a wide variety of power and software bugs, boundaries or shortcomings and you’ve got an exceedingly powerful data restoration tool. RepairCdDvD is should-have-software for every pc user and is intentionally stored low-priced a good way to provide a solution for each person.Shape of the medium, facts recording Micrograph of recesses and fields Diagram of a go-phase of a pressed plate A trendy compact disc, often known as an audio CD, stores the digital audio record in a “crimson ebook” preferred to differentiate it from later variations. Compact discs are product of a 1.2 mm thick polycarbonate plate with a diameter of 12 cm, protected with a skinny layer of aluminum (aluminum), wherein information is contained (inside the form of a mixture of micro-grooves and places with out them). They are examine with a semiconductor laser (AlGaAs) with a wavelength of about 780 nm. The recording creates a spiral course from the center to the edge of the document.The rotational speed of the plate is numerous such that the linear velocity of the read head with admire to the song is constant and for the studying pace x1 it’s miles in the range of 1.2 to 1.Four ms. The disc is study from the center to the out of doors, and the rotational speed decreases as you move away from the center of the disc.Before writing to disk, facts is encoded inside the “8 in 14” widespread and stored in the form of land and pits. Inside the embossed plates, the recesses are 1/four wavelength deep within the cloth of the analyzing laser plate (about a hundred twenty five nm), as a result of the interference of light meditated from the environment and the recesses, the wave is extinguished. The pits are 500 nm extensive and the track spacing is 1.6 mm. The variations in light reflection are utilized by the lens servo to manual the beam along the route and focus it.The “8 in 14” coding machine guarantees that the smallest pit and land length is three bits (833 nm) and the longest 11 bits (3560 nm) WebSite: https://repaircddvd.com

  12. GT币 dice:

    Thank you very much for sharing, I learned a lot from your article. Very cool. Thanks.

  13. betjili dice:

    What a information of un-ambiguity and preserveness of precious know-how about
    unpredicted emotions.

  14. I like the valuable info you provide in your articles.
    I’ll bookmark your weblog and check again here regularly.
    I’m quite sure I’ll learn a lot of new stuff right here!
    Good luck for the next!

  15. I really like your blog.. very nice colors & theme.
    Did you make this website yourself or did you hire someone to do it for you?

    Plz respond as I’m looking to create my own blog and would like to know
    where u got this from. appreciate it

  16. riverpoker dice:

    It’s fantastic that you are getting thoughts from this post as well
    as from our argument made at this place.

  17. This piece of writing presents clear idea in support of the new people of blogging, that genuinely how to
    do blogging.

  18. Gabriela dice:

    It’s very easy to find out any matter on net as compared to textbooks, as I found this
    post at this web page.

  19. Franklin dice:

    RepairCdDvD is professional information recuperation software program specializing in repairing and improving statistics from damaged or scratched CD and DVD discs. Here are a few key points approximately RepairCdDvD: Features: Information restoration: RepairCdDvD lets in you to recover records from unreadable CD and DVD discs. Record gadget support: this system works with various document structures, such as UDF (usually used for storing information on DVDs). Photo advent: RepairCdDvD reads information from damaged discs and creates an picture report that may be used for statistics restoration. Coping with photo Discs: even if the disc is a extracted, RepairCdDvD can recover information. Other Media support: the program also can get better data from CD/DVD disks. Conversion to ISO format: It allows growing virtual disc copies (ISO pics) for less difficult recuperation inside the destiny. Transportable model: RepairCdDvD is to be had as a transportable version, allowing you to apply it on one of a kind computers without installation. Velocity and convenience: RepairCdDvD offers an intuitive interface and powerful algorithms, making it clean to experiment and get better statistics with out useless complications. In case you need to get better records from CD and DVD discs, RepairCdDvD is a useful device. Its support for various document structures and photograph introduction skills makes it a effective solution for records restoration. No accrued value in case you need more than one kind media or report machine supported. RepairCdDvD is a quite specialized yet smooth to use media facts recuperation device. It supports all disc codecs and all common document structures. Insert a disc, begin up RepairCdDvD and pick the pressure or media (if no longer selected already) and let RepairCdDvD mount the media. RepairCdDvD immediately shows you all the walls or tracks and sessions located on the media, mixed with all report structures which might be gift. This way you get clean access, similar to explorer, to all the files and folders per report device. As opposed to being constrained to one document system that the OS choices for you, you’ve got get admission to. Get entry to records from older periods or hidden partitions, get right of entry to information that your OS (e.G. Home windows) does now not see or hides from you etc. Integrate this all-revealing functionality with some distance higher examine and healing mechanisms, scanning for lost files functionality, workarounds for a wide variety of power and software bugs, boundaries or shortcomings and you’ve got an exceedingly powerful data restoration tool. RepairCdDvD is should-have-software for every pc user and is intentionally stored low-priced a good way to provide a solution for each person.Shape of the medium, facts recording Micrograph of recesses and fields Diagram of a go-phase of a pressed plate A trendy compact disc, often known as an audio CD, stores the digital audio record in a “crimson ebook” preferred to differentiate it from later variations. Compact discs are product of a 1.2 mm thick polycarbonate plate with a diameter of 12 cm, protected with a skinny layer of aluminum (aluminum), wherein information is contained (inside the form of a mixture of micro-grooves and places with out them). They are examine with a semiconductor laser (AlGaAs) with a wavelength of about 780 nm. The recording creates a spiral course from the center to the edge of the document.The rotational speed of the plate is numerous such that the linear velocity of the read head with admire to the song is constant and for the studying pace x1 it’s miles in the range of 1.2 to 1.Four ms. The disc is study from the center to the out of doors, and the rotational speed decreases as you move away from the center of the disc.Before writing to disk, facts is encoded inside the “8 in 14” widespread and stored in the form of land and pits. Inside the embossed plates, the recesses are 1/four wavelength deep within the cloth of the analyzing laser plate (about a hundred twenty five nm), as a result of the interference of light meditated from the environment and the recesses, the wave is extinguished. The pits are 500 nm extensive and the track spacing is 1.6 mm. The variations in light reflection are utilized by the lens servo to manual the beam along the route and focus it.The “8 in 14” coding machine guarantees that the smallest pit and land length is three bits (833 nm) and the longest 11 bits (3560 nm) WebSite: https://repaircddvd.com

  20. RobertNox dice:

    JoomlaDocs — это информационный сервис, посвящённый современным технологиям, digital-инструментам и эффективному маркетингу [url=https://joomla-docs.ru/]https://joomla-docs.ru/[/url]

  21. I’m gone to convey my little brother, that he should also pay a visit this website on regular basis to get
    updated from latest reports.

  22. Source URL dice:

    I have read so many content about the blogger lovers but this article is really a nice piece of writing, keep it up.

  23. I love what you guys are usually up too. This
    type of clever work and exposure! Keep up the superb works guys I’ve added
    you guys to my blogroll.

  24. Kennethpoice dice:

    not sure if this is useful accidentally opened this: [url=https://stephanrichter-coaching.de]your call[/url] then because clearly I had nothing better to do this too I guess [url=https://treppenstufenmatten-test.de]click if you dare[/url] that’s enough chaos for tonight

  25. denizbank yurtdışı para gönderme

    Hi there, I found your site by means of Google whilst looking
    for a similar topic, your website got here up, it seems
    to be great. I have bookmarked it in my google bookmarks.

    Hello there, just became alert to your blog thru
    Google, and located that it’s really informative.
    I am gonna watch out for brussels. I will appreciate when you continue this in future.
    Lots of folks can be benefited from your writing. Cheers!

  26. situs slot dice:

    A motivating discussion is definitely worth comment. I think that you ought to write more on this topic, it
    might not be a taboo matter but typically people don’t
    talk about such subjects. To the next! Best wishes!!

  27. türkiye den yurtdışına para gönderme

    I do not know if it’s just me or if perhaps everybody else experiencing problems with your website.
    It looks like some of the written text within your content are running
    off the screen. Can somebody else please comment and let me
    know if this is happening to them as well? This may be a
    issue with my browser because I’ve had this happen before.
    Appreciate it

  28. I read this post fully concerning the resemblance
    of latest and previous technologies, it’s remarkable article.

  29. Today, while I was at work, my cousin stole my iPad and tested to see if it can survive a twenty
    five foot drop, just so she can be a youtube sensation. My apple
    ipad is now destroyed and she has 83 views. I know this is completely off topic but I
    had to share it with someone!

  30. This website certainly has all of the information and facts I wanted
    concerning this subject and didn’t know who to
    ask.

  31. I’ve been browsing online more than three hours these days, yet I by
    no means discovered any attention-grabbing
    article like yours. It’s beautiful price sufficient for me.
    Personally, if all site owners and bloggers made good content
    as you probably did, the internet might be a lot more useful
    than ever before.

  32. I wanted to take a moment to commend you on the outstanding quality of your blog. Your dedication to excellence is evident in every aspect of your writing. Truly impressive!

  33. massage dice:

    You actually make it appear really easy along with your presentation however I find this topic to be really one thing that I
    think I would never understand. It sort of feels too complicated and
    very extensive for me. I am looking forward for your next publish, I will try to get the hold of it!

  34. Marvelous, what a website it is! This webpage gives useful facts to us, keep it up.

  35. magnificent issues altogether, you simply received a brand new reader.
    What might you suggest about your put up that you simply made a few days ago?
    Any certain?

  36. 美人 セックスhelpful,and friendly assistance throughout the buying process.

  37. However, among crypto gambling sites that don’t require ID, it’s still one of the best out there.

  38. TimothyWelty dice:

    Наши статьи базируются на современной диетологии [url=https://websight.ru/]Нутрициология[/url]

  39. This is really interesting, You’re a very skilled blogger.

    I have joined your feed and look forward to seeking more of your wonderful post.

    Also, I have shared your web site in my social networks!

  40. Greetings, I’m Marko from Serbia. I wanna tell you about my
    insane experience with this next-level online casino I stumbled on this spring.

    To be honest, I was super poor, and now I can’t believe
    it myself — I cashed out €384,000 playing mostly blackjack!

    Now I’m thinking of taking my dream vacation and buying a house here in Cluj-Napoca, and investing
    a serious chunk of my winnings into Bitcoin.

    Later I’ll probably move to a better neighborhood and build my own startup.

    Now I’m going by Luka from Croatia because I honestly feel like a new person. My life is flipping upside down in the best way.

    Tell me honestly, what would you guys do if you had this kinda luck?

    Are you feeling curious right now?

    For real, I never thought I’d be living this dream.
    It’s all happening so fast!

    Drop your thoughts below!

  41. Wow, wonderful blog layout! How long have you been blogging for?
    you made blogging look easy. The overall look of your website is fantastic,
    let alone the content!

  42. Kennethpoice dice:

    no clue what this is but hey clicked something and got this: [url=https://testzentrum-erfurterkreuz.de]lol idk[/url] then because clearly I had nothing better to do here’s part 2 [url=https://kryo-homburg.de]just take it[/url] logging off now maybe

  43. Woah! I’m really digging the template/theme of this
    site. It’s simple, yet effective. A lot of times it’s very hard to get that “perfect balance” between superb usability and visual appeal.
    I must say that you’ve done a very good job with this.
    In addition, the blog loads very fast for me on Firefox.
    Superb Blog!

  44. agenolx dice:

    Yesterday, while I was at work, my cousin stole my apple ipad and tested to see
    if it can survive a 25 foot drop, just so she can be a youtube sensation. My iPad
    is now broken and she has 83 views. I know this is
    entirely off topic but I had to share it with someone!

  45. This is my first time visit at here and i am truly impressed to read everthing at one place.

  46. Wonderful goods from you, man. I have understand your stuff
    previous to and you are just extremely wonderful.
    I really like what you have acquired here, really
    like what you are stating and the way in which you say it.
    You make it entertaining and you still care for to keep it
    smart. I can not wait to read much more from you.
    This is actually a great web site.

  47. I think that everything typed made a great deal of sense.
    But, what about this? what if you added a little content?
    I am not suggesting your information isn’t good., but what if you
    added a title to possibly get folk’s attention? I mean Infraestructura como código – Politraining is a little boring.
    You could glance at Yahoo’s front page and see how they create post
    headlines to grab viewers interested. You might add a
    video or a related pic or two to get people excited about everything’ve
    got to say. Just my opinion, it might bring your posts a little livelier.

Responder a medicine from canada with no prescriptions Cancelar respuesta