ansible実践 / ansible-my-use-case

12a5cec7a54018170b1a009731acf477?s=47 VTRyo
April 19, 2018

ansible実践 / ansible-my-use-case

2018/4/19 サポーターズ勉強会資料
github: https://github.com/VTRyo/ansible-samples
blog: https://tech.vtryo.me

12a5cec7a54018170b1a009731acf477?s=128

VTRyo

April 19, 2018
Tweet

Transcript

  1. 1.

    A N S I B L E ࣮ ફ I

    N F R A / S R E RY O
  2. 2.

    ໨ ࣍ • ࣗݾ঺հ • ͲΜͳαʔόΛ؅ཧ͍ͯ͠Δʁ • ࣮ࡍʹӡ༻͍ͯ͠ΔσΟϨΫτϦߏ੒ • ࣄྫू

    ɹɾvagrant + ansible ɹɾdocker + ansible ɹɾansible-vault ɹɾAWS + ansible
  3. 9.

    Ͳ Μ ͳ α ʔ ό Λ ؅ ཧ ͯ͠

    ͍ Δʁ Ұ෦͓Έͤ͠·͢
  4. 10.

    Ͳ Μ ͳ α ʔ ό Λ ؅ ཧ ͯ͠

    ͍ Δʁ ࣗࣾϓϩμΫτΛྫʹ
  5. 11.

    ࣮ ࡍ ʹ ӡ ༻ ͯ͠ ͍ Δ σΟ Ϩ

    Ϋ τ Ϧ ߏ ੒ ͳΔ΂͘ϕετϓϥΫςΟεʹد͍ͤͯΔ ɾม਺ϑΝΠϧͷgroup_vars ɾର৅αʔόΛهड़ͨ͠hosts ɾrolesʹϛυϧ΢ΣΞ܈
  6. 12.

    ࣮ ࡍ ʹ ӡ ༻ ͯ͠ ͍ Δ σΟ Ϩ

    Ϋ τ Ϧ ߏ ੒ HSPVQ@WBST ɾ֤؀ڥ͝ͱʹϑΝΠϧΛ ɹΘ͚ͯ͋Δɻ ɾhostsͷάϧʔϐϯάʹ ɹج͍ͮͯಡΈࠐ·ΕΔ
  7. 13.

    ࣮ ࡍ ʹ ӡ ༻ ͯ͠ ͍ Δ σΟ Ϩ

    Ϋ τ Ϧ ߏ ੒ )PTUT ɾhosts΋؀ڥ͝ͱʹ ɾhosts͸άϧʔϐϯά
  8. 14.

    ࣮ ࡍ ʹ ӡ ༻ ͯ͠ ͍ Δ σΟ Ϩ

    Ϋ τ Ϧ ߏ ੒ 3PMFT ɾ֤ϛυϧ΢ΣΞΛ֨ೲ ɾαʔόʹΑͬͯҟͳΔ ɹόʔδϣϯ΋͋Δ
  9. 15.

    ࣮ ࡍ ʹ ӡ ༻ ͯ͠ ͍ Δ σΟ Ϩ

    Ϋ τ Ϧ ߏ ੒ αʔό͝ͱʹ࣮ߦ͍ͤͨ͞λεΫ͕ҧ͏ͱ͖͸ʁ ɾྫ͑͹CentOSͱamazonlinuxͱͰ෼ذ͍ͨ͠ͱ͖
  10. 21.
  11. 23.

    A N S I B L E ࣮ ફ I

    N F R A / S R E RY O ׬