Displaying 20 results from an estimated 300 matches similar to: "Custom type"
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
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
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 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
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
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
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 Sep 16
2
Accumulating values
Greetings
I''m searching for an elegant way to contribute lines to an SNMP configuration file from resources scattered throughout a given system''s catalog, such that from anywhere, the SNMP configuration file can be arbitrarily extended like this:
$snmp::lines += "proxy -m ${mib_file} -v 2c -c ${snmp_community} localhost:1161 .1.3.6.1.4.1.42.2.145"
Forgive me if
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
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
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
2007 Sep 15
1
evaluate called twice
Hi.
I am creating a custom type. The question is why function evaluate is
called twice at the end?
--
Dmitri Priimak
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.
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
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
2006 Mar 01
1
[LLVMdev] Re: [llvm-commits] CVS: llvm/include/llvm/CodeGen/DwarfWriter.h - LLVM build problem
Hi!
After commit
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20060227/032167.html :
- DIE *NewType(DIE *Unit, TypeDesc *TyDesc);
+ DIE *DwarfWriter::NewType(CompileUnit *Unit, TypeDesc *TyDesc);
and
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20060227/032227.html
- DIE *DwarfWriter::NewType(CompileUnit *Unit, TypeDesc *TyDesc);
+ DIE *DwarfWriter::NewType(DIE
2017 Jun 15
2
CloneFunctionInto produces invalid debug info
This all looks very similar to a bug in the cloning stuff I fixed recently,
so would be indeed good to know if this is still happening on master.
On Thu, Jun 15, 2017 at 2:23 PM, Adrian Prantl via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> If you are doing this work based off LLVM trunk, could you send me your
> patch to reproduce the problem?
>
> -- adrian
>
> On
2017 Jun 15
3
CloneFunctionInto produces invalid debug info
Can you send me a patch with instructions to reproduce? I can take a look.
-- adrian
> On Jun 15, 2017, at 2:23 PM, Sergei Larin <slarin at codeaurora.org> wrote:
>
> Yes, it does for us. My tree is couple days off the tip, and I see it there.
>
> Sergei
>
> From: llvm-dev [mailto:llvm-dev-bounces at lists.llvm.org] On Behalf Of Keno Fischer via llvm-dev
> Sent:
2007 Nov 12
11
Various FreeBSD bits...
I just drudged through a bit of the archives and see a FreeBSD bits
floating in there that are of some value, but aren''t on the wiki. I
posted a few bits on the wiki regarding some FreeBSD cobbling that
I''ve done recently and hope that folk find it of use (and start
posting their useful bits there as well).
http://reductivelabs.com/trac/puppet/wiki/PuppetFreeBSD
The