[Puppet Users] Custom providers and feature confinement

2013-10-30 Thread David Campos
Hello all, I have been searching through previous posts and documentation and I have not been able to find out what is happening with my provider... I have declared a custom provider that depends on a custom feature (in fact, in a set) that are not present at the machine but installed during t

Re: [Puppet Users] Developing custom type/providers for multiple OS

2013-06-03 Thread David Campos
t;> >> Something like: >> >> newparam(:provider) do >> munge do |value| >> "#{Facter.value(:operatingsystem)}_#{self[:provider]}" >> end >> end >> >> If that doesn't work, you might have to hack it into the type initiali

Re: [Puppet Users] Developing custom type/providers for multiple OS

2013-05-30 Thread David Campos
to > see how they go between Windows and other OS's. > > Good Luck! > > Trevor > > > On Wed, May 29, 2013 at 5:40 AM, David Campos > > > wrote: > >> Hello all, >> >> I am developing a few custom providers for some features that I need into &g

[Puppet Users] Developing custom type/providers for multiple OS

2013-05-29 Thread David Campos
Hello all, I am developing a few custom providers for some features that I need into my system (such as dealing with different zipped files or generating some JSON data based on OS files) and I have hit into a question about "how to do this for multiple OS?" Lets focus into the zipped file pro

Re: [Puppet Users] Puppet 3.1.1, hiera and parameter autoload

2013-05-03 Thread David Campos
tools as foreman (until I find a better way through ENC). On Thursday, May 2, 2013 6:02:43 PM UTC+2, Nan Liu wrote: > > On Thu, May 2, 2013 at 10:32 AM, David Campos > > > wrote: > >> Hello all, >> >> I don't know if I have hit a strange bug or it's

[Puppet Users] Puppet 3.1.1, hiera and parameter autoload

2013-05-02 Thread David Campos
Hello all, I don't know if I have hit a strange bug or it's just an incorrect interpretation about how parameter autoloading works... Today I have been searching, analysing and about to hit my head against a wall trying to figure out why a call to hiera_hash was not merging data from top level

Re: [Puppet Users] Re: Migration from Puppet 2.6.7 to 3.0.0 issues

2012-10-15 Thread David Campos
I have also set preferred_serialization_format = yaml but I did need it in order to be able to use puppet at windows machines (they did not accept PSON due an OutOfMemory exception. I'll try without that setting. On Wednesday, October 10, 2012 10:14:22 PM UTC+2, thbe wrote: > > Hi Josh, > > 201

[Puppet Users] Re: Migration from Puppet 2.6.7 to 3.0.0 issues

2012-10-10 Thread David Campos
Nobody has found this issue? On Monday, October 8, 2012 5:08:33 PM UTC+2, David Campos wrote: > > Hi all, > > I'm trying to migrate our configuration from puppet 2.6.7 to 3.0.0 but I > am having a strange issue whilst applying the catalog. > > Error: Could not re

[Puppet Users] Migration from Puppet 2.6.7 to 3.0.0 issues

2012-10-08 Thread David Campos
Hi all, I'm trying to migrate our configuration from puppet 2.6.7 to 3.0.0 but I am having a strange issue whilst applying the catalog. Error: Could not retrieve catalog from remote server: Could not intern from > yaml: allocator undefined for Proc > /usr/lib/ruby/1.8/yaml.rb:133:in `transfer'

[Puppet Users] Re: Custom providers/types correct location

2012-07-25 Thread David Campos
Excuse me, I did just type from my memory without an exact look to path :). The folder structure that happens to be deployed is the following: Glassfish dir PUPPET\CONFDIR\MODULES\GLASSFISH\LIB \---puppet +---provider | | asadmin.rb | | | +---application | |

[Puppet Users] Custom providers/types correct location

2012-07-24 Thread David Campos
Hello all, I do not know whether I have hit a bug or it is just a misconception about puppet configuration but I have found a strange inconsistency setting custom providers and types. Theoretically, custom providers and types can be located at a folder named /lib/puppet/providers or /lib/puppe

Re: [Puppet Users] Puppet master file serve

2012-05-21 Thread David Campos
Thanks, On Tuesday, May 15, 2012 4:56:11 PM UTC+2, David Campos wrote: > > I knew about that features. When a file is placed a files and referenced > through puppet: is automatically served to the agent. > Either through puppet master or apply. > > My problem came because

Re: [Puppet Users] Puppet master file serve

2012-05-15 Thread David Campos
I knew about that features. When a file is placed a files and referenced through puppet: is automatically served to the agent. Either through puppet master or apply. My problem came because we have a Nexus server that serves any external file (we also try to store there our supported versio

[Puppet Users] Puppet master file serve

2012-05-15 Thread David Campos
Hello all, I am sure that many of my questions may be answered in other topics or into the documentation but I can not clear my mind about how to perform some tasks that I want to accomplish. To get you into context, I have been developing some puppet configuration files that deal with deploym

Re: [Puppet Users] puppet module... remove?

2012-05-11 Thread David Campos
I reply myself... --force is my friend :) On Friday, May 11, 2012 3:15:39 PM UTC+2, David Campos wrote: > > From the documentation I have found that, theoretically, I can install a > module from a tar ball or zip. I need that feature because I have to > configure a master that, at

Re: [Puppet Users] puppet module... remove?

2012-05-11 Thread David Campos
>From the documentation I have found that, theoretically, I can install a module from a tar ball or zip. I need that feature because I have to configure a master that, at the present time, is stored in an offline machine (it should serve modules, libraries and facts related with our local envir

[Puppet Users] Re: Problem matching nodes with regular expressions and inheritance

2012-05-11 Thread David Campos
pointing it out. On Friday, May 11, 2012 12:15:07 AM UTC+2, jcbollinger wrote: > > > > On May 10, 12:54 pm, David Campos > wrote: > > Hello all, > > > > I am having a strange problem matching a hierarchy of nodes like the > >

[Puppet Users] Problem matching nodes with regular expressions and inheritance

2012-05-10 Thread David Campos
Hello all, I am having a strange problem matching a hierarchy of nodes like the following one: node basenode { > ... > } > node /^diaspora(?:-\d+)?$/ inherits basenode { > ... > } > node /^diaspora15(?:-\d+)?$/ inherits diaspora { > ... > } When I try to instantiate a node that should m

[Puppet Users] Re: Custom providers - instalation and usage of an executable

2011-11-07 Thread David Campos
execution stage, the check would be successful and the command would be executed. Otherwise, two runs will be necessary at first provision :) On 28 oct, 14:47, jcbollinger wrote: > On Oct 27, 2:35 pm, Stefan Schulte > wrote: > > > On Thu, Oct 27, 2011 at 08:00:05AM -0700, David

[Puppet Users] Custom providers - instalation and usage of an executable

2011-10-27 Thread David Campos
Hello all, I am facing a problem while dealing with a custom provider and its requirements. I have included a custom provider (with its custom types) into my puppet deployment that is expected to deal with all tasks related to glassfish. This provider is able to create domains, deploy applications