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

We want to talk Ansible with you of chusiang part

Chu-Siang Lai
February 25, 2020

We want to talk Ansible with you of chusiang part

# 就是要跟你聊 Red Hat Ansible

很榮幸接受 Red Hat Taiwan 的邀請,在線上簡單地與大家小聊一下 Ansible。

* 活動影片:https://youtu.be/QOMg9f6gFOs
* 活動網址:https://www.digitimes.com.tw/seminar/RedHat_20200225/
* 官方投影片下載:https://www.digitimes.com.tw/eventplus/event.asp?id=056A90225&prodgroup=0

Chu-Siang Lai

February 25, 2020
Tweet

More Decks by Chu-Siang Lai

Other Decks in Technology

Transcript

  1. _________________________
    < 就是要跟你聊 Red Hat Ansible >
    -------------------------
    \
    \ \_\_ _/_/
    \ \__/
    (oo)\_______
    (__)\ )\/\
    ||----w |
    || ||
    [ chusiang@RedHatTaiwan ~ ]
    $ cat .profile
    # Author: 凍仁翔 / [email protected]
    # Blog: https://note.drx.tw
    # Modified: 2020-02-25 16:30

    View Slide

  2. 凍仁翔
    • 系統⼯程師
    • Ansible Taiwan 社群組織者
    • DevOps Taiwan 社群志⼯
    • 台灣敏捷協會會員
    @chusiang_lai
    2

    View Slide

  3. Ansible Taiwan
    https://t.me/ansible_tw
    https://github.com/ansible-tw
    http://ansible.tw
    3

    View Slide

  4. https://note.drx.tw/

    View Slide

  5. https://ithelp.ithome.com.tw/2017ironman/8th_winner

    View Slide

  6. 1. 為什麼 Ansible 在社群上很火紅?
    2. 如何⽤ Ansible 快速檢測和修復
    安全與合規性問題?
    3. 回顧
    Outline
    Retro
    Community
    How
    6

    View Slide

  7. 1. 為什麼 Ansible 在
    社群上很火紅?
    Retro
    Community How
    7

    View Slide

  8. Agentless
    無代理程式
    Simple
    YAML、Python
    knowledge
    教學豐富
    8

    View Slide

  9. Linux Server
    Windows Server
    $ ansible
    $ ansible-playbook
    SSH / WinRM
    Managed Nodes
    Control Machine
    Workstation
    9

    View Slide

  10. Agentless
    無代理程式
    Simple
    YAML、Python
    knowledge
    教學豐富
    10

    View Slide

  11. $ vim example.yml
    1 ---
    2
    3 - name: "Playbook 範例"
    4 hosts: all
    5 tasks:
    6 - name: "世界你好"
    7 command: echo "Hello World"
    8
    9 - name: "在 RHEL 上安裝 Vim"
    10 become: True
    11 yum:
    12 name: vim

    View Slide

  12. Agentless
    無代理程式
    Simple
    YAML、Python
    knowledge
    教學豐富
    12

    View Slide

  13. http://ansible.tw/#!docs/presentation.md
    13

    View Slide

  14. https://docs.ansible.com
    14

    View Slide

  15. https://docs.ansible.com/ansible/latest/
    modules/yum_module.html
    15

    View Slide

  16. 2. 如何⽤ Ansible 快速檢測
    和修復安全與合規性問題?
    Retro
    Community How
    16

    View Slide

  17. Build Config Deploy Verify
    ⽤ Ansible 掌握⼀切
    17

    View Slide

  18. $ vim deploy.yml
    1 ---
    2
    3 - name: "部署範例"
    4 hosts: apps
    5 tasks:
    6 - name: "應⽤程式部署"
    7 import_tasks: deploy_app.yml
    8 tags: deploy
    9
    10 - name: "服務驗證"
    11 import_tasks: verify_service.yml
    12 tags: verify

    View Slide

  19. ⽤ Ansible Vault 處理敏感資料
    對使⽤者、資料庫等密碼加密,以密⽂儲存。
    19

    View Slide

  20. Manual
    20
    Customer
    Git server Development
    GitLab CI Build Test Deploy
    Release
    Modules
    Engineer
    Staging
    Prod. Release SQA

    View Slide

  21. 3. 回顧
    Retro
    Community How
    21

    View Slide

  22. Linux Server
    Windows Server
    $ ansible
    $ ansible-playbook
    SSH / WinRM
    Managed Nodes
    Control Machine
    Workstation
    22

    View Slide

  23. http://ansible.tw/#!docs/presentation.md
    23

    View Slide

  24. Build Config Deploy Verify
    ⽤ Ansible 掌握⼀切
    24

    View Slide

  25. _________
    < ⼯商服務 >
    ---------
    \
    \ \_\_ _/_/
    \ \__/
    (oo)\_______
    (__)\ )\/\
    ||----w |
    || ||
    25

    View Slide

  26. https://t.me/devopstw
    https://www.facebook.com/groups/DevOpsTaiwan/
    https://devopstw.club/
    DevOps Taiwan
    26

    View Slide

  27. https://www.facebook.com/groups/agile.kaohsiung/
    https://www.facebook.com/AgileTourHsinchu/
    https://www.facebook.com/groups/AgileNeihu/
    http:/
    /fb.me/AgileCommunity.tw
    27

    View Slide

  28. 買禮物?
    https://萍⽔相逢.tw
    28

    View Slide

  29. ______
    < END >
    ------
    \
    \ \_\_ _/_/
    \ \__/
    (oo)\_______
    (__)\ )\/\
    ||----w |
    || ||
    [ chusiang@RedHatTaiwan ~ ]
    $ cat .profile
    # Author: 凍仁翔 / [email protected]
    # Blog: https://note.drx.tw
    # Modified: 2020-02-25 16:30
    29

    View Slide