Re: [Puppet-dev] Re: using commands with generated path

2015-12-28 Thread Trevor Vaughan
Actually, I'm 90% sure that John is correct in that the munging and validation hooks run on the server. Corey, you can snag the learning type/provider that I pushed into the forge and it should print everything to the logs appropriately. https://forge.puppetlabs.com/onyxpoint/learning_custom_type

Re: [Puppet-dev] Re: using commands with generated path

2015-12-15 Thread John Bollinger
On Monday, December 14, 2015 at 10:29:23 AM UTC-6, Felix Frank wrote: > > Hi, > > On 12/14/2015 04:12 PM, John Bollinger wrote: > [...] > > Nope. All the compiler does is make sure that all attributes you specify > are available for the resource type in question. > > All hooks are invoked by

Re: [Puppet-dev] Re: using commands with generated path

2015-12-14 Thread Felix Frank
Hi, On 12/14/2015 04:12 PM, John Bollinger wrote: > So if I wanted to run some validation in the type code, where does > that get run? node or master? > > > > Validation and munging hooks for property and parameter values > definitely run on the master. If you try to specify an invali

[Puppet-dev] Re: using commands with generated path

2015-12-14 Thread John Bollinger
On Friday, December 11, 2015 at 3:09:49 PM UTC-6, Corey Osman wrote: > > > > On Friday, December 11, 2015 at 10:49:40 AM UTC-8, John Bollinger wrote: >> >> >> >> On Friday, December 11, 2015 at 11:08:08 AM UTC-6, Corey Osman wrote: >>> >>> Hi, >>> >>> I am curious on a few things >>> >>> 1. Is th

[Puppet-dev] Re: using commands with generated path

2015-12-11 Thread Corey Osman
On Friday, December 11, 2015 at 10:49:40 AM UTC-8, John Bollinger wrote: > > > > On Friday, December 11, 2015 at 11:08:08 AM UTC-6, Corey Osman wrote: >> >> Hi, >> >> I am curious on a few things >> >> 1. Is the custom type code run on the node or master, makes sense the >> provider is but not s

[Puppet-dev] Re: using commands with generated path

2015-12-11 Thread John Bollinger
On Friday, December 11, 2015 at 11:08:08 AM UTC-6, Corey Osman wrote: > > Hi, > > I am curious on a few things > > 1. Is the custom type code run on the node or master, makes sense the > provider is but not sure about the type code. > As I understand it, a custom type's own code -- or at least