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: 22,072

  1. LLC dice:

    Awesome website you have here but I was wanting to know if you
    knew of any user discussion forums that cover the same topics discussed here?
    I’d really like to be a part of online community where
    I can get comments from other experienced people that share the same interest.
    If you have any suggestions, please let me know. Thank you!

  2. And Thou didst converther mourning into joy,much more plentiful than she had desired,ラブドール 安い

  3. Hemight yet be able to settle down in some snug corner and live happilyif he could only come across some good simpleminded girl with a littleof the ready.ラブドール 通販He paid twopence halfpenny to the slatternly girl and went out of theshop to begin his wandering again.

  4. ” seeingshe is eternal.For to “have been,ラブドール 安い

  5. Why people still make use of to read news papers when in this technological world all is accessible on net?

  6. I’ll right away grasp your rss feed as I can not to find your
    email subscription hyperlink or e-newsletter service.
    Do you’ve any? Kindly let me know in order that I could subscribe.
    Thanks.

  7. 강남룸빵 dice:

    Hiya very nice site!! Man .. Excellent ..
    Amazing .. I’ll bookmark your site and take the feeds also?
    I’m happy to find so many useful info right here in the submit, we’d like
    work out extra strategies on this regard, thank you for sharing.
    . . . . .

  8. ラブドール 安いthat Thou mightest bring to nought things that are.And yeteven that least of Thy apostles,

  9. My programmer is trying to persuade me to move to
    .net from PHP. I have always disliked the idea because of the costs.
    But he’s tryiong none the less. I’ve been using Movable-type on various websites for about a year and am concerned about switching to another platform.

    I have heard fantastic things about blogengine.net. Is there a way I can transfer all my wordpress content into
    it? Any help would be greatly appreciated!

  10. ErnestTox dice:

    индивидуалки стерлитамак тг шлюхи г стерлитамак

  11. and those tears be which have been my meat day and night,アダルト フィギュア 無 修正whilst they daily say unto me,

  12. This is really interesting, You are a very skilled blogger.
    I have joined your feed and look forward to seeking more of your great
    post. Also, I have shared your web site in my social networks!

  13. Ibeseech Thee; enter not into judgment with her.ラブドール 安いLet Thy mercy be exaltedabove Thy just since Thy words are and Thou hast promisedmercy unto the merciful; which Thou gavest them to be,

  14. … He … he began to cry…. I couldn’t … I didn’t doanything…. What?”Giving no heed to him she began to walk up and down the room,claspingthe child tightly in her arms and murmuring:“My little man! My little mannie! Was ’ou frightened,フィギュア オナホ

  15. That is really fascinating, You are a very skilled blogger.
    I’ve joined your feed and look ahead to seeking extra of your wonderful post.
    Additionally, I’ve shared your web site in my social networks

  16. donkey kong dice:

    This is the perfect blog for anyone who wants to understand this topic.

    You know so much its almost hard to argue with you (not that I
    really will need to…HaHa). You certainly put
    a brand new spin on a topic which has been discussed for decades.
    Great stuff, just wonderful!

  17. link here dice:

    Greetings! I know this is kinda off topic however , I’d figured I’d
    ask. Would you be interested in exchanging links or maybe guest writing
    a blog post or vice-versa? My blog discusses a lot of
    the same subjects as yours and I think we could greatly benefit from each
    other. If you happen to be interested feel free to
    send me an email. I look forward to hearing from you! Superb blog by the way!

  18. I am really pleased to read this webpage posts which includes
    tons of helpful data, thanks for providing such statistics.

  19. you’re truly a just right webmaster. The site loading pace is amazing.
    It kind of feels that you are doing any unique trick.
    Furthermore, The contents are masterwork. you’ve done a excellent job in this topic!

  20. Hi there! Someone in my Facebook group shared this website with
    us so I came to check it out. I’m definitely loving the information. I’m bookmarking and
    will be tweeting this to my followers! Great blog and outstanding design.

  21. 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!

    my web site: หวยฮานอย ruay

  22. You can certainly see your skills in the work you write.

    The sector hopes for more passionate writers such as you who are not afraid to mention how they believe.
    Always follow your heart.

  23. MAHAGACOR77 dice:

    Truly when someone doesn’t know then its up to other visitors that
    they will assist, so here it happens.

  24. Hi there, yup this paragraph is in fact nice and I have learned
    lot of things from it concerning blogging.
    thanks.

  25. slo88 dice:

    Thank you for sharing your info. I really appreciate your efforts and I am
    waiting for your next post thank you once again.

  26. Jonas dice:

    Hello there! This is my 1st comment here so I just wanted to give a quick shout out
    and tell you I really enjoy reading your posts. Can you
    suggest any other blogs/websites/forums that go
    over the same topics? Thank you so much!

  27. We’ve tried and tested the following betting sites and passed them
    through our 8-step review process to see if they’re worth
    your time and money, and these have come out
    on top.

  28. 58win dice:

    I loved as much as you’ll receive carried out right here.
    The sketch is tasteful, your authored material
    stylish. nonetheless, you command get got an shakiness over that you wish be delivering the following.
    unwell unquestionably come more formerly again as exactly the same nearly a lot often inside
    case you shield this increase. https://58win.mov/

  29. sex dating dice:

    You need to take part in a contest for one of the highest quality websites on the web.
    I am going to highly recommend this website!

    Also visit my blog post – sex dating

  30. bandar togel dice:

    Hey There. I discovered your blog using msn. This is a
    really smartly written article. I will make sure to
    bookmark it and return to read extra of your useful info.

    Thanks for the post. I’ll certainly return.

  31. HBO 9 dice:

    Thank you for the auspicious writeup. It in fact was a amusement account it.

    Look advanced to far added agreeable from you! However, how could we communicate?

  32. ShaneSwelp dice:

    A medical record is an important document required for work in certain areas [url=https://tinyurl.com/6czx4sud]https://tinyurl.com/6czx4sud[/url]

  33. Регион проживанияЛюбой город
    РФ при предоставлении https://ricardopava.co/maloizvestnye-mfo-kazahstan-osobennosti-i/ заявки онлайн.

    1 – 30 дн.

  34. Hey I know this is off topic but I was wondering if
    you knew of any widgets I could add to my blog that automatically tweet
    my newest twitter updates. I’ve been looking for a plug-in like this for
    quite some time and was hoping maybe you would have some experience with something like this.
    Please let me know if you run into anything. I truly enjoy reading your blog and I look forward to your
    new updates.

  35. Everyone loves it when individuals get together and share ideas.
    Great website, keep it up!

  36. Hey there would you mind sharing which blog platform
    you’re using? I’m planning to start my own blog soon but I’m having a difficult
    time deciding between BlogEngine/Wordpress/B2evolution and Drupal.
    The reason I ask is because your layout seems different then most blogs and I’m
    looking for something unique. P.S Apologies for being
    off-topic but I had to ask!

  37. ganja dice:

    It’s awesome in favor of me to have a website, which is helpful for my knowledge.
    thanks admin

  38. Stefan dice:

    Players can enjoy a refining gaming experience when playing
    baccarat in the anonymous casino.

  39. I was recommended this web site by my cousin. I’m not sure whether this post is written by him as nobody else kow
    such detailed about my trouble. You are wonderful! Thanks!

  40. Hello there, just became alert to your blog through Google, and found that it is
    really informative. I’m gonna watch out for brussels. I’ll be grateful if you continue this in future.
    Numerous people will be benefited from your writing.
    Cheers!

  41. Wow that was odd. I just wrote an incredibly long comment but after I clicked submit my comment didn’t show up.
    Grrrr… well I’m not writing all that over again. Anyhow, just wanted to say
    wonderful blog!

  42. Hey just wanted to give you a brief heads up and let you know a
    few of the pictures aren’t loading properly. I’m not sure why
    but I think its a linking issue. I’ve tried it in two different internet browsers and both show
    the same results.

  43. Amazing blog! Do you have any hints for aspiring writers?
    I’m planning to start my own website soon but I’m a little lost on everything.

    Would you advise starting with a free platform like WordPress or go for a paid
    option? There are so many options out there that I’m totally
    confused .. Any suggestions? Thanks a lot!

  44. of course like your website but you need to test the spelling
    on quite a few of your posts. Many of them are rife
    with spelling problems and I find it very bothersome to inform the
    reality nevertheless I’ll certainly come again again.

  45. What’s up, I log on to your blogs like every week. Your humoristic style is
    witty, keep doing what you’re doing!

  46. 風俗嬢 dice:

    My spouse and I stumbled over here coming from a
    different web page and thought I may as well check things out.
    I like what I see so now i’m following you. Look forward to checking out your
    web page repeatedly.

Responder a Как новости и статьи о товарах и услугах помогают потребителю? Cancelar respuesta