Displaying 20 results from an estimated 300 matches similar to: "help writing types/provider"
2012 Nov 07
2
Custom Type & Invalid Parameter...
Hi All
As per my various other Posts, I''m writing a customer type and provider set
for NetApp support..
My current problem is that the ''puppet device -v'' run keeps failing with:
Error: Could not retrieve catalog from remote server: Error 400 on SERVER:
> Invalid parameter aggregate at /etc/puppet/manifests/site.pp:30 on node
> actint-star-nactl01
>
Now
2007 Sep 24
3
Custom type
Hi.
I have a small problem with the custom type I am working on. I define
method ''evaluate'' which is called after all data is been collected. Here
it is:
module Puppet
newtype(:test) do
newparam(:name) do
end
newparam(:listen) do
defaultto "silent"
end
def evaluate
puts "evaluating..."
return super.evaluate
end
2013 Jul 13
10
username/password combo for custom provider (couchbase)
Hi,
I''m trying to program custom type for managing Couchbase buckets.
Problem is that every RW operation to Couchbase cluster (creating,
deleting, resizing bucket) requires admin privileges (username/password).
Do you have any suggestion how should I pass the username/password to
provider? If I make it a param, then every resource of type
''couchbucket'' will need to
2010 Aug 23
4
Trouble making a pure ruby puppet type
I''m making a cups manager type and I''m having trouble figuring out where I should parameters and where I should use properties. The file is at http://github.com/kc7zzv/puppet-cups_printer/blob/master/lib/puppet/type/cups_printer.rb .
I was accidentally using "newproperty" and "newparameter" interchangeably, and I''d really like to know which I should
2010 Feb 15
3
My first type/provider - does nothing...
Hi list,
i tried to write my first type and provider that should create logical
volumes. Seems like i''m missing something as i get nothing when i use
it: No errors and no logical volume :-(
type/logicalvolume.rb:
=================
Puppet::Type.newtype(:logicalvolume) do
@doc = "Manage logical volumes"
ensurable
newparam(:lvname) do
desc "The logcal
2006 Mar 29
1
model questions about using ?
I have an employee model. I want to be able to say:
employee.isAdmin? in my view
so in the model I have:
def isAdmin?
if self.role.name == "Administrator"
true
end
end
When run I get a blank screen, no errors or anything, whats wrong with
the isAdmin? method? If I take out the if self... line it is returning
true.
--
Posted via http://www.ruby-forum.com/.
2009 Sep 10
1
trouble with custom type on 0.24.8
I''m having trouble getting a simple custom type to work.
Clients are giving me the following error:
"Could not retrieve catalog: Could not find resource type zypper_repo
at /etc/puppet/manifests/nodes/mgt.pp:33 on node <host.fqdn>"
The custom type is present in the /var/lib/puppet/lib/puppet/type
directory on both clients and server (via pluginsync), but it''s
2006 Aug 05
2
PATCH: provide replace parameter for sourced files
Following patch for pfile.rb and pfile/source.rb allows the user to
set a replace => false parameter on a file sourced by puppet, but not
replaced if checksums do not match. This is for cases in which it is
desired to distribute initial "bootstrap" files and ensure future
existence, yet allow them to be modified on the node.
RTS
--- pfile.rb~ Wed Aug 2 04:47:05 2006
+++ pfile.rb
2013 Feb 25
2
defaultto in hash property not obeyed
Hi.
I seem to have the following problem. This is a code from my custom type:
newproperty(:kernel_options) do
desc "Kernel options for installation boot."
defaultto {}
def insync?(is)
# @should is an Array. see lib/puppet/type.rb insync?
should = @should.first
# if members of hashes are not the same, something
# was added or removed from
2013 May 01
0
Re: Error testing deploying Grizzly
I believe the error indicates that hiera was installed as a rubygem which
is not supported on Puppet 3.x. Maybe the error will go away if you remove
the hiera gems?
I think I have gotten around it by adding ''require rubygems'' to the puppet
executable.
I''m copying the puppet-users mailing list b/c I am guessing this is a
common problem.
On Wed, May 1, 2013 at 12:35
2007 Mar 01
8
upgrading puppet?
How are people upgrading puppet itself on their hosts that run puppetd?
Can puppet be used to upgrade to a new puppet package via gem, rpm or
some other package provider? How do you handle restarting?
Just hoping theres a better way than "ssh and a for loop" or having to
have another configuration management system installed.
2017 Jun 18
2
different brick using the same port?
Hi, all
I found two of my bricks from different volumes are using the same port 49154 on the same glusterfs server node, is this normal?
Status of volume: home-rabbitmq-qa
Gluster process TCP Port RDMA Port Online Pid
------------------------------------------------------------------------------
Brick 10.10.1.100:/glusterfsvolumes/home/ho
me-rabbitmq-qa/brick
2012 Sep 05
4
Custom type obligatory field?
Hi.
I''ve been trying to develop a module for managing Cobbler from puppet.
So, I need a custom type - cobblerdistro, which will fetch ISO from
http, unpack it at desired destination and register distro with Cobbler.
I have one issue with ensure => absent situation.
First of all, here is my type:
<code>
# cat type/cobblerdistro.rb
Puppet::Type.newtype(:cobblerdistro) do
@doc
2013 Feb 01
3
Cannot get puppetlabs-haproxy to do what I want
I''ve been having a mess of a time using this module, which stinks because
its behavior is EXACTLY what I am looking for... whenever I bootstrap new
rabbitMQ nodes I want to add them to our HAProxy instance.
Here''s my relevant site.pp entries:
node /^rabbit.*/ inherits basenode {
@@haproxy::balancermember { $fqdn:
listening_service => ''messaging00'',
2017 Jun 19
0
different brick using the same port?
On Sun, Jun 18, 2017 at 1:40 PM, Yong Zhang <hiscal at outlook.com> wrote:
> Hi, all
>
>
>
> I found two of my bricks from different volumes are using the same port
> 49154 on the same glusterfs server node, is this normal?
>
No it's not.
Can you please help me with the following information:
1. gluster --version
2. glusterd log & cmd_history logs from both
2017 Jun 19
1
different brick using the same port?
Isn't this just brick multiplexing?
On June 19, 2017 5:55:54 AM PDT, Atin Mukherjee <amukherj at redhat.com> wrote:
>On Sun, Jun 18, 2017 at 1:40 PM, Yong Zhang <hiscal at outlook.com> wrote:
>
>> Hi, all
>>
>>
>>
>> I found two of my bricks from different volumes are using the same
>port
>> 49154 on the same glusterfs server node, is
2011 Oct 24
6
Scalability, Dashboard/Foreman, and MCollective
I''ve been trying to find information, suggestions, etc. for how to combine
scaling Puppet with the use of management tools like Dashboard/Foreman and
MCollective. Our current thinking for an initial deployment is two VMs as
Puppet Master worker nodes fronted by a pair of NetScalers. However, I''m not
sure how to go about implementing Dashboard or Foreman and MCollective
servers in
2015 Mar 23
2
Services supporting Kerberos and/or TLS client certificate authentication
Hello,
We're starting to use FreeIPA in house (which is awesome btw) which means
that Kerberos and TLS client certificate authentication is suddenly quite
easy. Im looking for a list of common Linux services with data on how one
can Authenticate/Authorise for these services.
* httpd support TLS client certificate authentication and Kerberos
* rabbitmq supports TLS client certificate
2013 May 29
5
mcollective setup question
I am currently trying to get mcollective 2.2.4 up and running on RHEL
6 activeqm appears to be running and bound to the correct port, I see
the server and client connections to the activemq box. However when I
run mco ping all "seems to go well" except I get "No responses
recieved" and above that I get the following log messages,
debug 2013/05/29 17:02:12: activemq.rb:233:in
2007 Jun 04
16
Puppet installation and observations
Greeting Puppeteers,
( I sent this from the wrong address so it may be a duplicate post
after moderation )
I recently discovered puppet from the debian administration site and
thought I might install it after BASHING my head against cfengine the
last 3 times I tried to install it.
I installed puppetmaster on my primary server and dropped puppet on a
couple of xen virtuals.
It worked