Displaying 20 results from an estimated 100 matches similar to: "need urgent help with including Ruby DSL class from puppet manifests"
2015 May 24
2
specify port on check_memcached.pl
Hey guys,
I'm trying use check_memcached.pl to monitor a couple of memcached services
running on two ports.
I have my command definition setup like this:
# 'check_memcached' command definition
define command {
command_name check_memcached
command_line $USER1$/check_memcached.pl -H $HOSTADDRESS$ -p $ARG1$
}
And I have my service definitions setup like this:
# Define a
2007 Apr 11
10
Nagios asterisk monitoring
Dear list,
I am trying to configure the nagios plugin called check_sip. I just read the
README file included with the plugin. I follow the readme steps to configure
the plugin, without success. In the nagios web interface I can see (No
output!) In the status information column. If I run the chech_sip plugin
from a linux console, I get
/usr/local/nagios/libexec# ./check_sip -u
2012 Feb 08
11
define hostclass with special characters
Hi,
I need to define the hostclass with special character for ex:
"swift::proxy-ring"
I have tried following ways but not worked:
1) hostclass :swift::proxy-ring do
2) hostclass ''swift::proxy-ring'' do
3) hostclass "swift::proxy-ring" do
When I am using the 2 and 3 options it is giving following erroe:
undefined method `[]'' for Class:Class at
2010 Dec 10
3
Re: [Puppet-dev] Converting to Ruby DSL
On Dec 8, 2010, at 11:09 AM, Ken Barber wrote:
> (cross posting here as I originally posted in puppet-users - I figure the question is more of a dev one then for puppet-users)
>
> Hi everyone,
>
> I''m experimenting with converting some of my live puppet content to
> Ruby DSL and have found a few gaps I wouldn''t mind some advice on. I''m
> not sure
2010 Dec 09
1
Calling class defines in pure ruby DSL
Let''s say I have a define in class ''foo'' called ''foo::bar'':
define foo::bar ($var1, $var2) {
...
}
Then I have a ruby hostclass
hostclass :foo do
...
}
I see I can successfully set the parameters by doing:
environment.known_resource_types.definitions[''foo::bar''].set_arguments :var1 => ''val1'', :var2 =>
2012 Jul 05
1
Ruby DSL parameterized classes and defaults
I''ve been reading the Docs on this, and its not very clear.
I want to have a parameterized class that takes arrays and objects as
parameters.
I''m using puppet 2.6.16.
I define a hostclass like this:
hostclass :test, :arguments => { :param1 => "blah" } do
end
I call from Puppet DSL:
class {"test":
}
I get this as an error:
err: Could not
2010 Jul 22
9
First Foray into Parameterized Classes.... not so good
I have this:
class foo::foobar ($version) {
}
which is called like this:
class facility::sanjose inherits facility::common {
class { foo::foobar: version => "1.3.13" }
}
puppet complains with this on the client:
Could not retrieve catalog from remote server: Error 400 on SERVER:
Could not find parent resource type ''facility::sanjose'' of type
hostclass in
2005 Feb 24
1
Rsync over ssh and forced commands
Hello list!
I want to use rsync over ssh to copy files from a server to all my
clients. Basically the following commando should be used:
rsync -re "ssh -i .ssh/tomte" /var/local/tomte-bin/ merkur:/
On the client to commando should be checked so i added a
command="/usr/local/bin/check_command.sh" to my authorized_keys for the
tomte public key.
But i get the following error:
2015 May 14
3
nagios check_local_disk failing
Hey all,
I have a local disk check defined which is giving me an error:
Current Status:
UNKNOWN
(for 0d 0h 1m 38s)Status Information:Unknown argument
Usage:
check_disk -w limit -c limit [-W limit] [-K limit] {-p pathPerformance Data:-x
device} [-C] [-E] [-e] [-f] [-g group ] [-k] [-l] [-M] [-m] [-R path ] [-r
path ] [-t timeout] [-u unit] [-v] [-X type] [-N type] [-n]
I have a local check
2007 Apr 04
5
sshkey
Hello all,
How are you using the sshkey type? Are you using it to list hosts and keys in a class that nodes include in order to manage /etc/ssh/ssh_known_hosts or something else? How does any of this relate to the sshrsakey and sshdsakey facts on the host? I read some stuff about this on the Virtual Resources page but it''s too vague for my simple mind and I''d be reluctant to use
2012 Jul 12
15
How can I list classes available on the puppet master?
Is there a way to get a list of all the classes available from the puppet
master?
I have 2 goals for this - one is documentation in a human readable form,
and the other is potentially importing that data into dashboard.
I did find some info on the rest API
(http://docs.puppetlabs.com/guides/rest_api.html#resource-types ) but I
can''t make any sense of the output from it.
Thanks.
2008 Nov 20
1
running tests on gem
Is there a way to run he tests with cjust the gem installed?
I wanted to run the tests on the gem and tried:
$ jruby -S gem list RedCloth
*** LOCAL GEMS ***
RedCloth (4.1.1)
$ jruby --version
jruby 1.1.5 (ruby 1.8.6 patchlevel 114) (2008-11-14 rev 6586) [i386-java]
[jruby.git (master)]$ jruby -S gem check -test RedCloth
ERROR: While executing gem ... (OptionParser::InvalidOption)
2008 Oct 05
4
Why is -e sent to the remote rsync side?
> $ rsync -e 'ssh -v' lingnu.com:
> OpenSSH_5.1p1 Debian-2, OpenSSL 0.9.8g 19 Oct 2007
> debug1: Reading configuration data /etc/ssh/ssh_config
> debug1: Applying options for *
> debug1: Connecting to lingnu.com [199.203.56.105] port 22.
> debug1: Connection established.
...
> debug1: Sending command: rsync --server --sender -de.L .
As we can see, rsync runs ssh, and
2011 Mar 23
1
Ruby DSL: create_resource with exec
Hi! How to create "exec" resource in ruby DSL? Found mention of
create_resource but had no luck in using it =(
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com.
For more
2009 Apr 22
3
Exported Resources with keyword undef
Hello !
I''m using a lot of nagios_ commands in my puppet manifests and I saw a
problem when using ''undef'' in exported resources :
Here is a simple example :
define nagios::service::distributed ($ensure=present,
$service_description, $host_name=false, $contact_groups=false) {
nagios_service {$name:
ensure => $ensure,
use =>
2010 Oct 20
2
nagios_service types and "name"
It seems that the nagios_service type will not write out the "name"
property of nagios service objects. I had thought this was an oversight
or a bug, till I saw this thread:
http://www.mail-archive.com/puppet-bugs@googlegroups.com/msg10387.html
which seems to imply that this is a deliberate "feature". Is this
prohibition on "name" really the desired behaviour?
2013 May 14
2
puppet and custom nagios object variables
Nagios support "custom object variables" (http://nagios.sourceforge.net/docs/nagioscore/3/en/customobjectvars.html) buy prefixing them with an underscore:
define host{
host_name linuxserver
_mac_address 00:06:5B:A6:AD:AA
_rack_number R32
}
However, I can''t determine how to use these with puppet nagios resources. I''m assuming they aren''t supported, but
2008 Nov 24
14
Problem with RubyGems installation
Hello,
I am trying to install RubyGems on Ubuntu and i''m having trouble. I''ve
downloaded rubygems 1.3.1 and when i run the sudo ruby setup.rb command
I get the problem mentioned below. I''d really appreciate if someone can
help me out.
Thanks
mkdir -p /usr/local/lib/site_ruby/1.8
mkdir -p /usr/bin
install -c -m 0644 rbconfig/datadir.rb
2004 Dec 09
1
Exim4 authentication patch
Hello all,
attached patch makes possible to use dovecot as an authentication
backend for Exim 4. Reasons beyond this patch are simple:
exim's authenticators require use of plaintext passwords and NTLM
code in exim is quite outdated and hairy.
Patch generated against Exim 4.43, but should apply to earlier
versions too.
Patch adds new 'dovecot' authenticator, which can be used as such:
2010 Jul 12
13
ANNOUNCE: Puppet 2.6.0 - Release Candidate 2 available!
Welcome back again to the Puppet release cycle with the long-awaited
eleventy times better RC2 release.
The 2.6.0 release is a major feature release and includes a huge variety
of new features, fixes, updates and enhancements. These include the
complete cut-over from XMLRPC to the REST API, numerous language
enhancements, a complete rewrite of the events and reporting system, an
internal Ruby