Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eumel8/otc_obs
https://github.com/eumel8/otc_obs
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/eumel8/otc_obs
- Owner: eumel8
- Created: 2018-08-09T11:38:20.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-05-06T15:05:40.000Z (over 3 years ago)
- Last Synced: 2024-10-16T08:48:06.860Z (2 months ago)
- Language: Shell
- Size: 23.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
otc_obs
=======OTC role for Object Storage Service (OBS).
This role requires curl, libxml2-utils, and openssl installed.Authentification will be done with environment variables (e.g. EC2...)
or ansible-vault file in 'vars/_secrets.yml' or 'vars/secrets.yml'.
Dependly on that ansible-playbook must be called with vault param.Variables:
^^^^^^^^^^+-------------------------+-----------------------------------------------------------+
| Name | Description |
+=========================+===========================================================+
| EC2_ACCESS_KEY | OBS access key |
+-------------------------+-----------------------------------------------------------+
| EC2_SECRET_KEY | OBS secret key |
+-------------------------+-----------------------------------------------------------+
| EC2_URL | OBS URL (default https://obs.otc.t-systems.com) |
+-------------------------+-----------------------------------------------------------+
| bucket | s3 bucket name |
+-------------------------+-----------------------------------------------------------+
| object | data to upload |
+-------------------------+-----------------------------------------------------------+Functions:
^^^^^^^^^^list OBS buckets::
ansible-playbook s3.yml -e "localaction=list" --vault-password-file vars/vaultpass.txt
ansible-playbook s3.yml -e "localaction=list"
create OBS bucket::
ansible-playbook s3.yml -e "bucket=mybucket" -e "localaction=create"
delete OBS bucket::
ansible-playbook s3.yml -e "bucket=mybucket" -e "localaction=delete"
upload files in OBS (VHD, ZVHD, VMDK, QCOW2 are supported for otc image service)::
ansible-playbook s3.yml -e "bucket=mybucket" -e "object=xenial-server-cloudimg-amd64-disk1.vmdk" -e "localaction=upload"
delete OBS objects::
ansible-playbook s3.yml -e "bucket=mybucket" -e "object=xenial-server-cloudimg-amd64-disk1.vmdk" -e "localaction=delete_object"