-
Notifications
You must be signed in to change notification settings - Fork 51
MCI Ansible deployment
https://github.com/cloud-barista/cb-tumblebug/pull/520
CB-TB를 통해 생성된, MCIS에
Ansible 을 바로 동작시킬 수 있도록 스크립트 도구 제공.
MCIS를 생성 후, ./creat-all.sh all 1 shson04 ../testSetAws.env
cb-tumblebug/src/testclient/scripts/sequentialFullTest$ ./conf-ansible-env.sh all 1 shson04 ../testSetAws.env
를 사용하면, Ansible이 필요로하는 정보를 포함하는 파일을 자동으로 생성하여, ansibleAutoConf/MCISID-host 파일에 추가함.
son@son:~/go/src/github.com/cloud-barista/cb-tumblebug/src/testclient/scripts/sequentialFullTest$ ./conf-ansible-env.sh all 1 shson04 ../testSetAws.env
####################################################################
## Config Ansible environment (generate host file)
####################################################################
...
[Check Ansible (if not, Exit)]
[Command to install Ansible]
1. apt install python-pip
2. pip install ansible
3. ansible -h
4. ansible localhost -m pinginstall ok installed
[CHECK REMOTE COMMAND BY CB-TB API]
This will retrieve verified SSH username
...
[Configure Ansible Host File based on MCIS Info]
...
[You can use Asible in ./ansibleAutoConf/]
Ex) ansible-playbook ./ansibleAutoConf/helloworld.yml -i ./ansibleAutoConf/mcis-shson04-host
예시와 같이, ansible-playbook ./ansibleAutoConf/helloworld.yml -i ./ansibleAutoConf/mcis-shson04-host
를 입력하면
ansibleAutoConf/helloworld.yml
Ansible playbook이 실행됨.
예시 Ansible playbook 이외에 다른 playbook은 다양한 채널을 통해 구할 수 있음.
Ansible nginx example https://github.com/cloud-barista/cb-tumblebug/pull/521
참고) Add SSH Key to EC2 instances with Ansible – Automated
https://www.middlewareinventory.com/blog/ansible-ec2-ssh-key/
참고) Ansible Galaxy
https://galaxy.ansible.com/
- Design
- Features & Usage
- Install & Start Guide
- User Interface
- Developer Guide
- Test Reports