Verkkopalvelinten automatisoitu konfigurointi Linux-ympäristössä Ansiblella
Altio, Arttu (2024)
Altio, Arttu
2024
All rights reserved. This publication is copyrighted. You may download, display and print it for Your own personal use. Commercial use is prohibited.
Julkaisun pysyvä osoite on
https://urn.fi/URN:NBN:fi:amk-2024103127104
https://urn.fi/URN:NBN:fi:amk-2024103127104
Tiivistelmä
Opinnäytetyön aiheena oli tutkia automatisointityökalu Ansiblen käyttöä palvelinten konfiguroinnissa. Tutkimuksen tavoitteena oli vertailla manuaalisesti konfiguroitujen palvelinten eroavaisuuksia Ansiblella konfiguroituihin. Tutkimuksessa selvitettiin muun muassa kummallakin tavalla konfigurointeihin käytettyä aikaa sekä työkalun mahdollisia haasteita ja hyötyjä verrattuna perinteiseen manuaaliseen konfigurointitapaan. Tutkimuksessa selvitettiin manuaalisesti konfiguroimalla tapahtuvia inhimillisiä virheitä, jotka automatisointityökalua käyttäen pystyttäisiin välttämään. Opinnäytetyöllä ei ollut ulkoista toimeksiantajaa, työ tehtiin opinnäytetyön tekijän omasta mielenkiinnosta syventyä aiheeseen ja tutkia itselleen vierasta automatisointityökalua.
Opinnäytetyön teoriaosassa perehdyttiin ensin palvelimiin, automatisointiin ja Linuxiin, joka toimi käyttöjärjestelmänä tutkimuksessa konfiguroiduille palvelimille. Lisäksi perehdyttiin myös Ansible-työkaluun omassa luvussaan. Opinnäytetyön teoriaosassa saatiin perustietoa palvelimista sekä niiden konfiguroinnista, automatisoinnista yleisesti, sekä automatisoinnin hyötyjä ja mahdollisia haittoja. Työssä selvitettiin myös yleistietoa Linuxista, ja miksi se käyttöjärjestelmänä sopii juuri palvelintarkoitukseen. Ansible luvussa syvennyttiin työkaluun ja sen arkkitehtuuriin. Tietopohja tutkimukseen kerättiin erilaisista luotettavista IT-alan yritysten tai henkilöiden verkkojulkaisuista. Tutkimuksessa menetelmänä käytettiin vertailevaa tutkimusmenetelmää.
Tutkimuksen tuloksena saatiin selville Ansible-työkalun käyttöön liittyviä haasteita sekä ajallista eroavaisuutta manuaaliseen konfigurointitapaan. Tutkimuksessa selvitettiin myös, milloin työkalun käyttöönotto palvelinten konfiguroinnissa olisi kannattavaa tutkimuksen tapaisessa ympäristössä. Tutkimus myös kehitti opinnäytetyön tekijän ongelmanratkaisutaitoja ja antoi käytännön kokemusta työkalun käytöstä. The topic of the thesis was to study the use of the automation tool Ansible in server configuration. The aim of the research was to compare the differences between manually configured servers and those configured with Ansible. The study investigated, among other things, the time spent on configuration using both methods, as well as the potential challenges and benefits of the tool compared to the traditional manual configuration method. The study also examined human errors that occur with manual configuration, which could be avoided by using an automation tool. The thesis did not have an external commissioner; the work was done out of the author's own interest in delving into the topic and exploring an unfamiliar automation tool.
In the theoretical part of the thesis, the focus was first on servers, automation, and Linux, which was the operating system used for the configured servers in the study. Additionally, the Ansible tool was covered in its own chapter. The theoretical part of the thesis provided basic information about servers and their configuration, automation in general, and the benefits and potential drawbacks of automation. The study also provided general knowledge about Linux and why it is suitable as an operating system for servers. The Ansible chapter delved into the tool and its architecture. The knowledge base for the research was gathered from various reliable online publications by IT companies or individuals. The research method used was a comparative research method.
The results of the study revealed the challenges associated with using the Ansible tool and the time differences compared to the manual configuration method. The study also identified when it would be beneficial to adopt the tool for server configuration in an environment similar to the study. The research also developed the author's problem-solving skills and provided practical experience with the tool.
Opinnäytetyön teoriaosassa perehdyttiin ensin palvelimiin, automatisointiin ja Linuxiin, joka toimi käyttöjärjestelmänä tutkimuksessa konfiguroiduille palvelimille. Lisäksi perehdyttiin myös Ansible-työkaluun omassa luvussaan. Opinnäytetyön teoriaosassa saatiin perustietoa palvelimista sekä niiden konfiguroinnista, automatisoinnista yleisesti, sekä automatisoinnin hyötyjä ja mahdollisia haittoja. Työssä selvitettiin myös yleistietoa Linuxista, ja miksi se käyttöjärjestelmänä sopii juuri palvelintarkoitukseen. Ansible luvussa syvennyttiin työkaluun ja sen arkkitehtuuriin. Tietopohja tutkimukseen kerättiin erilaisista luotettavista IT-alan yritysten tai henkilöiden verkkojulkaisuista. Tutkimuksessa menetelmänä käytettiin vertailevaa tutkimusmenetelmää.
Tutkimuksen tuloksena saatiin selville Ansible-työkalun käyttöön liittyviä haasteita sekä ajallista eroavaisuutta manuaaliseen konfigurointitapaan. Tutkimuksessa selvitettiin myös, milloin työkalun käyttöönotto palvelinten konfiguroinnissa olisi kannattavaa tutkimuksen tapaisessa ympäristössä. Tutkimus myös kehitti opinnäytetyön tekijän ongelmanratkaisutaitoja ja antoi käytännön kokemusta työkalun käytöstä.
In the theoretical part of the thesis, the focus was first on servers, automation, and Linux, which was the operating system used for the configured servers in the study. Additionally, the Ansible tool was covered in its own chapter. The theoretical part of the thesis provided basic information about servers and their configuration, automation in general, and the benefits and potential drawbacks of automation. The study also provided general knowledge about Linux and why it is suitable as an operating system for servers. The Ansible chapter delved into the tool and its architecture. The knowledge base for the research was gathered from various reliable online publications by IT companies or individuals. The research method used was a comparative research method.
The results of the study revealed the challenges associated with using the Ansible tool and the time differences compared to the manual configuration method. The study also identified when it would be beneficial to adopt the tool for server configuration in an environment similar to the study. The research also developed the author's problem-solving skills and provided practical experience with the tool.