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: 30,388

  1. Fake Test dice:

    It’s not my first time to visit this web page, i am visiting
    this website dailly and take pleasant data from here all the time.

  2. Asia Live 88 dice:

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

  3. Its like you read my mind! You seem to grasp so much approximately this, like you
    wrote the guide in it or something. I believe that you simply can do with some p.c.
    to power the message house a bit, but other than that, that is magnificent blog.
    An excellent read. I will certainly be back.

  4. Hi! I know this is kinda off topic nevertheless I’d figured I’d ask.
    Would you be interested in trading links or maybe guest authoring a blog post or vice-versa?
    My site goes over a lot of the same subjects as yours and I feel we could greatly benefit from each other.
    If you’re interested feel free to shoot me
    an e-mail. I look forward to hearing from you!
    Superb blog by the way!

  5. Obwohl es sicher unzählige verschiedene Meinungen zu diesem Thema gibt,
    hat die Bedeutung der Morgenroutinen doch seine Berechtigung.
    Man braucht nur auf die vielen erfolgreichen Menschen und Persönlichkeiten schauen, die
    auch eine morgendliche Routine haben. Doch wie genau schaut so eine Morgenroutine
    aus und muss man dazu wirklich so früh aufstehen?

    Grundsätzlich gibt es keine festen Richtlinien wie so eine morgendliche Routine auszuschauen hat.

    Auch die Dauer kann man selbst definieren. Wenn
    ihr zum Beispiel schon um 6 Uhr im Büro sein müsst, ist eine Morgenroutine die eine Stunde dauert, wahrscheinlich eher unrealistisch.
    Aber auch schon wenige Minuten können ausreichen, um besser in den Tag zu starten..
    Wichtig ist nur, dass man gleich nach dem Aufstehen mit der Routine beginnt und nicht vorher
    noch Social Media checkt oder schlechte Nachrichten im Radio hört.
    Denn wenn man schon in der Früh mit negativen Gedanken startet,
    wird es schwierig sein, einen positiven und glücklichen Tag zu erleben.

    Da so eine Morgenroutine sehr individuell gestaltet werden kann und auch soll, werde ich euch
    jetzt nur ein paar Tipps geben, wie man kraftvoll und voller
    positiver Gedanken in den Tag starten kann.

    Diese fünf verschieden Aspekte sollen dabei in eurer Morgenroutine
    nicht fehlen:

    Bewegung
    Meditation
    Dankbarkeit
    Wissensaneignung
    Familie und Freunde
    Je nachdem wieviel Zeit ihr für eure Morgenroutine eingeplant habt, desto unterschiedlicher werden die einzelnen Aspekte
    bei euch auch ausschauen. Um euch ein paar mehr Inspirationen und Ideen zu
    vermitteln, werde ich die einzelnen Punkte jetzt noch genauer beschreiben:

    BEWEGUNG
    Morgensport ist nicht für jeden geeignet und das ist mir vollkommen bewusst.
    Nichtsdestotrotz reicht oft auch eine Minute aus, um den Kreislauf in Schwung zu bringen und somit viel
    frischer und aktiver in den Tag starten zu können. Ihr
    könnt zum Beispiel eine Minute Hampelmann machen oder Planken. Wenn ihr etwas mehr Zeit habt, könnt ihr auch eine
    kleine Runde spazieren gehen. So bekommt ihr nicht nur Bewegung, sondern ihr seid auch an der frischen Luft.
    Das wiederum macht den Kopf frei und stärkt das Immunsystem.
    Natürlich kann man auch, je nachdem wieviel Zeit ihr habt, ein komplettes Workout gleich in die Morgenroutine integrieren. Dann kann dir ja egal sein, wenn dich dein innerer Schweinehund am Abend vom Trainieren abhält, weil du ja das Sportpensum
    bereits in der Früh erledigt hast.

    Meditation
    Unter Meditation können sich manche oft nicht viel vorstellen und oft denkt man bei dem Wort an buddhistische Mönche.
    Aber ich sage euch eins: Jeder kann meditieren! Es ist nicht notwendig, dass man zehn Minuten an nichts denkt
    und einfach nur mit verschränkten Beinen still dasitzt. Oft reicht
    es, wenn man sich einfach bewusst auf die Tätigkeit konzentriert die man gerade
    macht, ohne dabei an 100 andere Dinge gleichzeitig zu denken. Der Alltag ist
    oft sehr stressig und gerade deshalb macht es Sinn, sich schon in der Früh ein paar Minuten zu
    nehmen in denen man nicht an den nächsten Kundentermin oder das nächste Gespräch mit
    dem Chef denkt. Eine Möglichkeit, die sich auch perfekt als Art Meditation eignet, ist Malen nach Zahlen. Man muss an nichts
    anderes denken, außer dass man das Feld mit der richtigen Farbe
    ausfüllt. Das Malen entspannt auf eine ganz besondere Art und Weise und ist besonders für Meditationsanfänger eine tolle Möglichkeit, die Gedanken loszulassen. Jeden Tag in der Früh eine Farbe wäre
    zum Beispiel eine Möglichkeit, wie die Meditation gestaltet werden könnte.

    Dankbarkeit
    Wie oft seid ihr wirklich bewusst dankbar? Dankbar
    für eure Familie, eure Freunde, dankbar ein Dach über den Kopf zu haben oder einfach nur,
    dass ihr in der Früh einen guten Kaffee genießen könnt!
    Es gibt so viele Dinge über die wir dankbar sein können, aber leider vergessen wir das
    im Alltag oft. Erst wenn wir etwas vermissen, fällt uns auf, wie dankbar wir dafür hätten sein müssen. Schon in der Früh mit bewusster Dankbarkeit zu starten,
    stimmt einen gleich viel positiver für den Tag.

    Dazu reicht schon, wenn ihr einfach drei Dinge aufzählt, für
    die ihr heute dankbar seid. Natürlich könnt ihr das Ganze auch in einem Notizbuch festhalten. Wenn es euch dann einmal nicht so gut geht, könnt
    ihr das Büchlein durchblättern und ihr kommt sicher wieder
    auf bessere Gedanken. Viele, besonderes auch erfolgreiche, Leute schreiben ebenfalls ihre Ziele für den Tag auf.
    Das motiviert dann auch gleich noch einmal mehr.

    Wissensaneignung
    Wissen ist Macht! Das ist euch wahrscheinlich bewusst.
    In der Kindheit lernen wir ständig Neues aber mit steigendem Alter nimmt das leider
    ab. Ein paar Minuten jeden Tag reichen aus, um sich in Summe sehr viel
    Wissen anzueignen. Ihr könnt zum Beispiel einen Podcast hören oder
    ein Buch lesen. Manche starten auch damit, dass sie eine neue Sprache lernen und gehen jeden Morgen zehn neue Vokabeln durch.
    Hier kannst du deiner Kreativität freien Lauf lassen.

    Familie und Freunde
    Was wären wir nur ohne unsere Familie oder ohne unsere Freunde?!
    Leider sagen wir unseren Liebsten viel zu selten,
    wie wichtig sie uns sind. Im stressigen Alltag ist
    es oft auch schwer, regelmäßigen Kontakt zu
    halten. Deshalb ist es eine tolle Möglichkeit, wenn ihr in eure Morgenroutine Familie und Freunde einbaut.
    Beispielsweise könnt ihr guten Freunden eine
    liebe Sprachnachricht hinterlassen und eurem Partner eine Zettelbotschaft hinterlegen. Auch eure
    Omis und Opis freuen sich sicherlich über einen Anruf!
    Eine weitere Möglichkeit euren Liebsten eine Freude zu bereiten, wäre zum Beispiel auch, wenn ihr ihnen ein Malen nach Zahlen Bild schenkt.

    So haben auch sie die Möglichkeit eine Auszeit vom Alltag zu
    nehmen. Eure Großeltern freuen sich sicher auch über
    bereits ausgemalte Bilder (vielleicht auch personalisierte)!

    Alles in allem gibt es unzählige Möglichkeiten, wie ihr eure Morgenroutine gestalten könnt,
    um besser in den Tag zu starten. Probiert es gerne einmal aus, auch wenn
    es nur fünf Minuten sind! Wir würden uns freuen, wenn ihr eure Erfahrungen zur Morgenroutine mit uns teilt!

    Alles Liebe und viel Spaß wünscht euch Anna vom Dein Painting Team!

  6. aralen sjogren’s [url=https://aralen.shop/#]chloroquine 250 mg tablets [/url] does moodiness with aralen disappear how does aralen fight malaria

  7. The aall round odds of winning a prize in the game aare about one particular-in-24.87.

    Also visit my website Learn more here

  8. I will immediately grab your rss feed as I can not to find your e-mail subscription link or e-newsletter service.
    Do you have any? Please permit me recognize so that I
    could subscribe. Thanks.

    Here is my page – Ready XL Male Enhancement

  9. Terrific work! This is the type of information that
    are supposed to be shared across the internet. Shame on the search engines
    for now not positioning this publish higher! Come on over and talk over with my website .
    Thank you =)

  10. We’re a group of volunteers and starting a new scheme in our community.

    Your web site offered us with valuable info to work on. You’ve done an impressive job and our entire community will be thankful to you.

    Feel free to surf to my page Tenaxtreme Male Enhancement Reviews

  11. Thee removal will take location when non-US jurisdictions are permitted to join it was
    initially scheduled in August 2021 buut was delayed as plans for international expansion are indefinite.

    Take a look at my page :: Visit website

  12. I’m extremely impressed with your writing skills as
    smartly as with the structure to your blog. Is this a paid theme or did you customize it your self?

    Anyway keep up the nice high quality writing, it’s rare to peer a great
    weblog like this one nowadays..

  13. Good way of telling, and nice paragraph to take data about my presentation topic, which
    i am going to present in institution of higher education.

  14. I feel that is one of the such a lot important info for me.
    And i am happy studying your article. However want to commentary on some normal issues, The site style
    is wonderful, the articles is in reality great : D. Excellent task, cheers

  15. I absolutelү love үour website.. Ꮩery nice colors & theme.

    Ɗid you crеate this web site youгself? Pⅼease reply bаck аs I’m ⅼooking to create
    my ѵery own website aand ᴡant tto find oᥙt where
    y᧐u gοt tһis from oor whаt the theme is callеd.
    Aρpreciate it!

    Ꭺlso visit my homepaɡe; Ɍeсreɑtiοnaⅼ ѵehіcⅼe

  16. Leftch dice:

    Nice respond in return of this query with firm arguments and telling all on the topic of that.

  17. love doll dice:

    Hello, I check your blogs regularly. Your writing
    style is witty, keep it up!

  18. vwin dice:

    What’s Going down i am new to this, I stumbled upon this I
    have discovered It absolutely helpful and it has helped me out loads.
    I hope to contribute & assist other customers like its helped me.

    Great job.

    Here is my web-site; vwin

  19. Charles Fey membikin robot slot dengan 5 reel yang cukup menarik.
    Bot slot gacor hari ini live streaming pertama ciptaannya ini cuma memberikan jp buat
    di setiap bettor yang berhasil memenangkan permainannya.
    Bot slot ini diciptakan buat bar agar banyak pengunjungnya.
    Tapi karena peringkat serta sistem game
    slot ini amat menarik dan gampang dimainkan, maka diciptakanlah robot slot online premium yang bisa dimainkan dengan memakai uang asli.
    Slotter bisa dapatkan jackpot uang asli di saat mereka berhasil menang.
    Nilai jp yang mereka dapatkan pun bernilai besar. Sehingga player bisa
    dapatkan untung yang lebih tinggi.

  20. It’s awesome for me to have a site, which is beneficial designed
    for my know-how. thanks admin

  21. Can I just say what a relief to uncover someone that actually understands
    what they are talking about on the internet. You definitely realize how to bring a problem to light and make it important.
    More people ought to look at this and understand this
    side of the story. It’s surprising you aren’t more popular since you surely possess the gift.

  22. If some one desires to be updated with most
    up-to-date technologies then he must be pay a visit this site and be up to date daily.

  23. 창원출장 dice:

    Wonderful website. A lot of helpful information here.
    I am sending it to several friends ans additionally sharing in delicious.
    And obviously, thank you for your effort!

  24. ZMA dice:

    Thanks for your marvelous posting! I genuinely enjoyed reading it, you will be a great author.I will make sure to bookmark your blog and will come back from now on. I want to encourage
    continue your great work, have a nice afternoon!

  25. rb888 dice:

    For newest news you have to pay a visit the web and on world-wide-web I found this web page
    as a most excellent site for most recent updates.

    My webpage – rb888

  26. You may possibly have the personal computer randomly pick ypur numbers
    for yyou by marking thee “Quick Pick” box.

    Also visit my website – Visit website

  27. Heya i am for the primary time here. I found this board and I find It really useful & it
    helped me out much. I’m hoping to present something
    again and help others like you helped me.

    Also visit my page – พลาสติกกันกระแทก

  28. baricitinib plus remdesivir for hospitalized adults with covid-19 pubmed baricitinib india is baricitinib a biologic olumiant drug class

  29. w88 dice:

    I love what you guys are up too. This sort of clever work and reporting!
    Keep up the fantastic works guys I’ve you guys to blogroll.

  30. If you are going for finest contents like I do, just pay a visit this site all the time because it presents feature contents, thanks

  31. There is definately a lot to know about this issue. I like all of the points you have made.

    My web page: Mushroom Brain Review

  32. The last trailer was released on June 9, 2022, that
    includes The Undisputed Truth’s 1971 rendition of The
    Temptations’ “Ball of Confusion”.

  33. 傻缺 dice:

    Hello there, You have done an incredible job. I will certainly digg it and personally recommend to my
    friends. I am confident they’ll be benefited from this site.

  34. Hi to every one, the contents present at this website are genuinely amazing for people experience, well, keep up the good work fellows.

  35. Wilton dice:

    I do trust all of the ideas you have offered to your post.
    They’re very convincing and can certainly work. Still, the posts are too brief for starters.
    May you please prolong them a bit from next
    time? Thank you for the post.

  36. I am actually grateful to the holder of this web site who has shared this
    fantastic article at at this place.

  37. Betcle provides sports betting information, sports analysis,
    and sports tips as a sports community.

  38. Hey there I am so grateful I found your site, I really found you
    by error, while I was browsing on Yahoo for something else,
    Nonetheless I am here now and would just like to say kudos for a tremendous post and a all round entertaining blog (I also love the theme/design),
    I don’t have time to read it all at the minute but I have bookmarked it and
    also added in your RSS feeds, so when I have time I will be
    back to read more, Please do keep up the great b.

  39. Appreciation to my father who informed me
    on the topic of this website, this weblog is genuinely remarkable.

    Stop by my web blog :: HydroBoost Air Conditioner Reviews

  40. Superb post however , I was wanting to know if you could write a litte more on this topic?
    I’d be very grateful if you could elaborate a little bit more.

    Many thanks!

    My blog post … Custom Printed air Force 1 Mid Dance Shoes

  41. 롤30레벨 dice:

    Howdy superb blog! Does running a blog like this take a lot of
    work? I’ve very little expertise in programming
    but I was hoping to start my own blog soon. Anyways, if you have
    any suggestions or tips for new blog owners please share.
    I know this is off subject nevertheless I simply had to ask.
    Cheers!

    Have a look at my blog: 롤30레벨

  42. I do trust all of the ideas you’ve introduced for your post.

    They are very convincing and can definitely work. Nonetheless, the posts are too short for starters.
    May just you please lengthen them a little from subsequent time?
    Thanks for the post.

  43. SOS Keto dice:

    Hi, yup this article is really nice and I have learned lot of things from it regarding blogging.
    thanks.

    Also visit my web site SOS Keto

  44. yalla shoot dice:

    Thank you for some other informative blog. Where else may just I get that kind of information written in such a perfect
    method? I’ve a mission that I’m simply now operating on, and I’ve
    been on the glance out for such info.

  45. I’m extremely inspired tߋgether with yоur writing skills ɑs smartly aѕ with tһe structure in yοur blog.
    Ӏѕ this a paid subject or ɗid you customize іt ʏourself?
    Anywаy stay սp tһе nice quality writing, it is rare to
    seе a nce blog like this onne today..

    Herе iѕ my ⲣage; ਇਸ ਜਾਣਕਾਰੀ ਦੀ ਪਾਲਣਾ ਕਰੋ

  46. Hi, I log on to your blog daily. Your humoristic style is witty, keep it up!

  47. I read this article fully regarding the difference of newest and preceding technologies, it’s amazing article.

  48. What’s Taking place i am new to this, I stumbled upon this I’ve discovered It absolutely helpful and it
    has helped me out loads. I hope to contribute & assist other customers like its helped me.
    Great job.

  49. cooking dice:

    Hello! I just want to offer you a big thumbs up for your great
    info you have got here on this post. I’ll be coming back to your blog for more soon.

  50. evaluation dice:

    Keep on writing, great job!

Agrega tu comenatio