Hi all,
I'm working on some client/server manifest and I wonder :
In the example below:
class exporter {
@@file {
"/var/lib/puppet/nodes/$fqdn": content => "$ipaddress\n", tag =>
"ip"
}
}
node "export1.daysofwonder.com" {
include exporter
}
node "export2.daysofwonder.com" {
inclu
Hi,
I came across a use case where I would like to access a value of an
attribute of a particular resource. I cannot find anything like this
in the documentation.
Essentially, I am trying to do something like this:
$cacert_path = Base::X509::Cert["cacert"].path
Did I miss something in the con
Hello everyone,
I just encountered this and was wondering if this is expected?
defined_test.pp:
class foo {
file { 'deftest':
path => '/tmp/deftest.tmp',
ensure => present,
alias => 'aliastest'
}
$def_title = defined(File['deftest'])
$def
running 0.24.7
According to the language tutorial I should be able to do:
$ssh_users = [ 'myself', 'someone' ]
class test {
$ssh_users += ['someone_else']
}
I'm trying to append to an array within a class, so i'm doing:
class test {
$metrics = ['a','b']
$metrics += [''c]
}
With the ab
I usually just copy the erb, set the variables at the top and then run it.
Not too elegant, but it works for testing.
Trevor
On Wed, Aug 19, 2009 at 14:41, Pete Emerson wrote:
>
> According to http://reductivelabs.com/trac/puppet/wiki/PuppetTemplating
>
> I can do this for template syntax check
On Aug 19, 4:03 pm, Duncan Hill wrote:
> Hello folks,
>
> node application-server inherits generic-server {
> all common stuff other than hosts
> possibly the if logic to set the IPs}
>
> node specific-1 inherits application-server {
> host {}}
>
> node specific-2 inherits application-server {
I looked at the language tutorial but couldn't see it anywhere.
Is there a way to check if a class is included i.e.
if class["myclass"] {
myvar = "hello"
}
Thanks,
Matt
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google G
Matt wrote:
> I looked at the language tutorial but couldn't see it anywhere.
>
You might be looking for the defined function.
http://reductivelabs.com/trac/puppet/wiki/FunctionReference#defined
Regards
James Turnbull
--
Author of:
* Pro Linux Systems Administration (http://tinyurl.com/linux
On Aug 19, 2009, at 10:06 AM, cnjohnson wrote:
>
> I have deployed puppet on our test cluster -- 20 identically
> configured x86_64 and ppc64 compute nodes and their gateways. I now
> want to move to our production cluster with (say) 800 compute nodes
> and their gateways. My question is about t
On Aug 19, 2009, at 3:42 PM, Gustavo Soares wrote:
> Hi all!
>
> I have migrated some machines from puppet 0.24.8 to 0.25.0rc1,
> mainly because of bug in 0.24.8 when using ssh_authorized_keys and I
> am getting the following messages when starting the client:
>
> Setting the :cacrl to 'fals
Hi
> currently ... when removing class from node export1.daysofwonder.com
> the file describing this host ip will still remain on the collector
> machine.
>
> Is there any nice way to remove the file when the class is removed
> from the node ?
not yet, but afair brice hacked something up for 0.
On Aug 19, 2009, at 11:03 AM, Duncan Hill wrote:
>
> Hello folks,
>
> Running 0.24.6, and I need a clue-by-4 with something I'm trying to
> do.
>
> I have a single manifest file, used by 3 servers. Depending on the
> server name, I need to allocate a different set of variables that get
> used
Every class you create is a tag.
So:
if tagged('myclass') {
$myvar = "hello"
}
One caveat, is the class order can matter if the tag exists yet or not.
http://projects.reductivelabs.com/issues/2105
-L
--
Larry Ludwig
Reductive Labs
--~--~-~--~~~---~--~~
Yo
I saw that but I think that did something else.
node "mynode" {
include myclass, foo
}
node "mynode2" {
include foo
}
class "foo" {
if defined(Class['myclass']) {myvar = "hello"})
}
Will both mynode2 and mynode get the variable myvar? In my case I
only want mynode too. If both do, then
On Thu, Aug 20, 2009 at 9:02 PM, Larry Ludwig wrote:
>
> If the puppetmaster is x86_64 based, I would recommend 4+ GB based
> upon your node count and they way ruby scales on x86_64 arch.
>
I install 32bit distributions on my 64bit hardware, as a single
passenger/mongrel doesn't (usually) pass the
Larry,
for now I haven't setup apache + passenger yet. I was running some tests in
a lab environment first with the builtin webserver (I believe that it is
Webrick, right?) and then I would setup passenger to increase sacalability.
I must use passenger in 0.25.x?
Gus
On Thu, Aug 20, 2009 at 10:0
if you have a complex variables setup, I really recommend to move away to
external nodes(http://reductivelabs.com/trac/puppet/wiki/ExternalNodes) or
extlookup(
http://nephilim.ml.org/~rip/puppet/extlookup.rb)
if you use external nodes, you could use an external source (e.g. a
database, or web serv
I want to keep away as much as possible from defining these variables
at the node level as they are more linked to the included classes.
I'm trying to set-up a monitoring module that looks at what
classes(modules) have been included for that node and then deploys the
required monitoring scripts.
On Fri, Aug 21, 2009 at 12:05 AM, Matt wrote:
>
> I guess another way would be for me to start building custom facters
> of what a node is and then deploy the right files depending on the
> facter result.
> Anyone done similar? I always feel with puppet i'm missing something
> obvious :-)
I
On Thu, 2009-08-20 at 15:06 +0200, Peter Meier wrote:
> Hi
>
> > currently ... when removing class from node export1.daysofwonder.com
> > the file describing this host ip will still remain on the collector
> > machine.
> >
> > Is there any nice way to remove the file when the class is removed
>
I tried resending it and the same thing happened. I do need some
help with this, though, so here it is quoted below.
-Robin
On Wed, Aug 19, 2009 at 10:14:30AM -0700, Robin Lee Powell wrote:
> Subject: Tidy not working
>
> debug: //Node[oh-www1.lojban.org]/jbovlaste/Tidy[/var/backups/jbovlaste]
- "Eric2" wrote:
> Hi,
>
> err: Could not retrieve catalog: Could not find class parent
> apache::package at /home/puppet/modules/apache/manifests/debian.pp:11
> on node ns0.mysite.org
>
> vi /home/puppet/modules/apache/manifests/debian.pp
> ### debian
> class apache::debian inherits apa
> I sketched a schema describing the use of multiple environments and
> git
> submodules for Puppet development.
>
> It's available on the wiki both in both OpenOffice Draw format and
> PDF.
>
> http://reductivelabs.com/trac/puppet/attachment/wiki/PuppetVersionControl/puppetmaster-git-submodule
Hello everyone,
We're pondering moving to git for our version control system for Puppet
manifests. However, since we have 4 puppetmasters, we're wondering how to deal
with timestamps. Since git doesn't preserve the timestamps, and instead, sets
the current timestamp to every file it modifies
Hi
Is this a good idea:
In the users module:
class users::db {
@group { dba:
gid=> 200,
ensure => present,
}
@user { oracle:
ensure => present,
uid => 200,
gid => 200,
comment => "Oracle User",
home=> "/home/o
I'm unfortunately ruby ignorant, here's what I've tried:
My file test.erb:
{ "config" :
{
"datacenter":"<%= datacenter %>"
}
}
I'll change that to populate the datacenter variable:
$datacenter = 'hello'
{ "config" :
{
"datacenter":"<%= da
On Thu, Aug 20, 2009 at 10:39 AM, Digant C Kasundra wrote:
>
> Hello everyone,
>
> We're pondering moving to git for our version control system for Puppet
> manifests. However, since we have 4 puppetmasters, we're wondering how to
> deal with timestamps. Since git doesn't preserve the timestam
Thanks to everyone for his/her replies. I appreciate it. We will be adding
RAM to the box.
We are using puppet 0.24.8. We are not using storeconfig at the moment, and
if we were we would be using our postgres server for that. I appreciate that
pointer.
The size of the files we serve are, typically
Hi
> I'm trying to set-up a monitoring module that looks at what
> classes(modules) have been included for that node and then deploys the
> required monitoring scripts.
For something like that I use exported resources, so within the class
itself I export a nagios-check, which then will be collec
Hi
> for now I haven't setup apache + passenger yet. I was running some tests in
> a lab environment first with the builtin webserver (I believe that it is
> Webrick, right?) and then I would setup passenger to increase sacalability.
> I must use passenger in 0.25.x?
no, you can still use webric
10x ..
I plan to create manifests for various client/server services and it will be
nice to add that feature for that .
Moty
On Thu, Aug 20, 2009 at 5:53 PM, Brice Figureau <
brice-pup...@daysofwonder.com> wrote:
>
> On Thu, 2009-08-20 at 15:06 +0200, Peter Meier wrote:
> > Hi
> >
> > > cur
thanks Pete.. I will use passenger for sure... I were beginning to think
that the problem that I face when migrating from 0.24.8 to 0.25.0rc1 (which
I had already rolled back) was somehow connected to Webrick.. but I guess
not...
Cheers
On Thu, Aug 20, 2009 at 4:27 PM, Peter Meier wrote:
>
> Hi
Hi,
I'm trying to generate apache virtual host configs and I have run
into what I think is a bug. Here is my setup:
CentOS 5.3
puppet 0.24.8
puppetmaster 0.24.8
Here is my template for the vhost configuration:
-- vhost2.erb --
NameVirtualHost <%= name %>:<%= port %>
:<%= port %>>
<% if has_v
try something like this:
cat a.erb
<%
datacenter="Moon"
description="less heating expanses here"
%>
{ "config" :
{
"datacenter":"<%= datacenter %>"
"description":"<%= description %>"
}
}
erb a.erb
{ "config" :
{
"datacenter":"Moon"
"description":"less heating expanses her
On Fri, Aug 21, 2009 at 2:22 AM, Charles Johnson wrote:
>
> The size of the files we serve are, typically, tiny: sudoers, hosts,
> hosts.equiv, and eight or ten others. They do not change often, but when
> they do, they need to be synched across the cluster. Our big bug-a-boo is
> seeing that new
35 matches
Mail list logo