Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Node Meta Data Service
PostPosted: Tue Feb 24, 2015 1:01 pm 
Offline
Junior Member

Joined: Thu Jun 03, 2004 4:04 pm
Posts: 42
So recently I've gotten spoiled with other cloud provider meta data services. The kind of API where I can hit an 'internal' URL like 169.254.169.254/latest/user-data/ and pull out usernames, passwords, SSH-keys etc as I deploy new instances. I can't seem to find such a service on Linode so I'm hoping to use the StackScripts API instead.

When I create a StackScript and 'deploy an image' using one, what technically is occuring? Is linode stuffing a shell script into a 'standard' image that gets executed on first boot? If so what is the path that it does so? Is it different per supported distribution? Does Linode at some point try to delete that shell script?

Since I run a fully custom and encrypted distribution via pv-grub what I would like to do is deploy a 'standard' image with said StackScript and then simply mount that drive in my custom distribution and slurp out the StackScript that I can dynamically push via the Linode API at deploy time. That way I can fully customize my own instances dynamically. Anyone done any such machinations?

What other solutions have you come up to deploy SSH-keys and such? I could come up with my own external service but I'm concerned I would implement some gaping security hole that would be easily exploitable.


Top
   
PostPosted: Tue Feb 24, 2015 1:24 pm 
Offline
Junior Member

Joined: Thu Jun 03, 2004 4:04 pm
Posts: 42
So to followup to my own post, yes it seems Linode just dumps whatever script is written (it does require a shebang at the top but no other seeming requirements) and dumps it into the created image (I only tested on Debian 7) at /root/StackScript.

So for me this should work. Mount drive and slurp in file for node configuration on custom distro.


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


Who is online

Users browsing this forum: No registered users and 2 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