[Puppet-dev] Re: From foreman to my Iot Platform

2017-09-13 Thread bert hajee
I'm not sure if this is the answer to your question, but, because I don't know a lot about foreman. I do know quite a lot about Puppet and if this a Puppet related question, I guess you need to write a device type for the devices you want to manage. Here

Re: [Puppet-dev] Exists? is called before prefetching

2017-07-18 Thread bert hajee
Reid, Thanks for this direction. I will try and see if I can come up with a good PR to solve this. On Monday, 17 July 2017 23:03:54 UTC+2, Reid Vandewiele wrote: > > > > On Sunday, July 16, 2017 at 6:04:04 AM UTC-7, bert hajee wrote: >> >> Trevor, Reid, >> &g

Re: [Puppet-dev] Exists? is called before prefetching

2017-07-16 Thread bert hajee
Trevor, Reid, Thanks for taking the time to look at this. Exists should be checking the @property_hash object which is populated by > the instances method. > Something like: > def exists? > @property_hash[:ensure] == :present > end The real type does implement the exists? method by looking

[Puppet-dev] Exists? is called before prefetching

2017-07-10 Thread bert hajee
Hallo, I'm using the puppet module transition to help me out a nasty puppet definition situation. But I noticed it sometimes is not idempotent. We noticed this on a very complex custom type. To make sure the issue is a clear as can be, we extracted the minimal type/and provider to simulate thi

[Puppet-dev] Re: Getting module name in type or provider

2015-10-20 Thread bert hajee
, classes and defined types. Bert Op dinsdag 20 oktober 2015 17:58:30 UTC+2 schreef henrik lindberg: > > On 2015-16-10 18:11, bert hajee wrote: > > Hello , > > > > Is there a reliable way to get the module name inside of a custom type > > and/or a provider? reliable

[Puppet-dev] Getting module name in type or provider

2015-10-16 Thread bert hajee
works when using Puppet Apply, but when you are running Puppet on an agent this doesn't work. The ruby code on the agent is a fl;at lib directory and all module structure is gone. Any suggestions would be welcome. Regards, Bert Hajee -- You received this message because you are subscri

[Puppet-dev] Re: Announce: Hiera 2.0.0 available

2015-03-26 Thread bert hajee
Looking at the direction hiera is going, people might be interested in a yaml replacement for hiera. I've written a proof of concept (actually it's already a bit more ;-)). I'm interested in any feedback. You can find it here https://forge.puppetlabs.com/hajee/connect. A writeup of what you can

[Puppet-dev] Strange Module.nesting behaviour

2015-01-10 Thread bert hajee
Hello, I recently run into some problems trying some meta-programming with constants in a Puppet custom type. It looks like puppet does something with the Constants lookup path. I noticed this by checking the Module.nesting function. I should return an Array of the current search path for class

Re: [Puppet-dev] Idiomatic Puppet way to get global context in a instances method from a custom provider

2014-02-18 Thread bert hajee
mposite Namevars. > > A good example exists in the java_ks type > https://github.com/puppetlabs/puppetlabs-java_ks. > > Trevor > > > On Mon, Feb 17, 2014 at 4:53 PM, bert hajee > > wrote: > >> L.S, >> >> What is the idiomatic Puppet way to get global

[Puppet-dev] Idiomatic Puppet way to get global context in a instances method from a custom provider

2014-02-17 Thread bert hajee
L.S, What is the idiomatic Puppet way to get global context in a instances method for a custom provider? I’m building a custom type and provider for some Oracle items. Oracle can have multiple databases running on a system. So I need a way to tell the instances method to which database to c

[Puppet-dev] Re: Custom Provider and Metaprogramming(?) class level methods versus instance level methods

2014-02-12 Thread bert hajee
o in pre-fetch I create the connection, and I > can directly access the ldap connection in self.instances. But create and > destroy makes a call to the 'accessor' method. > > Thanks > Len > > > > > On Wednesday, February 12, 2014 9:29:07 AM UTC-5, bert hajee w

[Puppet-dev] Re: Custom Provider and Metaprogramming(?) class level methods versus instance level methods

2014-02-12 Thread bert hajee
Len, You can call a class method from an instance just like any other method with a parameter. So if you might want to consider calling it with the ldap server as a parameter. def self.ldap_connection(ldap_host) Puppet.debug("Creating new LDAP connection") unless @ldap_connection

Re: [Puppet-dev] Puppet Custom Types, the easy way

2014-02-01 Thread bert hajee
Op vrijdag 31 januari 2014 01:22:20 UTC+1 schreef Luke Kanies: > > From: bert hajee bert hajee > Reply: puppe...@googlegroups.com > puppe...@googlegroups.com > Date: January 28, 2014 at 10:44:42 PM > To: puppe...@googlegroups.com > puppe...@googlegroups.com > S

Re: [Puppet-dev] Puppet Custom Types, the easy way

2014-02-01 Thread bert hajee
Op zaterdag 1 februari 2014 02:33:41 UTC+1 schreef Trevor Vaughan: > > +100 for Type/Provider separation. > > I remember the good old days quite well and was really happy when that got > split out. > > Trevor > > The discussion seems to go in the direction of not having a provider. easy_type is b

Re: [Puppet-dev] Puppet Custom Types, the easy way

2014-01-28 Thread bert hajee
desc "Manage Oracle users in an Oracle Database via regular SQL" mk_resource_methods end Besides the description. It's actually the same for ant easy_type. Regards, Bert Hajee -- You received this message because you are subscribed to the Google Groups "Puppet Develope

Re: [Puppet-dev] Puppet Custom Types, the easy way

2014-01-28 Thread bert hajee
the indirection, the provider gives us. Love to hear your opinion about what we did. We are open to any suggestions you might have. Regards, Bert Hajee -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To unsubscribe from th

[Puppet-dev] Puppet Custom Types, the easy way

2014-01-26 Thread bert hajee
et me know if you like it. Also let me know if you don't like it or would like to see some changes. Regards, Bert hajee -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To unsubscribe from this group and stop receiving emails f