Displaying 20 results from an estimated 60000 matches similar to: "Referencing a variable from one class in another"
2008 Jun 06
8
useradd provider not working?
I have this config:
# BL00070 - Disable NFS
service {["nfs","nfslock","netfs","portmap"]:
ensure => stopped,
enable => false,
}
user {"rpc": ensure => absent, provider => "useradd" }
user {"rpcuser": ensure => absent, provider => "useradd" }
file
2008 Aug 11
6
Class dependency question
So I have two classes for openvz setup. The first is openvz::setup
and it sets up the box for OpenVZ.. then another class (in same .pp
file) called openvz::master sets up the config for the main system (as
opposed to a VE). The error I see is that the openvz::master class is
executed (and fails) becuase it doesn''t seem to load up the setup
class?
debug: Calling puppetmaster.getconfig
2013 Jan 24
4
Dependency Cycle with puppetlabs-mrepo
Hi, I''m gettinng a dependency cycle when using PE 2.7, puppetlabs::mrepo,
"role classes" and hiera :
I''m trying to mirror RHN repos :
# ROLE CLASS
> class site::yum_repository{
>
> $repos = hiera(''site::yum_repository::repos'')
> create_resources(mrepo::repo::rhn, $repos)
> }
>
# HIERA DEFAULTS
>
2008 Jun 12
5
Puppet Demo at ETRADE
I had some questions come up today during the Puppet demo here:
1. Is there any way to apply different intervals to different
classes? For example, we might want a security baseline manifest to
run once a month, package installation files once/day, etc. Since
we''re a brokerage, we also don''t want ANY system changes during
trading hours. I guess we could cron killing the
2013 May 07
7
puppet node clean using SQLite instead of PuppetDB
I have a node that has some bad stored configs (namely the wrong ssh host keys) that I''m trying to clear out. Looking around it seems I''m supposed to do:
puppet node clean foo.example.com
However, that keeps bailing out because it''s trying to open a SQLite3 db where stored configs are normally kept, but my stored configs are kept in puppetdb (http://pastie.org/7814483
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'':
2008 Jul 01
6
OpenVZ configuration of networking with puppet - big crash
I am trying to streamline the current distribution specific setup and
creation of VE''s within OpenVZ with puppet. My first attempt has gone
horribly wrong as you will see below. Here''s the script I wrote to
replace the redhat specific setup that OpenVZ used:
[jleggett@lxp6d15m3 scripts]$ cat redhat-add_ip.sh
#!/bin/bash
#
# Debug - take out later
set -x
2007 Jul 25
6
Signing certificates with mongrel+apache puppetmaster
Hi,
Is there a way to have puppetmaster sign new clients'' certificates when
using apache+mongrel for serving, without having a separate puppetmaster
instance running webrick on a different port/IP?
I guess this does not work out of the box because apache is told to do
the verification very early in the connection process, at which point it
does not yet know that the client is going to
2005 Mar 10
10
Some Basic Questions
Sorry I can''t access IRC from work so I hope you don''t mind me asking my newbie
questions here:
1) I have the following code:
@post = Post.find(@params[''id''])
@comments = Comment.find_all "post_id = #@params[''id'']", "created_on ASC"
And I am have problems with the second line. I want to pass the id from my post
to the
2009 Jan 15
8
Pattern matching in case statement
Hi all,
I need my servers to decide which network they are in (i.e. dmz), and
the only clue is the servers IP-address. I was trying to accomplish it
like this, but it doesn''t work:
case $ipaddress {
"10.1.1.*": {
$network = "net1"
}
"10.2.2.*.*": {
$network = "net2"
}
"10.3.3.*": {
2010 Jun 27
17
Variable Scoping = Root Canal
I''ve been struggling with puppet variable scope all day, well, for
several months actually.
I think I have pretty simple requirements. For any given node, I want
to be able to set a series of variables and include a set of classes,
based on three different aspects of a node, being physical location,
operating system, and function. If I try and do this with classes, I
find that variables
2008 Jun 04
1
I am doing something wrong....
OK... I have relaid out my puppet dir as recommended in best
practices:
[jleggett@binford puppet]$ find . -print | grep -v .svn
.
./plugins
./plugins/lines.pp
./files
./files/module
./files/module/SSH
./files/module/SSH/ssh_config
./files/module/SSH/sshd_config
./files/module/INFO
./files/module/INFO/motd
./files/module/INFO/issue
./files/module/NIS
./files/module/NIS/nsswitch.conf
2011 Aug 01
3
Class inheritance or virtual resources to manage apache modules
I want to start out with an apache class that will disable all modules
except for a pre-defined list, thus establishing a baseline of active
modules.
Then as needed, other classes could enable a module that they require
that would have been disabled by the baseline state.
Its possible several classes may try to enable the same module (1 or
more classes needing module1 could be on a single node)
2012 Apr 12
1
Condition based on environment
Hi,
I''m using one of the git projects for my Apache configuration. I''m now
playing with Puppet environments, and I need to define a few parameters
based on the environment. For example, I have params.pp:
$user = $operatingsystem ? {
/RedHat|CentOS/ => ''apache'',
/Debian|Ubuntu/ => ''www-data'',
}
I''d like to be
2011 Mar 22
2
about http basic authentication dashboard
Hi,
I am running dashboard 1.1.0rc1 under passenger 3.0.5 and apache 2.2.3
with puppet 2.6.6. Im trying to get urls like this
http://user:password@host
working as suggested in the docs for reporting but atm i did not get
it (401 auth requided). Maybe I am forgetting something? I use a
common .htpasswd file. Auth type Basic, etc.
Sorry if this has been seen in this mailing-list. I searched for
2013 Feb 21
8
Facter & Puppet disagree on RHEL 6?
I''ve run into an odd one on one of my new RHEL 6 boxes. Puppet and Facter
seem to disagree about the value of a fact.
Puppet version: 2.7.9
Facter version: 1.6.4
Module: puppetlabs-apache
apache::params falls through its if structure:
if $::osfamily == ''redhat'' or $::operatingsystem == ''amazon'' {
...
} elsif $::osfamily ==
2013 Jan 07
3
Error: Could not retrieve catalog from remote server: execution expired
Hi everyone,
I recently ran into an issue where my puppetmaster can''t run puppet on
itself. It errors out with the following:
Error: Could not retrieve catalog from remote server: execution expired
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
I''m running Puppet 3 with passanger and puppetdb (hsql). I''ve tried
restarting
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
2008 Jul 08
12
ANNOUNCE: Facter 1.5
Hi all,
I''ve finally gotten around to releasing Facter 1.5.
As the version bump implies, this is a relatively significant release
(for a 2.3k line program, anyway). Mostly, the biggest change is
refactoring the code internally so that all of the functionality is
split into separate classes in separate files.
Also, the facts are all loaded on-demand, which provides dramatic
2007 Oct 31
2
Managing apache authentication
Hi there.
I''m trying to wrap my head around puppet and its parlance and need some
guidance...
2 Questions:
1) I have done some puppet stuff on a new server and would like to hear
whether I have done things "the right way"
2) I want to build on top of that and am not sure how...
Question 1
==========
We don''t normally host static websites for people, but have been