Displaying 20 results from an estimated 30000 matches similar to: "parameterized class precedences"
2011 Sep 21
2
Two parameterized classes calling both a thirth class (results in already defined)
Hi all,
I have three parameterized classes, named mq, mq_gsk and apache.
The mq class always calls the mq_gsk class, but the apache class
should only call the mq_gsk class when the mq class is not used in a
hosts'' node definition
Here is my configuration
class mq (
$gsk_version = undef ) {
require mq::params
< ..... >
class { ''mq_gsk'':
2013 Dec 02
1
Class parameter flexibility with ENC, hiera or both
Dear puppetteers,
I am having a philosophical question about parametrized classes.
When building modules, one wants to be as flexible as possible, to try
to target as many puppet flavors as possible. This is our target:
- Foreman users, using foreman as an ENC with smart variables (or
potentially any other ENC, but I would say this is the most widespread one).
- Pure Puppet''s site.pp
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
2011 Aug 01
0
prep for 2.8: scopes and variables: nodes are not classes
prep for 2.8: scopes and variables: nodes are not classes
I have been preparing for 2.8 by
experimenting with 2.7.X and seeing
what it takes to get rid of the
warnings. I would like to share my
results in a number of upcoming posts.
Begin with the simple question of
hard-wiring scopes. the ''shocking''
revelation is that variables defined
in nodes are no longer visible
2010 Dec 09
10
Invalid parameter when assigning parameterized class to a node
Hello,
I searched through the archive of the google group but did not found any
solution or hint for my problem.
I want to assign the following parameterized class to a node.
class httpd($certMail, $certOU) {
...
}
This is the node statement to assign the class to a node.
node "someserver" inherits basenode {
class { httpd:
certEMail =>
2011 Jul 23
2
Node or site.pp for global variables without dynamic lookup
Hi all,
I am working on rewriting my entire puppet environment and try to
''fix'' ''Dynamic lookup'' as it will be deprecated in some time, but even
after reading quite some docs and on the forum, it''s not really clear
to me.
What I have read so far, is that each variable must be fully-qualified
or parameterized in a class.
As a quick
2012 Feb 19
1
fully qualified variables and nodes.pp
hi folks,
As a response to " Dynamic lookup of $var at is deprecated. Support will
be removed in Puppet 2.8. Use a fully-qualified variable name (e.g.,
$classname::variable) or parameterized classes." warning
i''m trying to apply fully-qualified variable name solution following this
Doc http://docs.puppetlabs.com/guides/scope_and_puppet.html, but i have a
problem with variable
2013 Mar 11
1
using parameter with puppet dashboard and site.pp
I have just set up my puppet dashboard to be used as a ENC. This is for the
time being the easiest way to get support guys to add nodes to classes. I
have to use global parameters in my modules if I would like to declare
parameters using dashboard as the ENC.
So I have a module which does this:
class resolver ($domain_name=$::domainname,
$search_path=$::searchpath,
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
2011 May 20
4
The quantum effect when loading classes
Can anyone comment / expand upon
http://www.nico.schottelius.org/blog/puppet-sometimes-loads-a-class/
I am experiencing a case which may be related. We have an ENC, and recently
on our twice daily noop runs from cron, puppet has reported some servers
aren''t in sync because they do not have a certain module/class (dns_server)
even though they are not subscribed to the dns_server module in
2010 Feb 11
3
Parameterized ActiveRecord Associations: Any such thing?
Hi list, how are ya?
So, my current project is just begging for the ability to have
parameterized associations in my ActiveRecord classes. Basically I
need something that is a cross between named scopes and standard
associations (has_many specifically).
I''m wondering if such a thing exists or, if not, if anyone else has an
elegant, equivalent solution?
Example:
class Sprocket <
2013 Apr 18
1
Fetching class parameteres fails when tiering node inheritance under puppet 3.x
Hi,
I''m running into some trouble when trying to access some variables which
actually are a class parameter.
The following works OK:
node "common" {
$var=''foo''
}
node "gratia-base" inherits common {
class {
''gratia'':
dbhost => ''server.mysite.net'',
}
}
node "node1"
2007 Oct 09
1
VC6 Patch
Here is a patch that gets the theora_static.dsp project for VC6 building
again.
Aaron
-------------- next part --------------
Index: win32/theora_static.dsp
===================================================================
--- win32/theora_static.dsp (revision 13945)
+++ win32/theora_static.dsp (working copy)
@@ -41,7 +41,7 @@
# PROP Intermediate_Dir "Static_Release"
# PROP
2008 Apr 03
1
How to ask for *fixed* number of distributions under parameterized Gaussian mixture model.
Dear R users:
I am wondering how to ask for *fixed* number of distributions under
parameterized Gaussian mixture model.
I know that em() and some related functions can predict the
parameterized Gaussian mixture model. However, there seems no
parameter to decide number of distributions to be mixed (if we known
the value in advance).
That is, assume I know the (mixed)data is from 3 different
2012 Aug 13
2
Variables and scope with inherits
I want to have a parametrized class with lookup from params.pp but I keep
getting into problems.
init.pp:
class foo (
$bar = $foo::params::bar,
$foofoo = $foo::params::foofoo
) inherits foo::params {
file {''/tmp/foobar'':
content => template("foo/foobar.erb"),
}
}
params:
class foo::params {
$bar = true
if $foo::bar {
$foobar =
2013 Aug 21
1
Trouble with ENC and static.pp : enabling ENC fails to find node even with default node in site.pp
I''m having some trouble with getting an ENC to work alongside site.pp:
Even with a ''default'' node definition, and an ENC that only returns 0,
regardless of input, consistently results in a ''cannot find node'' error.
I''m wondering what I''ve missed here.
I''ve tried to reduce everything to a ''base case'': and
2008 Apr 23
1
Theora got extreamly slow (Makefile.am was changed)
I have tried to add a plunging to the "libtheora-1.0beta2" (network
bandwidth measuring component was added) and Got it success for some far
now the problem is when it is added the encoding process get extremely slow
(around 20 seconds delay).
I think that the problem is with my modified Makefile (some flag may have
missed).
the following is my modified Makefile.am which is in the
2008 Apr 10
2
Delay occurred when the makefile change
I have tried to add a plunging to the "libtheora-1.0beta2" (network
bandwidth measuring component was added) and Got it success for some far
now the problem is when it is added the encoding process get extremely slow
(around 20 seconds delay).
I think that the problem is with my modified Makefile (some flag may have
missed).
the following is my modified Makefile.am which is in the
2013 Oct 30
4
moving to ENC - how to get all current classes and params
I''m looking to use an external node classifier (ENC) in our environment.
What''s the easiest way to programmatically get currently applied classes
(and class parameters) for all hosts, with the goal of dumping it into a
database for later retrieval by the ENC script? Nodes are currently
classified via site.pp.
thanks
--
You received this message because you are subscribed
2007 Oct 29
0
ENC a simple example
So on the heels of the ENC discussion in another thread I figured I''d put up
what I''m currently working on from an external nodes perspective as a simple
example. Then let everyone tear into it... :)
I have a very basic external_nodes script:
--start--
#!/usr/bin/perl
use strict;
use warnings;
use YAML qw( Dump LoadFile );
my $vardir = ''/etc/puppet'';
my