Kemungkinan: Memigrasi 120 konfigurasi VM dari CoreOS ke CentOS dalam 18 bulan


Ini adalah transkrip kinerja di DevopsConf 2019-10-01 dan SPbLUG 2019-09-25 .


Ini adalah kisah sebuah proyek yang menggunakan sistem manajemen konfigurasi berpemilik dan mengapa perpindahan ke Ansible berlangsung selama 18 bulan.


Hari No. -XXX: Sebelum awal



Hyper-V. : , DNS, DHCP, git . , . , , git .


Custom Configuration Management Solution



, , IaC: stateless , . ? :


  1. MAC.
  2. ISO CoreOS .
  3. CoreOS WEB IP.
  4. SCP IP .
  5. systemd unit bash .


:


  1. ISO CoreOS deprecated.
  2. / .
  3. - . .
  4. , .. .
  5. - systemd unit CoreOS . CoreOS .
  6. .
  7. CM . bash YML CoreOS.

, . , β€” . , . , .


β„–0:



: jenkins, , , registry. CoreOS k8s , .. , CoreOS. . :


  1. CentOS , .. production .
  2. Ansible , .. .
  3. Jenkins , ..
  4. Hyper-V . , , β€” , .

β„–30: β€” Agreements as Code



, . (Agreements as Code!). -> -> .


1. Configure VMs



Ansible . :


  1. git .
  2. inventory, .
  3. jenkins slave ansible.
  4. job, Jenkins.

. .


2. Create new VM



. Hyper-V. :


  1. Ansbile WinRM windows .
  2. Ansible powershell .
  3. Powershell .
  4. Hyper-V/ScVMM hostname.
  5. DHCP lease hostname.
  6. ddns & dhcp Domain Controller DNS .
  7. Ansible.

3. Create VM template



β€” packer.


  1. git packer, kickstart.
  2. jenkins slave hyper-v Packer.
  3. job, Jenkins.

:


  1. Packer , ISO.
  2. , Packer kickstart http.
  3. anaconda , .
  4. Packer .
  5. Packer ansible .
  6. Ansible β„–1 .
  7. Packer .

β„–75: = Test ansible + Testkitchen



. - β€” - . . Ansible . .. YML ansible?( Ansible, ).


β„–130: CentOS+ansible ? openshift?


, . , openshift Openshift . , openshift , , .


β„–170: Openshift , Windows Azure Pack?



Hyper-V , SCVMM . Windows Azure Pack, SCVMM Azure. : . .


β„–250: Windows Azure Pack . SCVMM



Windows Azure Pack , WAP c SCVMM.


β„–360:



. S.M.A.R.T. . , Ansible, .


β„–450: ?



. , , 80% 20% . 80% 20% .


β„–540:



18 ?


  1. .
  2. -> -> .



All Articles