search for: isnamevar

Displaying 10 results from an estimated 10 matches for "isnamevar".

2010 Aug 25
18
Puppet hangs
Hello, we have one puppet server managing approx servers, all FreeBSD. The problem is that the puppet clients all hangs, one by one, eventually. They will run for anything between an hour up to a week. But eventually the all hang. We really like puppet and want to keep using it. But the way it is now is completely unusable. We''ve tried many versions, from 24.x, and now 2.6.1rc1. But
2011 Jan 21
6
help writing types/provider
...le newparam(:name) do desc "The name of the user" validate do |n| raise ArgumentError, "cannot be empty" if n.empty? raise ArgumentError, "can''t contain spaces" if ( n =~ %r(\s+) ) resource[:provider] = :rabbitmq_user end isnamevar end newparam(:initial_password) do desc "the password for the user - only set on creation time" validate do |n| raise ArgumentError, "cannot be empty" if (n.empty? or n.nil?) resource[:provider] = :rabbitmq_user end end end ======================...
2012 Nov 07
2
Custom Type & Invalid Parameter...
...sent, absent." > > defaultto(:present) > > newvalue(:present) do > provider.create > end > > newvalue(:absent) do > provider.destroy > end > end > > newparam(:name) do > desc "The volume name." > isnamevar > end > > newparam(:initsize) do > desc "The initial volume size." > defaultto "1g" > end > > newparam(:aggregate) do > desc "The aggregate this volume should be created in." > end > > newparam(:spaceres) do &...
2010 Feb 15
3
My first type/provider - does nothing...
...es" ensurable newparam(:lvname) do desc "The logcal volume''s name" validate do |value| unless value =~ /^[a-z0-9]+/ raise ArgumentError , "%s is not a valid lv name" % value end end isnamevar end newparam(:size) do desc "The size in M or G" validate do |value| unless value =~ /^[0-9]+[MG]/ raise ArgumentError , "%s is not a valid lv size" % value end end end newparam(:vg) do d...
2009 Sep 10
1
trouble with custom type on 0.24.8
...@doc = "Ensure that the given repo is defined on the system, and add it if not present." ensurable newparam(:name) do desc "The name of the repository" isnamevar end newparam(:enabled) do desc "Enabled status of the repository" newvalues(:yes, :no) defaultto "yes" end newparam(:refresh) do...
2009 Dec 04
3
yumrepo is missing name attribute in repo files using puppet-0.24.8-4.el5
I''m using puppet-0.24.8-4.el5 on CentOS 5.4. My problem is yumrepo isn''t writing the "name=" field to the repository files which causes yum to complain with the error: Repository ''local-CentOS-5.4-x86_64'' is missing name in configuration, using id I get this behavior on all of my yumrepo definitions. One of them looks like this: yumrepo {
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 Sep 05
4
Custom type obligatory field?
...nk => ''http://mi.mirror.garr.it/mirrors/CentOS/6.3/isos/x86_64/CentOS-6.3-x86_64-bin-DVD1.iso'', } This rule would ensure that the kernel swappiness setting be set to ''20''" desc "The cobbler distro type" ensurable newparam(:name) do isnamevar desc "The name of the distro, that will create subdir in $distro" end newparam(:arch) do desc "The architecture of distro (x86_64 or i386)." newvalues(:x86_64, :i386) munge do |value| # fix values case value when :amd64 :x86_64 when...
2007 Jun 09
4
relative path cmd line option
I''m having a hard time shipping off complete puppet manifests/facts/files within a single versioned container to end nodes because of how strict puppet is about not allowing relative paths, even with runtime command line options. (I can not use the puppet/puppetmaster client/server model because of company policies, organization divisions and personnel issues.) When I export a complete
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