https://github.com/zkfmapf123/infra-automation
infra automation use python, ansible, fabric
https://github.com/zkfmapf123/infra-automation
Last synced: 4 months ago
JSON representation
infra automation use python, ansible, fabric
- Host: GitHub
- URL: https://github.com/zkfmapf123/infra-automation
- Owner: zkfmapf123
- Created: 2023-05-21T11:07:41.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-05-22T15:23:36.000Z (about 3 years ago)
- Last Synced: 2025-03-02T22:42:10.032Z (over 1 year ago)
- Language: HCL
- Size: 188 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# infra-automation use ansible
## Install
```
brew install ansible
```
## Execute
```
// Execute Terraform (vpc + ec1)
cd infra
terraform init && terraform apply
// Execute Ansible
cd ansible
ansible-playbook -i ./inventory.ini install.yml
```
## Architecture

- terraform (aws service 생성)
- ansible (aws service의 내부 설정 provisioning)
## Ansible
- 여러대의 서버에 동일한 환경을 유지하기 위한 Infrastructure as a Code
- Terraform과 같이 멱등성 존재 (수정된 부분이 있다면 -> 그것만 반영)
- Inventory -> 제어될 대상을 정의
- Playbook -> 대상들의 대한 Task 정의
- Module -> Task들이 어떻게 수행될지 정의
## Folders
- infra (terraform services)
- ansible (ansible configs)
## Refernece
## Result
- Terraform으로 인프라를 구성하고 Ansible로 각각의 대한 인프라의 대한 설정을 한다는 점은 환경설정에서 엄청난 짝꿍스
- 각각의 리눅스 설정의 대해서 Ansible로 구성하는 것은 좋은듯...