From 7d36e101a7774aae1cc09f39baedd36c9ead04c0 Mon Sep 17 00:00:00 2001 From: Piotr Dobrowolski Date: Fri, 10 Mar 2017 22:49:05 +0100 Subject: [PATCH] Add README --- README.md | 13 +++++++++++++ ovhgrant.py | 7 ------- requirements.txt | 5 +++++ 3 files changed, 18 insertions(+), 7 deletions(-) create mode 100644 README.md delete mode 100644 ovhgrant.py create mode 100644 requirements.txt 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