Merge pull request #3 from ShiChangkuo/bugfix unify auth parameters update install and readme
Merge pull request #3 from ShiChangkuo/bugfix
The usage of this ansible modules assumes that you’ve already setup an Ansible environment for HuaweiCloud Stack.
Installed the ansible in your environment.
$ ./install.sh
$ sudo pip install -r requirement.txt
$ cat test.yml - hosts: localhost tasks: - name: create an auto-scaling group hcs_as_group: auth: auth_url: "{{ auth_url }}" username: "{{ user_name }}" password: "{{ password }}" domain_name: "{{ domain_name }}" project_name: "{{ project_name }}" region: "{{ region }}" group_name: "{{ group_name }}" state: present vpc_id: "{{ vpc_id }}" networks: ["{{ test_network }}"] desire_instance_number: 2 min_instance_number: 1 max_instance_number: 5 cool_down_time: 600 health_periodic_audit_time: 15 delete_publicip: True
$ ansible-playbook test.yml
Apache 2.0
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
huaweicloud.huaweicloudstack_ansible_modules
Prerequisite
The usage of this ansible modules assumes that you’ve already setup an Ansible environment for HuaweiCloud Stack.
Installed the ansible in your environment.
Installation
Example Playbook
Run ansible
License
Apache 2.0