Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Basic StackScript info
PostPosted: Fri Apr 27, 2012 11:09 am 
Offline
Senior Newbie

Joined: Wed Mar 17, 2010 3:31 pm
Posts: 16
Sorry if this is obvious but I can't seem to find some basic info on creating a StackScript. I see the http://www.linode.com/stackscripts/ page but I can't even seem to figure out how to list all the StackScripts available.. It only sorts/lists "popular" ones. Many of the scripts reference StackScriptID 1. How do you view scripts by ID on that page?

I've also found http://library.linode.com/linode-platform/stackscripts which really should be mentioned on the http://www.linode.com/stackscripts/ page but it only mentions getting a list of scripts via a command line interface.


Top
   
 Post subject:
PostPosted: Fri Apr 27, 2012 12:23 pm 
Offline
Senior Member

Joined: Sat Nov 27, 2010 8:21 pm
Posts: 63
Use the "Browse by Distribution" menu on the right. To see a specific stackscript id just edit the link: http://www.linode.com/stackscripts/view ... ScriptID=1


Top
   
 Post subject:
PostPosted: Fri Apr 27, 2012 1:07 pm 
Offline
Senior Newbie

Joined: Wed Mar 17, 2010 3:31 pm
Posts: 16
Nibbler wrote:
Use the "Browse by Distribution" menu on the right. To see a specific stackscript id just edit the link: http://www.linode.com/stackscripts/view ... ScriptID=1


Thanks for the URL to see by ID but that still doesn't make it easier to show all the scripts available. By randomly looking at scripts I came across this one:

http://www.linode.com/stackscripts/view ... riptID=131

It includes what I would consider some very helpful scripts that I need for my own script but there doesn't appear to be an easy way for me to have found out about it without me randomly looking through scripts to see what they include. For example, it includes a script called lib-system-ubuntu ( http://www.linode.com/stackscripts/view ... riptID=123 ). How would I have been able to discover that? Even searching for the script name "lib-system-ubuntu" comes up with 166 matches, none except the one I mentioned above actually uses it.


Top
   
 Post subject:
PostPosted: Sat Apr 28, 2012 8:59 am 
Offline
Senior Newbie

Joined: Wed Mar 17, 2010 3:31 pm
Posts: 16
I found a way to list all the StackScripts available although it is a bit unwieldy. Replace YOUR_PROFILE_API_KEY with the API key you can find in your "my profile" at the top of the page when you login to the linode manager. This API call is unwieldy because it not only lists all the meta data associated with the StackScripts in JSON format but the actual StackScript itself.

https://api.linode.com/?api_key=YOUR_PR ... ackscripts

If you want to pretty-print the output from that call in your browser paste the contents in the formatter at http://jsonformatter.curiousconcept.com/

The other option is to use one of the language bindings listed at http://www.linode.com/api/index.cfm but the node.js one which I tried does not work.


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


Who is online

Users browsing this forum: nqservices and 5 guests


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