[Puppet Users] How to determine best place to put external facts?

2017-06-02 Thread Sean
Hi, I am searching for a reasonably good method to determine where I should drop external fact files (like yaml/json files) on an arbitrary unix/linux/mac system...preferably outside of puppet. It seems different versions and install methods of puppet put the facter/facts.d directory in

[Puppet Users] Re: Puppet Apply

2017-06-02 Thread Corey Osman
I would suggest using a tool I wrote called the puppet debugger. It allows you to write little bits of code in realtime and get the results back right away. It is a wonderful tool to learn the language with. Basically just install it and run puppet debugger, than write some puppet code.

Re: [Puppet Users] Order two calls of parameterized classes

2017-06-02 Thread Matthew Kennedy
You got it. Note that the arrow operators do exactly the same thing as the before and require metaparameters so you could have add one of those to one of the resources. Personally when a manifest has resources that are more serial or scripty I prefer the obvious expression adding a chain of ->'d

Re: [Puppet Users] Order two calls of parameterized classes

2017-06-02 Thread Ugo Bellavance
> > As simple as that? Great. I tried it and the reload did run after the > add, but I can't see from the logs that the reload has the add as > dependency. > > With your suggested change: > > Debug: >

[Puppet Users] Re: Puppet Apply

2017-06-02 Thread Ugo Bellavance
On Friday, June 2, 2017 at 9:10:00 AM UTC-4, Fairouz el ouazi wrote: > > HI, >First thank you for your response : My problem is a little bit > complicated . ..and it took 's me one week to know if puppet is the > device management that i m looking for . To be more clear ...there's an

[Puppet Users] Re: Puppet Apply

2017-06-02 Thread Fairouz el ouazi
HI, First thank you for your response : My problem is a little bit complicated . ..and it took 's me one week to know if puppet is the device management that i m looking for . To be more clear ...there's an existing platform that manage devices ( IOT devices ) it 's an application that

[Puppet Users] Re: Puppet Apply

2017-06-02 Thread Ugo Bellavance
On Friday, June 2, 2017 at 8:06:28 AM UTC-4, Ugo Bellavance wrote: > > > > On Friday, June 2, 2017 at 4:49:13 AM UTC-4, Fairouz el ouazi wrote: >> >> HI, >> >>I'm still a beginner in Puppet , and i want to know the advantages and >> in winch cases we have to use Puppet in standalone

Re: [Puppet Users] Order two calls of parameterized classes

2017-06-02 Thread Ugo Bellavance
On Thursday, June 1, 2017 at 11:39:26 PM UTC-4, Matthew Kennedy wrote: > > Because puppet is declarative you can only have one instance of a resource > with a particular title in the catalog. This means you cannot have two > instances of a class in the catalog (though you can include a class

Re: [Puppet Users] Order two calls of parameterized classes

2017-06-02 Thread Ugo Bellavance
On Thursday, June 1, 2017 at 6:08:01 PM UTC-4, Pete Brown wrote: > > The require meta parameter will do that. > Ok, but how to formulate it with the variables? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group

[Puppet Users] Re: Puppet Apply

2017-06-02 Thread Ugo Bellavance
On Friday, June 2, 2017 at 4:49:13 AM UTC-4, Fairouz el ouazi wrote: > > HI, > >I'm still a beginner in Puppet , and i want to know the advantages and > in winch cases we have to use Puppet in standalone version ? >All that i found is that :single host method on puppet can be the best

[Puppet Users] Puppet Apply

2017-06-02 Thread Fairouz el ouazi
HI, I'm still a beginner in Puppet , and i want to know the advantages and in winch cases we have to use Puppet in standalone version ? All that i found is that :single host method on puppet can be the best way to get started with puppet language , and the best way to quickly develop

Re: [Puppet Users] List all hosts

2017-06-02 Thread R.I. Pienaar
> On 31 May 2017, at 16:05, Daniel Scott wrote: > >> On Wednesday, 31 May 2017 14:36:33 UTC+1, R.I. Pienaar wrote: >> >> >> On Wed, May 31, 2017, at 15:33, Daniel Scott wrote: >> > Hi, >> > >> > I'm looking for a way to list all hosts known by a puppetserver