Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ait-testbed/atb-ansible-rootkeys
AECID testbed for installing public and private ssh-keys of simulated administrators.
https://github.com/ait-testbed/atb-ansible-rootkeys
aecid ansible ansible-role atb keys openssh simulation ssh testbed
Last synced: 13 days ago
JSON representation
AECID testbed for installing public and private ssh-keys of simulated administrators.
- Host: GitHub
- URL: https://github.com/ait-testbed/atb-ansible-rootkeys
- Owner: ait-testbed
- Created: 2023-07-20T14:29:36.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-07-20T14:34:00.000Z (over 1 year ago)
- Last Synced: 2024-11-09T21:11:59.159Z (2 months ago)
- Topics: aecid, ansible, ansible-role, atb, keys, openssh, simulation, ssh, testbed
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Ansible-Role: RootKeys
========================This role installs the ssh-keys for simultated administrators in the AECID
Testbed.Requirements
------------No special requirements
Role Variables
--------------```
# should the private key installed?
rootkeys_install_private: False
# should the public key installed?
rootkeys_install_public: True# which user should be authorized by the public key?
rootkeys_public_key_user: root
# User that holds the private key
rootkeys_private_key_user: root
# Directory where the private key should be stored
rootkeys_private_dir: "/root/.ssh"rootkeys_private: |
-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW
QyNTUxOQAAACAULlkY9CE9bFp2PrAXUQyMY1Hr7ltbopEcEO8deTKfuQAAAJBxW1xRcVtc
UQAAAAtzc2gtZWQyNTUxOQAAACAULlkY9CE9bFp2PrAXUQyMY1Hr7ltbopEcEO8deTKfuQ
AAAECPOwKRVHK+txAr5AyhQJN9P8fJqHy8fDomx2jQtXaMoxQuWRj0IT1sWnY+sBdRDIxj
UevuW1uikRwQ7x15Mp+5AAAAB3Jvb3RrZXkBAgMEBQY=
-----END OPENSSH PRIVATE KEY-----rootkeys_public: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBQuWRj0IT1sWnY+sBdRDIxjUevuW1uikRwQ7x15Mp+5 rootkey"
```Example Playbook
----------------Install the public key for user aecid:
```
- hosts: localhost
roles:
- role: rootkeys
vars:
rootkeys_public_key_user: aecid
```Install the private key for user root:
```
- hosts: localhost
roles:
- role: rootkeys
vars:
rootkeys_install_private: True
rootkeys_install_public: False
```License
-------GPL-3.0
Author Information
------------------Wolfgang Hotwagner (https://www.ait.ac.at)