Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Jan 30, 2014 1:05 pm 
Offline
Senior Newbie

Joined: Thu Jan 30, 2014 12:57 pm
Posts: 5
Hello,


With the release of the CLI I have been searching on a way to create a Linode and deploying the linux distribution by specifying a StackScript (after spending time to create those StackScript in the first place I'd rather reuse them than connect through SSH to do the deployment).

Now it must be something very easy to do but somehow I cannot figure out how to do the equivalent of deploying through a StackScript when going through the CLI.

Any pointers?

Thanks a whole lot in advance,

--
Jean-Marc


Top
   
PostPosted: Thu Jan 30, 2014 1:28 pm 
Offline
Newbie

Joined: Thu Jan 30, 2014 1:14 pm
Posts: 2
Hi Jean, working on the same problem.
I've scanned through the API docs, and the linode-cli source code. Using the API docs, I suspect this might take the form of:
* linode.create to set up the new linode ( https://www.linode.com/api/linode/linode.create )
* linode.disk.createfromstackscript which sets up a new disk using parameter stackscript ( https://www.linode.com/api/linode/linod ... tackscript )

Specifically:
theckman wrote:
You would then do linode.disk.createfromstackscript() as well as linode.disk.create() to create your swap image. Then you'd want to create your configuration profile using linode.config.create().

(source: viewtopic.php?t=9816&p=56206 )

However, based on grepping the source, it seems linode-cli does not support the disk management APIs yet. Therefore, this might only be possible via mixing the CLI with direct API calls as per above; specifically, eg wget https://api.linode.com/?api_key=abc123& ... ackscript&[parameters...] at the bottom of your linode creation scripts.


Top
   
PostPosted: Thu Jan 30, 2014 1:30 pm 
Offline
Senior Newbie

Joined: Thu Jan 30, 2014 12:57 pm
Posts: 5
Thank you very much. I was hoping to avoid going to the API directly but until then I'll do with it.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group