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" <[email protected]>
Sent: ‎4/‎08/‎2014 11:14 PM
To: "Ilisia Felane" <[email protected]>
Cc: "Juju email list" <[email protected]>
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" <[email protected]> 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
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju
-- 
Juju mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju

Reply via email to