Recently I've been working on automating the nodes creation on our Linode infrastructure, in the process I came across the Linode API and it's bindings. Though they were powerful but lacks at some places i.e:
from linode import Linode
linode=Linode('node_identifier')
linode.create()
- In case of Linode CLI, while creating a linode you have to enter the root password so you can't achieve full automation. Also I was not able to find an option to add private ip to the linode
- In case of Linode API python binding you can't straight away create a running linode machine.
from linode import Linode
linode=Linode('node_identifier')
linode.create()
You just need to have a property file,/data/linode/linode.properties:
[DEFAULT]
UBUNTU_DIST=Ubuntu 12.04
KERNEL_LABEL=Latest 64 bit
DATACENTER_LABEL=Dallas
PLAN_ID=1024
ROOT_SSH_KEY=
LINODE_API=
UBUNTU_DIST=Ubuntu 12.04
KERNEL_LABEL=Latest 64 bit
DATACENTER_LABEL=Dallas
PLAN_ID=1024
ROOT_SSH_KEY=
LINODE_API=
The project is still in development, if someone wants to contribute or have any suggestions you are most welcome.