Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eumel8/otc_keypair
https://github.com/eumel8/otc_keypair
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/eumel8/otc_keypair
- Owner: eumel8
- Created: 2018-08-09T11:37:18.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-05-06T15:04:29.000Z (over 3 years ago)
- Last Synced: 2024-10-16T08:48:09.307Z (2 months ago)
- Language: Shell
- Size: 9.77 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
otc_keypair
===========OTC role for ssh keys.
Variables:
^^^^^^^^^^+-------------------------+-----------------------------------------------------------+
| Name | Description |
+=========================+===========================================================+
| ecs_adminkey | Name of the ssh key (to upload) |
+-------------------------+-----------------------------------------------------------+
| ecs_adminkey_name | Lookup name of ssh key |
+-------------------------+-----------------------------------------------------------+
| keypair_file | File to upload as ssh key |
+-------------------------+-----------------------------------------------------------+Functions:
^^^^^^^^^^Create::
./grole otc_keypair; ansible-playbook roles.yml -e "ecs_adminkey=ansible-key01" -e "keypair_file=.ssh/authorized_keys" -e "localaction=create"
ansible-playbook tenant_yml.yml -e "ecs_adminkey=ansible-key01" -e "keypair_file=.ssh/authorized_keys" -e "localaction=create"
note: keypair will be created during ECS creating worklflow
Show::
./grole otc_keypair; ansible-playbook roles.yml -e "ecs_adminkey=ansible-key01" -e "localaction=show"
List::
./grole otc_keypair; ansible-playbook roles.yml -e "localaction=list"
Delete::
./grole otc_keypair; ansible-playbook roles.yml -e "ecs_adminkey=ansible-key01" -e "localaction=delete"