Ansible: Difference between revisions

From ICO wiki
Jump to navigationJump to search
Ptomusk (talk | contribs)
Svesi (talk | contribs)
Line 19: Line 19:
== Kasutamine ==
== Kasutamine ==
=== Paigaldamine ===
=== Paigaldamine ===
Installeerime Ansible:
  root@puppet:/# apt-get install ansible
  Reading package lists... Done
  Building dependency tree     
  Reading state information... Done
  The following NEW packages will be installed:
    ansible
  0 upgraded, 1 newly installed, 0 to remove and 24 not upgraded.
  Need to get 0 B/245 kB of archives.
  After this operation, 1,219 kB of additional disk space will be used.
  Selecting previously unselected package ansible.
  (Reading database ... 140139 files and directories currently installed.)
  Unpacking ansible (from .../ansible_1.1+dfsg-1~ubuntu12.04.1_all.deb) ...
  Processing triggers for man-db ...
  Setting up ansible (1.1+dfsg-1~ubuntu12.04.1) ...
Kontrollime, et sai ilusti peale:
  root@puppet:/# ansible --version
  ansible 1.1
=== Esmane seadistamine ===
=== Esmane seadistamine ===
=== Kasutamine ===
=== Kasutamine ===
== Viited ==
== Viited ==
https://www.youtube.com/watch?v=PDRdCqFp2sY Continuous Deployment with Ansible
https://www.youtube.com/watch?v=PDRdCqFp2sY Continuous Deployment with Ansible

Revision as of 17:10, 5 January 2014

Tutvustus

Ansible on vabavaraline (GPL) konfiguratsiooni ja seadistuse haldamise tarkvaraplatvorm.
Konfiguratsiooni hoidmiseks kasutatakse YAML'i faile mis võivad olla omavahel hierarhiliselt seotud. Ansible on kirjutatud Python'is ning seadistuse vahendamiseks kasutatakse SSH protokolli (Python'i paramiko teeki või OS'i ssh käsku kasutades). Hallatava masina eelduseks on sissetulevate SSH ühenduste lubamine ja Python'i interpretaatori olemasolu (vähemalt versioon 2.4), eraldiseisvat klienti või agenti ei ole.
Tarkvara loojaks on Michael DeHaan, kes eelnevalt on
Nimetus "Ansible" on pärit O.S.Card'i raamatust Enderi mäng, kus kirjeldatakse samanimelist valguse kiirusest kiiremat suhtlusprotokolli.
Ansible'ile on võimalik osta ka ärikliendi tuge firmalt AnsibleWorks.

Erinevused levinud alternatiividega

Ansible peamine erinevus oma konkurentidega, sh. Puppet ja Chef on see, et ta on loodud mitte ainult agendi(kliendi)vabana, vaid lisaks puudub igasugune vajadus seadistada klientarvuteid, sest toimingud teostatakse üle SSH protokolli. Lisaks, kuna ta on kirjutatud Pythonis, peab serverarvutisse olema paigaldatud Python 2.4 või uuem.

Kasutamine

Paigaldamine

Installeerime Ansible:

 root@puppet:/# apt-get install ansible
 Reading package lists... Done
 Building dependency tree       
 Reading state information... Done
 The following NEW packages will be installed:
   ansible
 0 upgraded, 1 newly installed, 0 to remove and 24 not upgraded.
 Need to get 0 B/245 kB of archives.
 After this operation, 1,219 kB of additional disk space will be used.
 Selecting previously unselected package ansible.
 (Reading database ... 140139 files and directories currently installed.)
 Unpacking ansible (from .../ansible_1.1+dfsg-1~ubuntu12.04.1_all.deb) ...
 Processing triggers for man-db ...
 Setting up ansible (1.1+dfsg-1~ubuntu12.04.1) ...

Kontrollime, et sai ilusti peale:

 root@puppet:/# ansible --version
 ansible 1.1

Esmane seadistamine

Kasutamine

Viited

https://www.youtube.com/watch?v=PDRdCqFp2sY Continuous Deployment with Ansible