Upgrade to Pro — share decks privately, control downloads, hide ads and more …

大きなサイズの設定ファイルを効率よく管理するAnsibleモジュールを見つけました

32adece1a0645055e868f20117da6aa8?s=47 t.goto
September 04, 2017

 大きなサイズの設定ファイルを効率よく管理するAnsibleモジュールを見つけました

A paper for Ansible Meetup 2017.9 Lightning talk

32adece1a0645055e868f20117da6aa8?s=128

t.goto

September 04, 2017
Tweet

Other Decks in Technology

Transcript

  1. Copyright (c)2017 ITOCHU Techno-Solutions Corporation Ansible Meetup in Tokyo 2017.09

    ʙେ͖ͳαΠζͷઃఆϑΝΠϧΛޮ཰Α͘؅ཧ͢ΔAnsibleϞδϡʔϧΛݟ͚ͭ·͠ ͨʙ 1
  2. Copyright (c)2017 ITOCHU Techno-Solutions Corporation Who am I? 2 n Who

    am I? ޙ౻྅࠸ @ CTC ü ݩvSphere/Hyper-Vٕज़ऀ -  ࣾ಺֎ͷԾ૝ԽΠϯϑϥΛߏங(VCP,VCAP,vExpert2012) ü ࠓOpenStackٕज़ऀ -  ࣾ಺֎ͷOpenStackΠϯϑϥΛߏங -  ࠷ۙ͸CICD, DevOps, OpenStack Ø Ansible Ø GitLab, GitHub Ø Python Ø Docker Ø OpenStack Ø etc., etc.
  3. Copyright (c)2017 ITOCHU Techno-Solutions Corporation ຊ୊ 3 ʙେ͖ͳαΠζͷઃఆϑΝΠϧΛޮ཰Α͘؅ཧ͢ΔAnsibleϞδϡʔϧΛݟ͚ͭ·͠ ͨʙ

  4. Copyright (c)2017 ITOCHU Techno-Solutions Corporation എܠ 4 ʮେ͖͍ઃఆϑΝΠϧ͸໘౗ʯ

  5. Copyright (c)2017 ITOCHU Techno-Solutions Corporation എܠ 5 ʮେ͖͍ઃఆϑΝΠϧ͸໘౗ʯ ü ύοέʔδΞοϓσʔτʹ൐͏ઃఆϑΝΠϧͷΞοϓσʔτ - 

    JinjaԽͨ͠ϑΝΠϧͷߋ৽
  6. Copyright (c)2017 ITOCHU Techno-Solutions Corporation എܠ 6 ʮେ͖͍ઃఆϑΝΠϧ͸໘౗ʯ ü ύοέʔδΞοϓσʔτʹ൐͏ઃఆϑΝΠϧͷΞοϓσʔτ - 

    JinjaԽͨ͠ϑΝΠϧͷߋ৽ n ಛʹߦ਺͕ଟ͍৔߹, update͕සൟͳ৔߹ ü gitlabͷgitlab.rb : 1622ߦ ü OpenStackͷnova.conf : 10707ߦ
  7. Copyright (c)2017 ITOCHU Techno-Solutions Corporation ཧ૝ 7 n ࠩ෼͚ͩ༻ҙͯ͠ɺϚʔδͰ͖Ε͹ɾɾ ࠩ෼ ݩϑΝΠ

    ϧ merged n ϑΝΠϧܗࣜ ü ini ü yaml ü json ü etc.
  8. Copyright (c)2017 ITOCHU Techno-Solutions Corporation Έ͚ͭ·ͨ͠ 8 n OpenStack “Kolla”Ͱྑ͍Ϟδϡʔϧൃݟ

  9. Copyright (c)2017 ITOCHU Techno-Solutions Corporation Έ͚ͭ·ͨ͠ 9 n OpenStack “Kolla”Ͱྑ͍Ϟδϡʔϧൃݟ What

    is Kolla? ຊ൪؀ڥʹ࢖༻Ͱ͖ΔOpenStackίϯςφ Λʮ࡞੒ʯ͠ɺ͞Βʹɺʮల։ʯπʔϧΛ ఏڙ͢ΔϓϩδΣΫτ -  ΦϓελΛίϯςφԽ͢ΔBuilder -  ίϯςφԽͨ͠ΦϓελΛల։͢Δ Deployer
  10. Copyright (c)2017 ITOCHU Techno-Solutions Corporation Έ͚ͭ·ͨ͠ 10 n OpenStack “Kolla”Ͱྑ͍Ϟδϡʔϧൃݟ What

    is Kolla? ຊ൪؀ڥʹ࢖༻Ͱ͖ΔOpenStackίϯςφ Λʮ࡞੒ʯ͠ɺ͞Βʹɺʮల։ʯπʔϧΛ ఏڙ͢ΔϓϩδΣΫτ -  ΦϓελΛίϯςφԽ͢ΔBuilder -  ίϯςφԽͨ͠ΦϓελΛల։͢Δ Deployer େ͖͍ઃఆϑΝΠϧΛɺͨ͘͞Μͷϗετʹɺޮ ཰తʹ഑Δɺπʔϧ͕͋Γ·ͨ͠
  11. Copyright (c)2017 ITOCHU Techno-Solutions Corporation Meet the merge_configs and merge_yaml

    11 n merge_configs, merge_yaml ü iniܗࣜɺyamlܗࣜʹରԠ ü 2ݸҎ্ͷϑΝΠϧͷϚʔδʹରԠ ü AnsibleͷAction ModuleܗࣜͰΠϯϓϦϝϯτ ü Apache 2.0ϥΠηϯε ü https://github.com/openstack/kolla-ansible/
  12. Copyright (c)2017 ITOCHU Techno-Solutions Corporation DEMO1 12 σϞ1: merge_config

  13. Copyright (c)2017 ITOCHU Techno-Solutions Corporation ؆୯ͳ࢖͍ํσϞ: merge_config 13 n merge_config: σΟϨΫτϦߏ੒

    github͔Βर͖ͬͯ ͨ Ϛʔδ͍ͨ͠ϑ ΝΠϧ
  14. Copyright (c)2017 ITOCHU Techno-Solutions Corporation ؆୯ͳ࢖͍ํσϞ: merge_config 14 n merge_configs: iniϑΝΠϧ༻ҙ

    ݩϑΝΠϧ ࠩ෼ϑΝΠϧ طଘΤϯτϦͷॻ͖׵ ͑ ৽άϧʔϓͱ৽Τϯ τϦΛ௥ه
  15. Copyright (c)2017 ITOCHU Techno-Solutions Corporation ؆୯ͳ࢖͍ํσϞ: merge_config n merge_configs: playbook ϦϞʔτʹtemplateίϐ

    ʔ merge_configsϞδϡʔ ϧͰϚʔδ ݩϑΝΠϧ ࠩ෼ϑΝΠϧ
  16. Copyright (c)2017 ITOCHU Techno-Solutions Corporation ؆୯ͳ࢖͍ํσϞ: merge_config n merge_configs: ݁Ռ طଘΤϯτϦॻ͖׵Θͬ

    ͨ! ৽άϧʔϓͱ৽Τϯ τϦ͕௥ه͞Εͨ!
  17. Copyright (c)2017 ITOCHU Techno-Solutions Corporation DEMO2 17 σϞ2: merge_yaml

  18. Copyright (c)2017 ITOCHU Techno-Solutions Corporation ؆୯ͳ࢖͍ํσϞ: merge_yaml 18 n merge_yaml΋ςετ ৽ΤϯτϦ௥Ճ

    طଘΤϯτϦΛฤू ※ ࠩ෼1Ͱ௥Ճͨ͠ΤϯτϦ ΛฤूͰ͖Δ͔? ݩϑΝΠϧ ࠩ෼1 ࠩ෼2
  19. Copyright (c)2017 ITOCHU Techno-Solutions Corporation ؆୯ͳ࢖͍ํσϞ: merge_yaml 19 n merge_yaml: playbook

    ݩϑΝΠϧ ࠩ෼1 ࠩ෼2
  20. Copyright (c)2017 ITOCHU Techno-Solutions Corporation ؆୯ͳ࢖͍ํσϞ: merge_yaml 20 n merge_yaml݁Ռ -

    ࠩ෼ϑΝΠϧͰɺࠩ ෼ϑΝΠϧΛ্ॻ͖Ͱ͖ ͨ - 2όΠτจࣈ͸μϝ طଘΤϯτϦฤूͰ͖ͨ
  21. Copyright (c)2017 ITOCHU Techno-Solutions Corporation ·ͱΊ 21 n merge_configs, merge_yaml ü iniܗࣜɺyamlܗࣜʹରԠ

    ü 2ݸҎ্ͷϑΝΠϧͷϚʔδʹରԠ ü https://github.com/openstack/kolla-ansible/ ü ※ 2όΠτจࣈʹ͸ඇରԠ େ͖͍ઃఆϑΝΠϧΛɺͨ͘͞Μͷϗετʹɺޮ཰త ʹ഑ΕΔ ˕ େ͖͍αΠζͷઃఆϑΝΠϧ ˕ සൟʹΞοϓσʔτ͞ΕΔύοέʔδͷઃఆϑ ΝΠϧ
  22. Copyright (c)2017 ITOCHU Techno-Solutions Corporation 22 ͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠