Skip to content

Creates a rundeck resource XML file from your instances on vultr

Notifications You must be signed in to change notification settings

kfowlks/vultr-rundeck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Vultr Rundeck Resource Dump

This program reads the server instance information from vultr using their API and converts the output to a rundeck compatible resources.xml file. In order to use the program, you'll need a valid vultr account along with an API key.

You can find more information on enabling the API functionality for your link below.

https://my.vultr.com/settings/#settingsapi

###Reference Rundeck resource xml format http://rundeck.org/1.5.2/manpages/man5/resource-v13.html

###Requires Under CYGWIN run the below to install pip

  python -m ensurepip

This code relies on the following python module: https://pypi.python.org/pypi/vultr/0.1.2

pip install vultr

Version

0.0.1

Running the program

```bash
        $ python dump-rundeck-resources.py -k [Vultr-API-Key]
```
        or 
```bash
        export VULTR_KEY=APIKEY
        
        $ python dump-rundeck-resources.py
        
        $ python dump-rundeck-resources.py > /var/rundeck/projects/rundeck-production/etc/resources.xml
```

About

Creates a rundeck resource XML file from your instances on vultr

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages