Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eumel8/otc_ims
https://github.com/eumel8/otc_ims
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/eumel8/otc_ims
- Owner: eumel8
- Created: 2018-08-09T11:35:05.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-05-06T14:58:38.000Z (over 3 years ago)
- Last Synced: 2023-08-02T14:56:24.180Z (over 1 year ago)
- Language: Shell
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
otc_ims
=======OTC role for Image.
Variables:
^^^^^^^^^^+-------------------------+-----------------------------------------------------------+
| Name | Description |
+=========================+===========================================================+
| image_name | name of image |
+-------------------------+-----------------------------------------------------------+
| image_id | id of image |
+-------------------------+-----------------------------------------------------------+
| image_url | s3 source url for image upload |
| | : |
| | ansible1:/xenial-server-cloudimg-amd64-disk1.vmdk |
+-------------------------+-----------------------------------------------------------+
| ecs_id | ecs_id as source for image creation (ECS must be stopped) |
+-------------------------+-----------------------------------------------------------+
| image_min_disk | minimal disk size for image creation (in GB) |
+-------------------------+-----------------------------------------------------------+
| image_os_version | os_version of the created image |
+-------------------------+-----------------------------------------------------------+
| waitfor | wait for image creation (True or False) |
+-------------------------+-----------------------------------------------------------+Functions:
^^^^^^^^^^Create::
ansible-playbook tenant_yml.yml -e "image_name=ansible-image01" -e "image_url=ansible1:/xenial-server-cloudimg-amd64-disk1.vmdk" -e "image_min_disk=12" "localaction=create"
ansible-playbook tenant_yml.yml -e "image_name=ansible-image01" -e "ecs_id=12345678901234567890" -e "image_min_disk=12" "localaction=create"
Show::
./grole otc_evs; ansible-playbook roles.yml -e "image_name=Community_Ubuntu_16.04_TSI_latest" -e "localaction=show"
List::
./grole otc_evs; ansible-playbook roles.yml -e "localaction=list"
Delete::
./grole otc_evs; ansible-playbook roles.yml -e "image_name=ansible-image01" -e "localaction=delete"