----- Original Message ----- > From: "Justin Clift" <[email protected]> > To: "Greg Blomquist" <[email protected]>, "Dan Radez" <[email protected]>, > "Joseph Vlcek" <[email protected]> > Cc: "aeolus-devel" <[email protected]> > Sent: Friday, September 21, 2012 6:30:01 AM > Subject: Valid Audrey return types? > > Hi Greg/Dan/Joe, > > Am creating a (complicated) 2 node assembly at the moment. One > complication > I'm hitting is that one of the nodes needs to generate an ssh key > when > it's created, then place that on the other node as an authorized_keys > file. > > Similar to the Audrey pubkey example, but can't be pre-defined in > the XML. > > The dbup.rb script in the Audrey Wordpress example makes me think > this could be achieved by something similar. i.e. having a .rb file > that instead of returning "true" when the database setup script is > run, it returns the generated public key. > > Audrey would then pass this across to the other node. My scripting > there would see the public key in an Audrey environment variable, > then use that to create the authorized_keys file. > > Does this approach seem ok, or am I over thinking this?
The approach seems OK, but just know that I've never personally done anything like that before. So afaik, you're in uncharted territory. > > Note, I don't have a clear idea of what the valid return types are > for things listed as "returns" in deployables. (like ipaddress and > dbup). Hoping full files are ok, but kind of doubtful. Text > strings workable? Honestly, I have never tested the boundaries of what can be in a return value. But, the data is simply posted from the audrey agent to the config server and placed into a file on the config server's filesystem. So, text strings and file contents are fine. However, you'd have to read the file contents into a string before posting it to the server. I.e., there's no multipart form uploads between the agent and the config server. Binary contents would have to be base64 encoded, I would think (and decoded on the receiving side). > > Haven't seen any docs around this bit, but might have missed > them. (?) I don't that we've ever doc'd the allowable values. Just how to use them. > > All thoughts/ideas appreciated. :) Hope this helps. > > Regards and best wishes, > > Justin Clift > > -- > Aeolus Community Manager > http://www.aeolusproject.org > >
