generate a local file during execute of my charm

Sameer Zeidat sameerz at yahoo.com
Mon Aug 4 23:15:29 UTC 2014


Your charm can inject a public ssh key in root's authorized keys file and use the private key in any of your hooks to scp files around.

Regards,
Sameer

-----Original Message-----
From: "Gaurav Pandit" <pandit.gaurav at gmail.com>
Sent: ‎4/‎08/‎2014 11:14 PM
To: "Ilisia Felane" <felane.ili at gmail.com>
Cc: "Juju email list" <juju at lists.ubuntu.com>
Subject: Re: generate a local file during execute of my charm

I am looking for exactly the same functionality.   
In my case, I am looking for ways to copy a predefined config file on to, say machine 1 from somewhere locally (machine 0?). Currently, I am using "here-doc" in the shell script to create such config files during the charm install/relationship change steps, but being able to copy it without having to put it up on the internet can be very helpful.

Thanks
Gaurav
On Jul 30, 2014 5:30 AM, "Ilisia Felane" <felane.ili at gmail.com> wrote:

Hi, 


I create a charm to deploy a application, but I need to recover information about installing as OS installed, some open port, and other system information. 

Is it possible to get this information on my machine running juju? If yes, how can I get this information automatically on my provision machine during the execution of my charm ?


best regards, 

Felane


--
Juju mailing list
Juju at lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20140805/171ee1e1/attachment.html>


More information about the Juju mailing list