Re: [Puppet Users] Count number of (collected) external resources

2014-09-26 Thread Frederik Wagner
Hi Yanis, thanks for the hint. Sounds reasonable - I'll check it out! Bye Frederik On Fri, Sep 26, 2014 at 5:33 AM, Yanis Guenane yguen...@gmail.com wrote: On 09/25/2014 07:11 AM, Frederik Wagner wrote: Hi group, is there a way to count the number of resources of a specific type

[Puppet Users] Count number of (collected) external resources

2014-09-25 Thread Frederik Wagner
Hi group, is there a way to count the number of resources of a specific type (with a specific tag) included in the catalog? In more detail: In a manifest I collect external resources like: External::Resource | tag == 'tagged_resource' | Now I would like to know how many resources are

Re: [Puppet Users] List of properties in provider

2014-09-18 Thread Frederik Wagner
Liu nan@gmail.com wrote: On Wed, Sep 17, 2014 at 6:26 AM, Frederik Wagner fner...@gmail.com wrote: Hi everyone, currently I'm writing a custom provider to configure mailing lists. In the provider I'm writing I need to access the list of all properties (set or unset) defined in the type

[Puppet Users] List of properties in provider

2014-09-17 Thread Frederik Wagner
Hi everyone, currently I'm writing a custom provider to configure mailing lists. In the provider I'm writing I need to access the list of all properties (set or unset) defined in the type via 'newproperty'. I'm wondering if there's a way to do that. It feels strange if there wouldn't. What I

Re: [Puppet Users] package resource with pkgutil can not resolv dependencies

2014-05-08 Thread Frederik Wagner
Hi Andreas, are you sure that the mirrors for pkgutil are set correctly? (You ar using the 'pkgutil' provider on the cmdline you user 'pkgadd') Does 'pkgutil -a' list the packages? BTW: In stead of the metaparameter 'alias' I would use the 'name' parameter for the package name und 'sudo' as

Re: [Puppet Users] package resource with pkgutil can not resolv dependencies

2014-05-08 Thread Frederik Wagner
Hi Andreras, I'm not an solaris expert, but in your output I don't see the packages: CSWcas-migrateconf CSWcas-preserveconf CSWlibz1 CSWiconv CSWggettext-data So I suppose the pkgutil provider cannot acces them. You proably get an error too, when you run /opt/csw/bin/pkgutil -y -i CSWsudo

Re: [Puppet Users] package resource with pkgutil can not resolv dependencies

2014-05-08 Thread Frederik Wagner
Hi Andreas, the 'pkgutil' provider does not support the 'install_options' Parameter. So it 's not a problem of puppet here but about the underlying pkgutil configuration. The -N option is probably not what you want, since I suppose the dependencies are necessary. Sorry I'm out hier, I don't have

Re: [Puppet Users] ANNOUNCE: Puppet 2.7.0 Released

2011-06-22 Thread Frederik Wagner
Hi, thanks for the new version, I was looking forward to it since puppetcamp A'dam... Just a minor issue: Installation from the gem gives a rdoc error (on Ubunu/RHEL with ruby 1.8.7): # gem install puppet -v 2.7.0 Successfully installed puppet-2.7.0 1 gem installed

[Puppet Users] environment ENC vs cmdline

2011-06-22 Thread Frederik Wagner
Hi all, I am using puppet with an ENC script. In this scripts YAML output the environment (generally production) is set. For testing purposes I would like to start puppet runs from the cmdline of a managed host like: $ puppet agent --onetime --no-daemonize --verbose --no-splay --environment

Re: [Puppet Users] ANNOUNCE: Puppet 2.7.0 Released

2011-06-22 Thread Frederik Wagner
Fredeirk I have a cron job setup that reloads the deamon process once a week, but would like to use 2.7.0 right after upgrade. --- Martin 2011/6/22 Frederik Wagner fner...@googlemail.com Hi, thanks for the new version, I was looking forward to it since puppetcamp A'dam... Just a minor

Re: [Puppet Users] environment ENC vs cmdline

2011-06-22 Thread Frederik Wagner
Hi Nigel, ah yes, thanks. I think I just ran into the problem people were mentioning at puppetcamp... oops. Now I finally get it ;-) Thanks, Frederik On Wed, Jun 22, 2011 at 7:08 PM, Nigel Kersten ni...@puppetlabs.com wrote: On Wed, Jun 22, 2011 at 7:15 AM, Frederik Wagner fner

Re: [Puppet Users] Virtual Resources

2010-09-10 Thread Frederik Wagner
Hi Doug, On Thu, Sep 9, 2010 at 7:06 PM, Douglas Garstang doug.garst...@gmail.com wrote: Would it be safe to say that virtual resources, once defined, sort of become like a globally scoped object within the node? Ie, in one module I can require= an object defined as a virtual resource in

Re: [Puppet Users] parameterized class, external nodes?

2010-08-30 Thread Frederik Wagner
On Mon, Aug 30, 2010 at 7:07 AM, Jeff McCune j...@puppetlabs.com wrote: On Fri, Aug 27, 2010 at 2:12 PM, Frederik Wagner fner...@googlemail.com wrote: Alternatively: It seems not to be possible to set the stage metaparameter with a default value in a class definition?! something like

Re: [Puppet Users] parameterized class, external nodes?

2010-08-27 Thread Frederik Wagner
Hi, On Sat, Jul 31, 2010 at 2:43 AM, Jeff McCune j...@puppetlabs.com wrote: On Fri, Jul 30, 2010 at 5:01 PM, Alan Sparks aspa...@doublesparks.net wrote: How do you (if you can) represent a parameterized class reference in an external node YAML description (exec terminus)? -Alan You can't at

[Puppet Users] error from Puppet::Parser::Files.find_template in self defined function

2010-08-20 Thread Frederik Wagner
Hi group, today I updated puppet from 0.25.5 to 2.6.0 and I'm running into a problem of a self defined function taken from http://pastie.org/666728. It's the multi_source_template function which takes the first available template from the argument as the one to be processed. This function was

Re: [Puppet Users] error from Puppet::Parser::Files.find_template in self defined function

2010-08-20 Thread Frederik Wagner
On Fri, Aug 20, 2010 at 4:23 PM, Brice Figureau brice-pup...@daysofwonder.com wrote: On Fri, 2010-08-20 at 16:00 +0200, Frederik Wagner wrote: Hi group, today I updated puppet from 0.25.5 to 2.6.0 and I'm running into a problem of a self defined function taken from http://pastie.org/666728

[Puppet Users] Design issue (or: problem with virtual resources)

2010-04-14 Thread Frederik Wagner
Hello .*, sorry this is a bit lengthy: I'm in the progress of setting up a puppet system for our Linux cluster (SLES) and have a 'small' design question, since I'm not able to realize my ideas with capabilities of puppet as I have them in mind. At least up to now. The general setup looks like

Re: [Puppet Users] Design issue (or: problem with virtual resources)

2010-04-14 Thread Frederik Wagner
Hi Jeff, thanks for your ideas! On Wed, Apr 14, 2010 at 3:12 PM, Jeff McCune mccune.j...@gmail.com wrote: On Wed, Apr 14, 2010 at 8:33 AM, Frederik Wagner fner...@googlemail.com wrote: snip So far so good. Now my problem emerges, when a module depends on an other module. This should

Re: [Puppet Users] Design issue (or: problem with virtual resources)

2010-04-14 Thread Frederik Wagner
On Wed, Apr 14, 2010 at 4:06 PM, Frederik Wagner fner...@googlemail.com wrote: Hi Jeff, thanks for your ideas! On Wed, Apr 14, 2010 at 3:12 PM, Jeff McCune mccune.j...@gmail.com wrote: On Wed, Apr 14, 2010 at 8:33 AM, Frederik Wagner fner...@googlemail.com wrote: snip So far so good. Now

[Puppet Users] custom type/provider load error

2010-03-22 Thread Frederik Wagner
Hi .*, with the first puppet run on a freshly installed system all custom types and providers a synced. As you can see from the output for some reason puppet tries to load the providers before the types and therefore the custom provider loads throw an error. It looks like the load happens

Re: [Puppet Users] Puppet 0.25.* SLES 11 Package

2010-02-25 Thread Frederik Wagner
On Wed, Feb 24, 2010 at 3:14 PM, Haris Farooque mfha...@fleetboard.com wrote: Hello members, We are using Puppet-Server 0.24.8 with Factor (1.5.2-1.20) and Puppet 0.24.5 (for client nodes) on our SuSE Machines and its working fine. We are now planning to upgrade to latest stable release

Re: [Puppet Users] parsedfile provider documentation?

2010-02-24 Thread Frederik Wagner
$oldval with values 'ipv6' which I could reuse to set the value again. In this way an appending of values would be easy, e.g.: ... augtool set /files/etc/sysconfig/kernel/MODULES_LOADED_ON_BOOT $oldval sunrpc Thanks and bye, Frederik On Tue, Feb 23, 2010 at 1:42 PM, Frederik Wagner fner

Re: [Puppet Users] parsedfile provider documentation?

2010-02-23 Thread Frederik Wagner
Hi David, On Tue, Feb 23, 2010 at 1:09 AM, David Lutterkort lut...@redhat.com wrote: On Mon, 2010-02-22 at 10:45 +0100, Frederik Wagner wrote: MODULES_LOADED_ON_BOOT=module1 module2 My goal ist to have a type, which can append a module3 to this entry, or replace the whole list, etc. (to stay

[Puppet Users] parsedfile provider documentation?

2010-02-22 Thread Frederik Wagner
Hi .*, I'm looking for a more or less thorough documentation of the usage of the parsedfile provider. I'm already scanning through all the existing providers but some open questions remain. In particular I want to write a provider editing the /etc/sysconf/ files, in particular I need to alter

Re: [Puppet Users] Iterating Arrays using loop

2010-02-18 Thread Frederik Wagner
Hi Haris, On Thu, Feb 18, 2010 at 12:33 PM, Haris Farooque mfha...@fleetboard.com wrote: Dear members, Is it possible to iterate arrays ? Loops will definitely solve this, but i don't know how to do it in puppet. waiting for suggestions and comments unluckily there is no direct loop to do

Re: [Puppet Users] Iterating Arrays using loop

2010-02-18 Thread Frederik Wagner
On Thu, Feb 18, 2010 at 1:29 PM, Peter Meier peter.me...@immerda.ch wrote: On 18/02/10 11:14 PM, Frederik Wagner wrote: unluckily there is no direct loop to do this, puppets array (and hash) handling is rather rudimentary. A hash construct will probably be present in the next major release

Re: [Puppet Users] custom function load

2010-02-15 Thread Frederik Wagner
will be the winner? Is is load alphanumerically sorted? Thanks anyway and bye, Frederik On Mon, Feb 15, 2010 at 5:48 AM, Dan Bode d...@reductivelabs.com wrote: Hi Frederik, On Fri, Feb 12, 2010 at 4:13 AM, Frederik Wagner fner...@googlemail.com wrote: Hi again, reading the documentation about custom

Re: [Puppet Users] virtual resource realizing by require?

2010-02-12 Thread Frederik Wagner
Hi again, On Thu, Feb 11, 2010 at 11:12 AM, Frederik Wagner fner...@googlemail.com wrote: On Thu, Feb 11, 2010 at 10:42 AM, Alan Barrett a...@cequrux.com wrote: On Tue, 09 Feb 2010, Frederik Wagner wrote: I just tried using the define, and hit a problem which I would avoid (and actually need

[Puppet Users] custom function load

2010-02-12 Thread Frederik Wagner
Hi again, reading the documentation about custom function distribution http://reductivelabs.com/trac/puppet/wiki/PluginsInModules, I don't understand the following: Normally custom per module facts, types, providers and functions are distributed to the puppet hosts when they are in a the modules

Re: [Puppet Users] Re: virtual resource realizing by require?

2010-02-12 Thread Frederik Wagner
Hi John, perfect, thanks! In the meantime I already found the flaw in the before mentioned simple extension of the realize function: The (virtual) requirements of virtual resources are evaluated, even if the resource itself is not realized. E.g. just including the following class test::virtual

Re: [Puppet Users] virtual resource realizing by require?

2010-02-11 Thread Frederik Wagner
On Thu, Feb 11, 2010 at 10:42 AM, Alan Barrett a...@cequrux.com wrote: On Tue, 09 Feb 2010, Frederik Wagner wrote: I just tried using the define, and hit a problem which I would avoid (and actually need to avoid) by using the not implemented feature. Realizing the virtual define across modules

Re: [Puppet Users] virtual resource realizing by require?

2010-02-09 Thread Frederik Wagner
Hi Aurelien, On Tue, Feb 9, 2010 at 9:32 AM, Aurelien Degremont aurelien.degrem...@cea.fr wrote: Frederik Wagner a écrit : Hi .*, I'm wondering if there is a way to have a virtual resource realize other virtual resources which it requires. Background: I want to create a module which

Re: [Puppet Users] virtual resource realizing by require?

2010-02-09 Thread Frederik Wagner
On Tue, Feb 9, 2010 at 10:55 AM, Aurelien Degremont aurelien.degrem...@cea.fr wrote: Frederik Wagner a écrit : Hi Aurelien, On Tue, Feb 9, 2010 at 9:32 AM, Aurelien Degremont aurelien.degrem...@cea.fr wrote: Frederik Wagner a écrit : Hi .*, I'm wondering if there is a way to have

Re: [Puppet Users] virtual resource realizing by require?

2010-02-09 Thread Frederik Wagner
On Tue, Feb 9, 2010 at 11:35 AM, Alan Barrett a...@cequrux.com wrote: On Tue, 09 Feb 2010, Frederik Wagner wrote: @file{/mountpoint: ensure = directory } @mount{/mountpoint: ..., require = File[/mountpoint] } in some other class: Mount| title == /mountpoint | I would

[Puppet Users] virtual resource realizing by require?

2010-02-08 Thread Frederik Wagner
Hi .*, I'm wondering if there is a way to have a virtual resource realize other virtual resources which it requires. Background: I want to create a module which provides all possible mountpoints from a NAS Filer as virtual resources, like @mount{xyz}. These mounts depend on some directory which