On Fri, Mar 18, 2016 at 8:57 AM, Tom Barber <[email protected]> wrote: > c) upload files with actions. Currently for some things I need to pass in > some files then trigger an action on the unit upon that file. It would be > good to say path=/tmp/myfile.xyz and have the action upload that to a place > you define.
Have you taken a look at resources in the upcoming 2.0? You define resources in your charm metadata and use "juju attach" to upload them to the controller (e.g. "juju attach my-service/0 my-resource=/tmp/myfile.xyz"). * Then charms can use the "resource-get" hook command to download the resource file from the controller. "resource-get" returns the path where the downloaded file was saved. -eric * You will also upload the resources to the charm store for charm store charms. -- Juju mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju
