Displaying 20 results from an estimated 200 matches similar to: "Custom Type & Invalid Parameter..."
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
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 Dec 02
7
Stuck trying to boot Xen 4.3 on Arm Midway
I am trying to extract and combine the various pieces of information found in
[1] and its sub-pages and the Xen in-tree documentation in order to make xen
boot (potentially non-smp without some later changes). But since I am not
familiar enough with Arm I think I am stuck doing something wrong.
I compiled the hypervisor with debug and early printk for midway and use the
xen.bin file (I could get
2011 Jan 21
6
help writing types/provider
I''ve almost finished a pretty simple type/provider to manage
RabbitMQ users and virtual hosts.
I''m using the ''ensurable'' keyword in my type to save a bit of boilerplate.
Type is below (the provider is just a wrapper around the ''rabbitmqctl''
command.
Have a feeling there''s a developer guide somewhere I haven''t found
(been
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
2010 Jun 23
0
Custom Type & Provider - param not working
I have created a custom type and provider. I wanted to go back and
add in a little more functionality so I wanted to give it a new
parameter. So where I declare the type I added
newparam(:recurse) do
newvalues(:true, :false)
defaultto :false
end
No matter what I set the param to in my pp file accessing this param
using @resource[:recurse] it is always nil. I have tried not doing
any
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
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 Sep 13
27
[windows server 2008 r2] puppet errors in 3.3.0 on exchange database servers
Hi,
i recently updated our windows 2008 r2 servers to puppet 3.3.0 .
Im getting the following error* (only on our exchange 2010 db servers)*ever since:
LevelMessageSourceFileLineTimeerrCould not retrieve local facts: undefined
method `gsub'' for nil:NilClassPuppet13.09.2013 15:12 CESTerrFailed to apply
catalog: Could not retrieve local facts: undefined method `gsub'' for
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
2010 May 17
3
Writing a properly-formed custom type (configxml)
Please hold my hand.
After studying the wiki, several unofficial pages, various mailing list entries, and the operation of the "iptables" type as found on the net, I have created a custom type, lovingly named ``configxml''''.
It updates attributes on the first element matching a supplied XPath in a given XML file. The first use case is configuring Atlassian JIRA to use
2013 Sep 18
0
Some php5 extensions not installed until a second run
Hi, I''ve inherited a puppet setup for automating php installation and
extension management. We''re on Debian and we''ve encountered a strange
issue that I''ve traced down back to puppet I think. I''ve stripped back the
configuration and made the problem reproducible, logs and config pasted
below.
1. php5-common, php5-memcache, and php5-mysql are all
2008 Jan 31
0
Realtime device update weirdness
Hello,
We use Asterisk Realtime for our billing software. 200+ installations of Asterisk with Realtime, but I see this for the first time.
Asterisk 1.4.17, Addons 1.4.5, No patches, no NAT - just plain simple installation.
With debug I can see:
[Jan 30 22:38:21] DEBUG[27885]: res_config_mysql.c:662 mysql_reconnect: MySQL RealTime: Everything is fine.
[Jan 30 22:38:21] DEBUG[27885]:
2012 Jul 31
3
Access @resouce in custom type
Is it possible to access @resource variables inside a type?
I would like to make some decisions on parameters based on other parameters
that may have already been set.
For example,
---
newparam(:param1) do
Puppet.debug "Found drivesperarray parameter"
desc "parameter 1"
validate do |value|
if resource[:otherparam] then
#dosomething
else
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 Sep 18
7
Puppet requires second run to execute some catalog items.
Hi, I''ve inherited a puppet setup for automating php installation and
extension management. We''re on Debian and we''ve encountered a strange
issue that I''ve traced down back to puppet I think. I''ve stripped back the
configuration and made the problem reproducible, logs and config pasted
below.
1. php5-common, php5-memcache, and php5-mysql are all
2012 Sep 26
14
Glassfish custom provider and 'file does not exist'
Hi there,
I''m trying to setup Glassfish config management using puppet.
I''ve found larstobi''s module here
<https://github.com/larstobi/puppet-glassfish/>which I''ve cloned and am
starting to tweak, as it would appear that the mentioned module is based on
Solaris, therefore I''m starting to add support for EL. My code tree is
2013 Apr 05
2
Flush provider - Differentiating between new resource and modification?
Morning all
I''m working on converting some of my NetApp providers to prefetch/flush
style to try and optimize performance.
I''ve hit an issue on my Netapp_user provider, around handling resource
creation versus resource modification?
What''s the easiest way to differentiate?
Current code is here:
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 15
4
CloneFunctionInto produces invalid debug info
Hi!
We are currently working on a science project and implemented a
FunctionPass that clones a function (more precisely a constructor of a
struct/class) and adds a parameter.
First, we create a new function with a new function type, which includes
the newly added parameter:
Function *NF = Function::Create(NewFTy, F.getLinkage(), F.getName() +
"Cloned", F.getParent());
and after