Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Adding a parameter to a custom Puppet type/provider
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Gonzalo Servat  
View profile  
 More options Nov 15 2011, 12:48 am
From: Gonzalo Servat <gser...@gmail.com>
Date: Tue, 15 Nov 2011 16:48:19 +1100
Local: Tues, Nov 15 2011 12:48 am
Subject: Adding a parameter to a custom Puppet type/provider

Hi All,

I've downloaded a Puppet module and I'm trying to add a parameter to it by
editing lib/puppet/type/<resource>.rb. I simply added:

    newproperty(:pcfree) do
        desc "My description here"
    end

In the corresponding file in lib/puppet/provider, I do something with
:pcfree.

Whenever I call the resource from Puppet with my new parameter, it keeps
saying "Invalid parameter pcfree".

Do I have to define the new parameter in any other file?

Thanks in advance.

- Gonzalo


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gonzalo Servat  
View profile  
 More options Nov 15 2011, 1:10 am
From: Gonzalo Servat <gser...@gmail.com>
Date: Tue, 15 Nov 2011 17:10:51 +1100
Local: Tues, Nov 15 2011 1:10 am
Subject: Re: Adding a parameter to a custom Puppet type/provider

... and I just found this (
http://docs.puppetlabs.com/guides/troubleshooting.html):
err: Could not retrieve catalog: Invalid parameter ‘foo’ for type ‘bar’

When you are developing new custom types, you should restart both the
puppetmasterd and the puppetd before running the configuration using the
new custom type. The pluginsync feature will then synchronise the files and
the new code will be loaded when both daemons are restarted.

Restarted puppetmaster and it's now OK. Caused me many hours of grief!!

- Gonzalo


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jason Koppe  
View profile  
 More options Dec 6 2011, 1:22 pm
From: Jason Koppe <jason.robert.ko...@gmail.com>
Date: Tue, 6 Dec 2011 10:22:09 -0800 (PST)
Local: Tues, Dec 6 2011 1:22 pm
Subject: Re: Adding a parameter to a custom Puppet type/provider
restarting the puppet master didn't help me.

On Nov 15, 12:10 am, Gonzalo Servat <gser...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jason Koppe  
View profile  
 More options Dec 6 2011, 1:34 pm
From: Jason Koppe <jason.robert.ko...@gmail.com>
Date: Tue, 6 Dec 2011 10:34:47 -0800 (PST)
Local: Tues, Dec 6 2011 1:34 pm
Subject: Re: Adding a parameter to a custom Puppet type/provider
http://pastie.org/private/t9nl5wa91bd6rx1afad7sq is a pastie of my
changes to https://github.com/puppetlabs/puppet-lvm and the error i'm
seeing is

err: Could not retrieve catalog from remote server: Error 400 on
SERVER: Invalid parameter physical_volume at file.pp:26 at node

On Dec 6, 12:22 pm, Jason Koppe <jason.robert.ko...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stefan Schulte  
View profile  
 More options Dec 7 2011, 7:01 am
From: Stefan Schulte <stefan.schu...@taunusstein.net>
Date: Wed, 7 Dec 2011 13:01:20 +0100
Local: Wed, Dec 7 2011 7:01 am
Subject: Re: [Puppet Users] Re: Adding a parameter to a custom Puppet type/provider

On Tue, Dec 06, 2011 at 10:34:47AM -0800, Jason Koppe wrote:
> http://pastie.org/private/t9nl5wa91bd6rx1afad7sq is a pastie of my
> changes to https://github.com/puppetlabs/puppet-lvm and the error i'm
> seeing is

> err: Could not retrieve catalog from remote server: Error 400 on
> SERVER: Invalid parameter physical_volume at file.pp:26 at node

Parameter validation happens on your puppet master so I guess you have
to update

    /var/lib/puppet/lib/puppet/type/logical_volume.rb

on your master first.

-Stefan

  application_pgp-signature_part
< 1K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jason Koppe  
View profile  
 More options Feb 11, 10:31 am
From: Jason Koppe <jason.robert.ko...@gmail.com>
Date: Sat, 11 Feb 2012 09:31:36 -0600
Local: Sat, Feb 11 2012 10:31 am
Subject: Re: [Puppet Users] Re: Adding a parameter to a custom Puppet type/provider

I do have /var/lib/puppet/lib/puppet/type/logical_volume.rb on my puppet
master and I still get the same error.

On Wed, Dec 7, 2011 at 6:01 AM, Stefan Schulte <

--
Jason Koppe
Jason.Robert.Ko...@gmail.com
Cell (210) 445-8242

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stefan Schulte  
View profile  
 More options Feb 11, 11:21 am
From: Stefan Schulte <stefan.schu...@taunusstein.net>
Date: Sat, 11 Feb 2012 17:21:19 +0100
Local: Sat, Feb 11 2012 11:21 am
Subject: Re: [Puppet Users] Re: Adding a parameter to a custom Puppet type/provider
Can you provide your resource definition where you use the
logical_volume type?

-Stefan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jason Koppe  
View profile  
 More options Feb 12, 4:06 pm
From: Jason Koppe <jason.robert.ko...@gmail.com>
Date: Sun, 12 Feb 2012 13:06:46 -0800 (PST)
Local: Sun, Feb 12 2012 4:06 pm
Subject: Re: Adding a parameter to a custom Puppet type/provider
Added to the pastie: http://pastie.org/private/em9dve6walcxyfjyssvya

On Feb 11, 10:21 am, Stefan Schulte <stefan.schu...@taunusstein.net>
wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »