Skip to main content

6 docs tagged with "IaC"

View All Tags

Advanced Lab of ansible

主要描述在正式環境使用上,使用的資料夾結構跟各個資料夾放的檔案功能,例如roles底下的files,handlers,tasks,templates,vars資料夾,以及host_vars,group_vars這幾個定義變數地方的用法.另外講檢查指令ansible-inventory -i hosts --list,跟ansible-playbook playbook.yml --check --diff這兩個選項,ansible-inventory -i hosts --list可以檢查ansible有吃到哪些變數,--check --diff可以先preview看ansible執行後會做的動作並看文檔異動狀況!

Advanced module of ansible

To install Filebeat through Ansible, you can follow these steps,Set up your Ansible environment->Create an Ansible playbook->Define the inventory->Write the pllaybook tasks->Check the changes is proper or not ->Run the playbook.

Basic introduction of ansible

ansible 是組態管理工具 Configuration management Tool ,含有自動化工具,配置系統、部署軟件和編排更高級的 IT 任務,例如持續部署或零停機滾動更新.此部分主要是用官網的介紹內容,寫下個人了解後的筆記,跟做lab的紀錄!

Basic introduction of Terraform

HashiCorp 公司打造的 IaC 工具,使用者透過可閱讀的設定檔以達到版控,重複使用,共享設定,管理本地端(on-premises resources)跟雲端(cloud resources)由低階組件,例如:計算、存儲、網路資源,到高層級組件,例如 DNS record,SAAS 功能等的管理.

Install filebeat through ansible

To install Filebeat through Ansible, you can follow these steps,Set up your Ansible environment->Create an Ansible playbook->Define the inventory->Write the pllaybook tasks->Check the changes is proper or not ->Run the playbook.

The importance of IaC

域名,憑證,網路及伺服器環境(防火牆、subnet 切分、路由表、gateway、CDN、security group 等等),應用程式部署,監控程式,日誌管理這些在IaC過程都會用到,IaC 精神就是把這整個過程的建置,用程式的方式建立,也就是發生了什麼事情,怎麼建立的,都是用程式去控制,如果某段掛掉或被看你不順眼的工程師砍掉,可以迅速地用程式執行備援方案把這段掛掉的補上. 以下的小節,會去討論每階段 IaC 有哪些工具可以使用.