Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jeff-vincent/orka-ansible-inventory-creator
Dynamic Ansible Inventory Script for MacStadium's Orka
https://github.com/jeff-vincent/orka-ansible-inventory-creator
Last synced: 1 day ago
JSON representation
Dynamic Ansible Inventory Script for MacStadium's Orka
- Host: GitHub
- URL: https://github.com/jeff-vincent/orka-ansible-inventory-creator
- Owner: jeff-vincent
- Created: 2020-10-09T05:04:24.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-01-07T17:51:48.000Z (almost 4 years ago)
- Last Synced: 2024-06-11T16:21:44.360Z (5 months ago)
- Language: Python
- Homepage:
- Size: 25.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Orka-Ansible-Inventory-Creator
A simple script to generate an Ansible inventory for Orka VMs.
## Usage
1. Install and set up the Orka CLI.
1. Run `python3 create_ansible_inventory.py path/to/output_dir`## Examples
Create an unsorted inventory of all VMs associated with CLI user.
```
python3 create_ansible_inventory.py ~/MacStadium/ansible_dir
```Create an inventory in which VMs are sorted by name.
```
python3 create_ansible_inventory.py ~/MacStadium/ansible_dir --sort-key virtual_machine_name
```## Available `sort_key` Values
`owner`,`virtual_machine_name`,`virtual_machine_id`,`node_location`,
`node_status`,`virtual_machine_ip`,`vnc_port`,`screen_sharing_port`,`ssh_port`,
`cpu`,`vcpu`,`RAM`,`base_image`,`image`,`configuration_template`,`vm_status`