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

  1. I never realized how much my breathing patterns could impact my memory
    and focus until now. The Memory Breath sounds like such a simple yet effective way to boost brain function—can’t wait to give it a try!

  2. jitago app dice:

    An outstanding share! I have just forwarded this onto a colleague who has been doing
    a little homework on this. And he actually bought me dinner
    due to the fact that I discovered it for him…
    lol. So let me reword this…. Thank YOU for the meal!!
    But yeah, thanks for spending time to discuss this subject here on your internet site.

  3. What’s up Dear, are you genuinely visiting this site on a regular
    basis, if so afterward you will without doubt get fastidious experience.

  4. Thanks in support of sharing such a pleasant opinion, article is nice, thats why i have read it entirely

  5. Hey folks, I’m Ivan from Croatia. I wanna tell you about my insane experience with this unreal
    online casino I stumbled on recently.

    To be honest, I was barely affording rent, and now I can’t believe it
    myself — I hit £590,000 playing mostly sports bets!

    Now I’m thinking of finally owning an apartment here
    in Warsaw, and investing a serious chunk of my winnings into Toncoin.

    Later I’ll probably move to a better neighborhood and
    start a small business.

    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.

    Be real, what would you guys do if you had this kinda luck?
    Are you feeling curious right now?

    For real, I never thought I’d see this kinda money.
    It’s all happening so fast!

    Ask me anything!

  6. Hi everyone, I’m Alex from Romania. 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 scored £590,000 playing mostly sports bets!

    Now I’m thinking of 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 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.

    I gotta ask, what would you guys do if you had this kinda luck?
    Are you wondering if it’s real right now?

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

    Let’s talk crypto too!

  7. page dice:

    Greetings, I’m Marko from Serbia. I wanna tell you about my insane experience
    with this crazy popular online casino I stumbled on this spring.

    To be honest, I was living paycheck to paycheck, and now I can’t believe it myself — I crushed it
    and made $1,500,000 playing mostly crazy time!

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

    Later I’ll probably move to a better neighborhood and start
    a small business.

    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.

    I gotta ask, what would you guys do if you had this
    kinda luck? Are you jealous right now?

    For real, I never thought I’d be able to help my family.
    It’s all happening so fast!

    Ask me anything!

  8. Hi are using WordPress for your site platform? I’m new to the blog world but
    I’m trying to get started and create my own. Do you require any coding
    knowledge to make your own blog? Any help would be
    greatly appreciated!

  9. sex dice:

    Two Cypriot cops have been suspended after they were filmed having sex
    in a patrol car in broad daylight. 

    A resident of Larnaca in southeastern Cyprus was driving through
    an open field this week when they spotted the male and female police officers having sexual intercourse
    in their parked car.

    The passerby captured the scandalous moment in a video that has now gone viral on social media, with hundreds
    of users reacting to the shocking clip.

    ‘If I or you did it and a patrol car was passing by, we would be arrested’, one
    user pointed out on social platform X. 

    Another said that the cops ‘must suffer the consequences of their actions’. 

    The police officers involved were quickly identified and have been suspended.
    One cop is understood to have been on-duty at the time, while the other was not, local media reports. 

    Cops are now carrying out a criminal and disciplinary investigation. 

    Criminal charges could include neglect of duty as well as public
    indecency, according to Cyprus Mail. 

    Two Cypriot cops have been suspended after they were filmed having sex in a patrol
    car

    The cops were caught in the act in the town of Larnaca, Cyprus 

    ‘Such actions and behaviours are unacceptable as they insult the work of thousands of
    our members’, a police spokesperson said. 

    But a statement from the Cyprus Police Association has called
    for members of the public to respect the privacy of the officers involved. 

    ‘From the very beginning, the leadership of the force gave instructions for
    an immediate investigation of the incident, so that any responsibilities that arise can be attributed.
    The public’s trust is precious to us and there is no room for excuses on issues of ethics
    and professionalism’, the statement said. 

    ‘At the same time, however, we are watching with concern the
    way in which the public debate has been diverted into
    a tidal wave of discredit for the entire police force,
    ‘ it added.

    Commissioner for Personal Data Protection Irini Loïzidou Nicolaidou
    said in a statemen said the cops featured in the video are responsible
    for their actions  noted that ‘the priority is to protect
    the privacy of their families, especially if there are minor children involved’.  

    The viral video comes months after it was revealed that in the UK, more than 25 cops were sacked or disciplined
    in the past year after being caught having sex on duty. 

    According to The Sun, information requests to UK forces found
    at least 26 officers faced disciplinary hearings in the last 24
    months for having sex on duty, 20 of whom lost their jobs.

    But a number of forces — including the Met, West
    Midlands and Derbyshire — refused to give details, meaning the true total is likely to be higher.

    In one case, a Sussex officer turned off his body cam to have sex with a woman in her house
    after she had made a 999 call.

    In Northumbria, another member of the force was sacked for having sex with
    his lover in a police van parked up outside a supermarket.

    One Cleveland Police officer was also banned from policing after
    filming herself performing a solo sex act in a toilet.

    The figures led one former Chief Superintendent
    to blast these disgraced officers as ‘damaging the reputation of the police
    service’.

  10. Hello there! I simply want to offer you a huge thumbs up
    for the excellent info you have here on this post. I’ll be coming back to your blog for more soon.

  11. Wassup guys, I’m Ivan from Croatia. I wanna tell you about my insane experience with this trending
    online casino I stumbled on not long ago.

    To be honest, I was barely affording rent, and now I can’t believe it myself — I cashed out $712,000 playing mostly live roulette!

    Now I’m thinking of getting a new car here in Belgrade, and investing a serious chunk of
    my winnings into Solana.

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

    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.

    Be real, what would you guys do if you had this kinda luck?
    Are you feeling curious right now?

    For real, I never thought I’d have a shot at investing.
    It’s all happening so fast!

    Reply if you wanna chat!

  12. Your style is really unique in comparison to
    other folks I’ve read stuff from. I appreciate you for posting when you
    have the opportunity, Guess I’ll just book mark this blog.

  13. Kennethpoice dice:

    idk why I’m posting this I ended up here: [url=https://climateactionnow.ca]see for yourself[/url] then because clearly I had nothing better to do this too I guess [url=https://schmitz-rhede.de]or don’t[/url] this is how it starts

  14. amazon4d dice:

    Excellent website. Plenty of helpful info here.
    I’m sending it to a few friends ans additionally sharing in delicious.
    And of course, thank you for your effort!

  15. Howdy! I just would like to offer you a big thumbs up for your great info you’ve
    got here on this post. I will be returning to your website for more
    soon.

  16. toto12 login dice:

    Wonderful post however I was wanting to know if you could write a litte more on this subject?

    I’d be very grateful if you could elaborate a little bit further.

    Kudos!

  17. 20 (When vengeance was sleeping) the slaughterplace wielded? E’en now some man of the murderer’s progeny Exulting in ornaments enters the building,オナホ フィギュアBoasts of his bloodshedding,

  18. What a stuff of un-ambiguity and preserveness of valuable knowledge
    regarding unexpected emotions.

  19. new casino dice:

    Wassup guys, I’m Alex from Romania. I wanna tell you about my insane
    experience with this crazy popular online casino I stumbled on last month.

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

    Now I’m thinking of taking my dream vacation and buying a
    house here in Warsaw, and investing a serious chunk of
    my winnings into Toncoin.

    Later I’ll probably move to a better neighborhood and retire early.

    Now I’m going by Tomasz from Poland 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 jealous right now?

    For real, I never thought I’d be able to help my family. It’s all happening so fast!

    Ask me anything!

  20. Spot on with this write-up, I truly believe this site
    needs a great deal more attention. I’ll probably be returning
    to see more, thanks for the info!

  21. url dice:

    Greetings, I’m Marko from Serbia. I wanna tell you about my insane experience with this crazy popular online casino I stumbled
    on this spring.

    To be honest, I was super poor, and now I can’t believe it myself — I hit €1,200,000 playing mostly sports bets!

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

    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.

    No cap, what would you guys do if you had this kinda luck?

    Are you a bit envious right now?

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

    Feel free to DM me!

  22. I think everything published was very logical. But, think about this,
    what if you were to create a killer post title?
    I mean, I don’t want to tell you how to run your website,
    however suppose you added a headline that makes people desire more?
    I mean Infraestructura como código – Politraining is kinda boring.
    You could glance at Yahoo’s home page and note how they write post titles to
    grab people to open the links. You might add a video or a picture or two to
    grab people interested about what you’ve written. Just my opinion, it might bring your posts a little
    bit more interesting.

  23. Pretty section of content. I just stumbled upon your site and in accession capital to
    assert that I get actually enjoyed account your blog posts.
    Any way I’ll be subscribing to your feeds and even I achievement you access consistently quickly.

  24. The brand new York Times evaluate famous that Boobs!
    You’ll be able to download all large boobs intercourse
    comics without cost. I’m a music-and-dance man, and
    i get pleasure from being myself, which is all I can do.” –Dick van Dyke “I genuinely assume that
    the issue the elites had with Twitter is that it let
    the plebs mock them. The lube was all applied but I didn’t go for the finger because I just
    suppose she would have found it bizarre. I feel they have been some type of catfish.
    Large tits cam websites are extremely in style because they
    provide viewers the opportunity to work together with fashions who
    have a singular physique type. Relax. Relaxing the physique and muscles across
    the anus is important to reduce discomfort or ache. Practice good hygiene.
    Ensure the anus and surrounding space are clear by showering or bathing beforehand.
    Use lubrication. The anus and rectum do not self-lubricate like
    the vagina, so using a water-based mostly or silicone-primarily based lubricant is vital
    to cut back friction and forestall harm.

  25. I am extremely inspired along with your writing skills and also
    with the structure to your blog. Is that this a paid subject or did you customize it your self?
    Anyway stay up the nice high quality writing, it is rare to look a great weblog like this one today..

  26. When someone writes an piece of writing he/she maintains the idea of
    a user in his/her brain that how a user can know it.
    So that’s why this paragraph is perfect. Thanks!

  27. Kennethpoice dice:

    no clue what this is but hey this came up somehow: [url=https://katja-lufter.de]lol idk[/url] then because clearly I had nothing better to do this too I guess [url=https://joghurt-selbst-gemacht.de]just take it[/url] internet at 3am

  28. I all the time used to read article in news papers but now as I am a user of
    internet thus from now I am using net for posts, thanks to web.

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

  30. Bokep Indo dice:

    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.

  31. 風俗嬢 dice:

    It’s an awesome paragraph designed for all the
    internet people; they will take benefit from it I am sure.

  32. I used to be able to find good advice from your
    blog articles.

  33. If you are going for most excellent contents like me,
    only pay a quick visit this web site all the
    time since it gives feature contents, thanks

  34. dressed in hersecondbest dress and looking exactly as it is proper to look when askedout to tea.At other times she was wont to run into the kitchen withoutknocking; but now she knocked primly at the front door.エロ フィギュア 無 修正

  35. ダッチワイフcombined with your engaging style,made the content both enjoyable and informative.

  36. I feel that is one of the most significant info
    for me. And i am satisfied reading your article.
    But wanna statement on some general things, The website taste is perfect, the articles is really excellent : D.

    Just right task, cheers

  37. the prisonerwas removed to the interior of the prison again,エロ い コスプレbut,

  38. Oh my goodness! Awesome article dude! Many thanks, However
    I am encountering troubles with your RSS. I don’t know why I can’t subscribe to it.
    Is there anyone else having the same RSS problems?

    Anyone that knows the solution can you kindly respond?
    Thanks!!

  39. えろ コスプレYes:completely.The tip of his little finger blotted out the sun,

  40. you live hard,ll knock up one of these day and be ill and poor,コスプレ エロ 画像

  41. andthe general truculency of her attitude,to threaten mischief to theinoffensive community,コスプレ エロ い

  42. as I am confident they will continue to offer engaging content and innovative ideas that are both enlightening and valuable.”Your article on [specific topic] provided comprehensive coverage and practical guidance that was truly invaluable.ラブドール

  43. was it? Itwas a girlmy girlmy girl that I’m proud of.ラブドール 女性 用”He smiled his shy smile at her as he went into the yard.

  44. Arevolutionary tribunal in the capital,エロ い コスプレand forty or fifty thousandrevolutionary committees all over the land,

Responder a ラブドール Cancelar respuesta