Displaying 10 results from an estimated 10 matches for "somenod".
Did you mean:
somenoe
2007 Nov 18
5
modules yet again
I know this comes up periodically, and I''ve read through the
wiki (including the Best Practices page) & list archives,
but still can''t quite get my head around it.
I see lots of references to /modules and $MODULE_PATH, but
am not sure what these refer to.
Here''s a basic setup I have. Let me know if this looks correct:
/etc/puppet/
|-- autosign.conf
|--
2012 Sep 24
4
Overriding variables.
...;nrpe/load.cfg.erb"),
notify => Service[nrpe]
}
}
class nrpe::load::override($warn = ''UNSET'', $crit = ''UNSET'') inherits
nrpe::load {
Class["nrpe::load"] {
warn => $warn,
crit => $crit
}
}
node "somenode.tld" inherits basenode {
class {''nrpe::load::override'':
warn => 5,
crit => 10
}
}
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To view this discussion on the web visit https://gro...
2012 Jan 09
1
Manifest organization
Hello
I am new to Puppet and am having a hard time relating modules and
classes in configuration files to actual operating system files. For
instance I saw the following example on this list:
node ''somenode'' {
include puppetmaster
}
class puppetmaster {
include common
include puppet
include ldap_auth
include iptables::disabled
include httpd::ssl
include ruby-enterprise::passenger
}
class ruby-enterprise::passenger {
include common
include httpd
include ruby-enterprise...
2013 Jan 15
3
Multiple class calls via dashboard
...into the dashboard and using ENC.
I wish to control as much of the configuration of machines via the
dashboard.
However, I have a requirement to call a module/class multiple times and was
wondering if this is possible? in a normal manifest I''d do this with the
following:
node "somenode" {
somemodule::submodule { "first": key => ''value''; "second": key => ''value''
}
}
How can i do that with the dashboard? It seems to me that
class definitions need to include the ability to define variables So I
could create...
2011 Jan 07
18
Exactly how do people replace include with parametrised classes?
...ur parametrised classes over includes could show me their
alternatives that would be much appreciated. I haven''t mentioned
resources because the class names are pretty self explanatory - each
class handles any package, service and config files related to it''s
name:
node ''somenode'' {
include puppetmaster
}
class puppetmaster {
include common
include puppet
include ldap_auth
include iptables::disabled
include httpd::ssl
include ruby-enterprise::passenger
}
class ruby-enterprise::passenger {
include common
include httpd
include ruby-enterprise
}...
2007 May 01
8
Custom functions and facts
...ions
newfunction(:hour_from_fqdn, :type => :rvalue) do |args|
MD5.new(Facter[''fqdn''].value).to_s.hex % 4
end
end
I''ve managed to get this working by using $fqdn inside my node
definition and passing it through to my custom definition like this:
node ''somenode.domain.com'' {
custom_definition { name: address => $fqdn }
}
define custom_definition ($address){ "custom_name":
$random_hour = hour_from_fqdn($address)
file { "/path/to/file":
content => template("my_template")
}
}
I just wanted to verify...
2006 May 04
5
How to insert styles with Insertion
Hi,
I''m having difficulty using Prototype''s Insertion method to insert styles
into a document node. Code like this seems to fail:
new Insertion.Top(widgets[i], ''<style type="text/css"></style>'');
When I inspect the DOM, the style is nowhere to be found.
Any ideas on how to get this to work? Thank you,
Jeff Rankin
Human Factors
544-4333
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
2007 Nov 18
9
Modules, namespaces and variables
...time) ...
}
$ntp_server = "es.pool.ntp.org"
class ntp::ntp_server inherits ntp {
... some stuff including a template that uses ntp_server variable ...
}
class ntp::ntp_client inherits ntp {
... some stuff ...
}
Somewhere in manifests/site.pp and its included files:
node ''someNode'' {
include ntp::ntp_server
}
Now the questions (by the way, I''m using puppet 0.23.2 in both the puppet
and the master):
1. I had to manually add ntp:: to the classes included in the ntp module, as
if I don''t do it that way puppet isn''t able to find those cla...
2009 Feb 12
9
Schedule oddity
I have the following set up:
schedule {nightly:
period => daily,
range => "18 - 23",
repeat => 1
}
define deadlypkg {
tag("package")
$pkgrepo="/staging/PRODUCTION/deadly"
package{"$name":
source => "$pkgrepo/$name.pkg",
ensure => latest,
adminfile