Resolvido: Migrando 120 configurações de VM do CoreOS para o CentOS em 18 meses


Esta é uma transcrição do desempenho em DevopsConf 2019-10-01 e SPbLUG 2019-09-25 .


Esta é a história de um projeto que usou um sistema de gerenciamento de configuração proprietário e por que a mudança para a Ansible se prolongou por 18 meses.


Dia nÂş XXX: Antes do inĂ­cio



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