diff --git a/README.md b/README.md new file mode 100644 index 0000000..9e306a9 --- /dev/null +++ b/README.md @@ -0,0 +1,13 @@ +vmtool +====== + +Simple ovh-compatible VM creation tool. And also highly opinionated. + +Installation +------------ + + apt install python python-pip cloud-image-utils + apt install python-docopt python-jinja2 python-netaddr # (optionally, use if you like your dist packages) + pip install -r requirements.txt + mkdir /templates /datasource + wget https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img -O /templates/xenial.img diff --git a/ovhgrant.py b/ovhgrant.py deleted file mode 100644 index e9cb080..0000000 --- a/ovhgrant.py +++ /dev/null @@ -1,7 +0,0 @@ -import ovh - -client = ovh.Client() -print(client.request_consumerkey([ - {'method': 'GET', 'path': '/*'}, - {'method': 'POST', 'path': '/*'}, - ])) diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..c763621 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,5 @@ +docopt>=0.6.2 +Jinja2>=2.8 +netaddr>=0.7.18 +libvirt-python>=1.3.1 +ovh==0.4.7