Displaying 20 results from an estimated 20000 matches similar to: "explicit class dependencies"
2006 Sep 02
15
service restart failures
Puppet is failing to restart lighttpd using the Debian init script.
Both the default action of stop/start and using the reload action, which
basically does the same thing, fail.
It seems to be a filehandle problem. Changing the execute method
in service.rb to redirect stdout to /dev/null allows the daemon to
restart. Otherwise, I end up with a zombie process and according to
strace, ruby
2012 Jul 08
3
create multiple resources from an array of things.
Hi gang,
I feel like I''m missing something fundamental here…
I''ve got the following:
class snmp::rhel::rh5enable {
$collector = [''10.0.0.1'', ''10.0.0.2'']
define add_snmp_hosts_allow ($ip) {
exec { "hosts_allow_$ip":
command => "/bin/echo \"snmpd : $ip : ALLOW\" >>/etc/hosts.allow",
2013 Mar 15
3
advice on module organization
Hi Folks,
Like to get some advice on module organization. I have a system that has a
few different components. One or more components can be installed on a
host. The hosts also have a "type" dimension. This "type" dimension could
(should) ideally be used to configure the system (fill in a bunch of
variables). Problem is, I''m not sure how the best way to do
2012 Apr 09
7
validate_re validation failures
I am using stdlib module''s validate_re function to validate parameters
passed to a parameterized class as pasted here: http://pastebin.com/7eYAeLEa
.
The validation works fine however when I run this manifest locally
using ''puppet apply'' command where puppet execution stops if a
validation test fails. However when I use it in client-server model
then I do see a
2013 Nov 15
7
Class declaration ordering causes duplicate resource error
Has anyone run into this issue before?
http://projects.puppetlabs.com/issues/5046#note-17
Is there something obvious that I''m missing?
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com.
To view this
2012 Oct 14
6
Puppet Forge: Are my expectations misaligned?
Good Afternoon All,
I''m just pondering - I think that my expectations of the forge are not 100% aligned, or I''m still rubbish with puppet!
I imagine the forge to be used in the following scenario/way
I''m in a situation where I need to provision package X in a particular way. I fire up my terminal:
$ puppet module search packageX
Searching https://forge.puppetlabs.com
2011 Nov 22
2
declare and include classes
Hi all,
after moving to parametrized classes, I''ve started to declare them
instead of including.
Now, I''m trying to understand the differences (internal) between
declare and include, and, reading
http://docs.puppetlabs.com/guides/parameterized_classes.html again, I
found some sentence which confuses me:
"Since include wasn’t designed for use with parameterized
2013 Mar 18
4
Inherit two classes?
Hello,
I have a class called website, which requires both httpd and mysqld
classes. Without defining it within the site.pp (node section). Is it
possible to define that "website" requires these additions? Such as;
class website inherits httpd, mysqld {
...
}
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To
2012 Oct 22
4
How do design next-gen modules, any guidelines ? a question for gurus...
Hi,
My dilemma is how should I write my module to be "next-gen" ?
Not from a code point of view but from a design/layout point of view.
We wrote our modules for 2.6.x like every beginner would have done:
write everything in init.pp.
But now, the fashion is to use parameterized classes and Hiera which we
will use with puppet 2.7.x.
I mainly followed/watched what Example42 was doing.
2010 Nov 19
3
what are the constraints on the contents of 'imported ' files
I am trying to import a hash definition from a separate file but this
fails whereas including the text verbatim in the original manifest
works fine:
class monitor ($master, $interface) {
# import "masters.pp"
$sensor_rule_categories = {
''dmzo'' =>
[scan,finger,ftp,telnet,rpc,rservices,ddos,dns,tftp,web-
coldfusion,misc,web-php,x11,attack-responses,
2011 May 13
18
Thoughts about extlookup: http://blog.wl0.org/2011/05/thoughts-about-extlookup-in-puppet/
Hi,
I have been trying to improve the coding of some of
my puppet recipes and had some trouble so wrote this:
http://blog.wl0.org/2011/05/thoughts-about-extlookup-in-puppet/
Comments on the web seem to indicate that extlookup() solves "all
problems" but I don''t really see that and hence have proposed a possible
way to keep the data closer together and make the extlookup()
2010 Jul 30
5
Parameterised Classes in 2.6.0... still no luck
I downloaded the latest version of puppet 2.6.0 today, and still can''t
get parameterised classes to work. At least, I think it''s 2.6.0... the
version number in the RPM spec file says 0.25.5.
This simple example:
/etc/puppet/manifests/nodes/pax/name01.pax.xxx.com.pp:
node ''name01.pax.xxx.com'' {
class { amodule::afunc: version => "1.0" }
}
2013 Mar 12
4
Optional loading of firewall rules
I''m using puppetlabs/firewall with Puppet 2.7.2, and for the most part it''s
working great. I have this in my sites.pp, which I took from this list
sometime ago, to save firewall rules to disk when they''re changed:
# Always persist firewall rules
if ($kernel == ''Linux'') {
exec { ''persist-firewall'':
2012 Feb 06
3
Passing class parameters to hiera
I am using puppet 2.6.11 and want to pass parameter for implementing
sudo for mulitple users. So here is my simple code, which I would like
to pass to hiera to specify user name lookup. Appreciate any help,
thanks in advance.
class sudo( $name) {
#Class:: sudo
#
#
package { "sudo": ensure => present, }
file { "/etc/sudoers":
owner => root,
group => root,
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
2012 Feb 11
10
Question about reusing classes/modules
Hello Everyone,
I''m still pretty new with puppet so please bare with me. I tried
searching and I''m pretty sure I''ve ready my answer but I''m not sure if
I''m going down the right path just yet.
My scenario is this: I have 4 environments, Dev, Test, QA, Prod. Each
of these environments lives in 2 sites, LA and NY. I have 5
applications that are site and
2012 Jul 05
7
proper usage of global variables / node variables / +=
Hello puppet masters, I am cleaning up some puppet modules, using
puppet-lint. The warning I am getting is:
top-scope variable being used without an explicit namespace
I can turn this particular check off, but in doing my research I''m
finding all sorts of messages saying to avoid using +=, to avoid using
variables in the node scope, and to switch to a parameterized class
whenever
2012 Feb 14
7
inherits from parametrized class
Hello
In is possible inherits from parametrized class??
For example i have base php52 class like this:
class linux::php52($pools, $extensions='''') inherits linux
{
......
}
and whants to inherit it like this:
class linux::php52::cluster inherits linux::php52
for cluster configuration (cluster stuff -f for example prevent php from
automatic startup), and
class
2012 Apr 24
9
Moving from Puppet 0.25 to Puppet 2.6+ : global scope/variables
Hi,
I worked with puppet (< 0.25) back in 2008/2009. We were able to
deploy 200 servers from scratch and manage them. It worked fine.
I''m now with a new customer and I''m pushing Puppet (and I''m also back
to puppet on a side project).
We''re considering Puppet 2.6 to manage RHEL/CentOS 5 or 6 hosts. I''m
"upgrading myself" to Puppet
2011 Jun 04
2
Weird paramterized issue
Im using a parameterized class in my site.pp:
class development($user) {
class{"basenode": user => $user}
class{"nodejs": user => $user}
include "coffeescript"
include "ruby"
}
This class defines nodejs class that epects a user as input:
class nodejs($user) {
class {"nodejs::npm": user => $user}
$node_ver =