Re: Hooking into `charm build` to download Puppet dependencies

2016-12-13 Thread Cory Johns
To put the Puppetfile contents in layers.yaml would mean that your tactic would need to process layer.yaml and would need to be a subclass of the existing LayerYAML tactic and ensure that all of the existing functionality would be invoked. Additionally, I suspect that the custom tactic would

Re: Hooking into `charm build` to download Puppet dependencies

2016-12-09 Thread Merlijn Sebrechts
This is the Puppetfile: https://github.com/IBCNServices/tengu-charms/blob/openvpn/charms/layers/openvpn/files/puppet/Puppetfile I use the Puppetfile since that's the way that most modules define their dependencies. I'd like to have a puppet layer that requires the least amount of porting/adapting

Re: Hooking into `charm build` to download Puppet dependencies

2016-12-09 Thread Marco Ceppi
There's a couple of things to unpack here. On Thu, Dec 8, 2016 at 10:18 PM Merlijn Sebrechts < merlijn.sebrec...@gmail.com> wrote: > Hi > > > So, I've managed to get this working. However, not exactly the way I want > it. My charm is made like this: > > layer:openvpn > layer:puppet > layer:basic

Re: Hooking into `charm build` to download Puppet dependencies

2016-12-08 Thread Merlijn Sebrechts
Hi So, I've managed to get this working. However, not exactly the way I want it. My charm is made like this: layer:openvpn layer:puppet layer:basic layer:openvpn provides a Puppetfile that says which dependencies need to be downloaded by the tactic., This works if I put the tactic in

Re: Hooking into `charm build` to download Puppet dependencies

2016-11-25 Thread Marco Ceppi
That we don't have. Best to check then raise an exception if an external dependency does not exist (with a nice error message) On Fri, Nov 25, 2016, 4:42 AM Merlijn Sebrechts wrote: > Wow, that looks really cool! > > Any best-practices of how the dependencies of a

Re: Hooking into `charm build` to download Puppet dependencies

2016-11-25 Thread Merlijn Sebrechts
Wow, that looks really cool! Any best-practices of how the dependencies of a tactic should be installed? 2016-11-25 1:19 GMT+01:00 Marco Ceppi : > charm build uses tactics during compilation to process files and tasks. > These tactics are pluggable, which allows you

Re: Hooking into `charm build` to download Puppet dependencies

2016-11-24 Thread Marco Ceppi
charm build uses tactics during compilation to process files and tasks. These tactics are pluggable, which allows you to create custom tactics in your layer for things like you've desctibed. We have an example of this in the Kubernetes charms, where a custom layer tactic is used to seed static

Hooking into `charm build` to download Puppet dependencies

2016-11-24 Thread Merlijn Sebrechts
Hi all Is it possible to hook a tool like librarian-puppet into the `charm build` process so I can download Puppet dependencies at build time and ship them with a Charm? Kind regards Merlijn -- Juju mailing list Juju@lists.ubuntu.com Modify