

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,741
Nicely put. Appreciate it!
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!
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
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.
Great facts, Thanks a lot!
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
Fantastic information. Many thanks!
Thanks, Useful information!
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!
lordfilm
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.
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.
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!
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
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!
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.
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
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!
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.
I couldn?t refrain from commenting. Well written!
Here is my web page Game Walk Throughs – http://Dtyzwmw.Com,
เว็บไซต์สล็อต เว็บสล็อต
เป็นเว็บไซต์ให้บริการเกมสล็อตชั้นหนึ่งของโลกและก็เกมสล็อตรุ่นใหม่ จากนานัปการแบรนด์เกมที่มีชื่อ เพื่อนำมาสร้างความสนุกรวมทั้งทำเงินให้กับผู้ที่ติดอกติดใจการเล่นเกมพนันในรูปแบบเกมออนไลน์โดยยิ่งไปกว่านั้นโดยมาพร้อมคุณสมบัติภาพสวยชัดเจนเต็มตา สีสันสดใส มีเรื่องราวให้ชักชวนติดตาม สร้างความรู้สึกตื่นเต้นในทุกๆครั้งที่สปินแล้วถูกรางวัล
เว็บสล็อตจึงเป็นเยี่ยมในศูนย์รวมความเพลิดเพลินด้านการเล่นเกมที่ได้มาตรฐาน
พร้อมการปรับแก้ให้เกมมีความชอบธรรมแก่คนที่เข้ามาสปิน ทำให้เข้ารางวัลได้ง่าย ให้ความคุ้มราคามากเพิ่มขึ้น ด้วยเหตุดังกล่าวหากคุณอยากทำความรู้จักเว็บไซต์สล็อตและก็เกมสล็อตให้มากกว่าเดิม สามารถเข้ามาติดตามรายละเอียดภายในบทความนี้ได้เลย
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
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.
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!
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
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
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.
I pay a quick visit each day some web pages and websites to
read articles or reviews, however this website provides quality based
writing.
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.
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
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
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!!
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
Nicely put, With thanks.
Great article. I will be experiencing some of these issues as well..
Hello colleagues, how is everything, and what you desire to say about
this paragraph, in my view its genuinely remarkable for me.
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.
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 =)
This specific massage makes use of smooth, flat volcanic rocks thaqt
have been heated prior to the therapy.
my page: 스웨디시마사지
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!
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
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
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.
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!
Hello, after reading this remarkable article i am as well
happy to share my experience here with friends.
лордФильм мультфильмы
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!
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.
Great post! We are linking to this great post on our site.
Keep up the good writing.
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