![](https://habrastorage.org/webt/rp/xi/p6/rpxip6ta10wnto0hc9fo6pmxq-w.png)
这是DevopsConf 2019-10-01和SPbLUG 2019-09-25上的表演的成绩单。
这是一个使用专有配置管理系统的项目的故事,以及为什么迁移到Ansible会持续18个月的故事。
第XXX天:开始之前
![](https://habrastorage.org/webt/ak/sh/9q/aksh9ql8degiy4gnhthrqwtip_c.png)
Hyper-V. : , DNS, DHCP, git . , . , , git .
Custom Configuration Management Solution
![](https://habrastorage.org/webt/jk/eq/nu/jkeqnu8f0e2bkd4j4w1eagtmdne.png)
, , IaC: stateless , . ? :
- MAC.
- ISO CoreOS .
- CoreOS WEB IP.
- SCP IP .
- systemd unit bash .
![](https://habrastorage.org/webt/wu/e0/nx/wue0nx3egy-jwwgphi9vggq_4xa.png)
:
- ISO CoreOS deprecated.
- / .
- - . .
- , .. .
- - systemd unit CoreOS . CoreOS .
- .
- CM . bash YML CoreOS.
, . , — . , . , .
№0:
![](https://habrastorage.org/webt/rp/xi/p6/rpxip6ta10wnto0hc9fo6pmxq-w.png)
: jenkins, , , registry. CoreOS k8s , .. , CoreOS. . :
- CentOS , .. production .
- Ansible , .. .
- Jenkins , ..
- Hyper-V . , , — , .
№30: — Agreements as Code
![](https://habrastorage.org/webt/el/pc/l3/elpcl36qhcv7rfr4pzrrhqtfs3s.png)
, . (Agreements as Code!). -> -> .
![](https://habrastorage.org/webt/vs/74/9q/vs749qnzfphkw2djxrzxkk3lyjq.png)
Ansible . :
- git .
- inventory, .
- jenkins slave ansible.
- job, Jenkins.
. .
2. Create new VM
![](https://habrastorage.org/webt/fu/bp/dp/fubpdpqbk7dany70c5908c9zye8.png)
. Hyper-V. :
- Ansbile WinRM windows .
- Ansible powershell .
- Powershell .
- Hyper-V/ScVMM hostname.
- DHCP lease hostname.
- ddns & dhcp Domain Controller DNS .
- Ansible.
3. Create VM template
![](https://habrastorage.org/webt/2t/lo/ap/2tloapdonz_tuey-lctv3iwd5nq.png)
— packer.
- git packer, kickstart.
- jenkins slave hyper-v Packer.
- job, Jenkins.
:
- Packer , ISO.
- , Packer kickstart http.
- anaconda , .
- Packer .
- Packer ansible .
- Ansible №1 .
- Packer .
№75: = Test ansible + Testkitchen
![](https://habrastorage.org/webt/cj/tb/wg/cjtbwgo4xb1j7umm75vvpjph8wk.png)
. - — - . . Ansible . .. YML ansible?( Ansible, ).
№130: CentOS+ansible ? openshift?
, . , openshift Openshift . , openshift , , .
№170: Openshift , Windows Azure Pack?
![](https://habrastorage.org/webt/oq/gm/tb/oqgmtbimoupgcv-mzkm27yncqjc.png)
Hyper-V , SCVMM . Windows Azure Pack, SCVMM Azure. : . .
№250: Windows Azure Pack . SCVMM
![](https://habrastorage.org/webt/xd/b7/rz/xdb7rztw8jruu31p6qnaew8yppi.png)
Windows Azure Pack , WAP c SCVMM.
№360:
![](https://habrastorage.org/webt/7f/di/4x/7fdi4x_wemv-fkm8_t0a93erpxw.png)
. S.M.A.R.T. . , Ansible, .
№450: ?
![](https://habrastorage.org/webt/bw/zc/mt/bwzcmtb-g9kzdcgaswzypcexf8m.png)
. , , 80% 20% . 80% 20% .
№540:
![](https://habrastorage.org/webt/u0/ab/mb/u0abmbip_1aa-djjnwnlbgpeov4.png)
18 ?
- .
- -> -> .
Links