I can't work this out and I'm getting frustrated. :(
Puppet is complaining:
err: Failed to apply catalog: Could not find dependency
Lvm::Volume_group[bcvg] for Lvm::Application_volume[cache] at
/truth/sauce/env/prod/modules/object_store/manifests/server.pp:47
Yet, if I comment out that line so t
; https://groups.google.com/d/msg/puppet-users/-/CwJ84wL1zWEJ.
> To post to this group, send email to puppet-users@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://gro
I'm trying to find email addresses of some of the speakers from Puppet
Conf last week. They aren't on the web site... maybe due to spamming
concerns. Short of Googling, how can I get these?
Also... are there slides available yet? What about video?
Doug
--
You received this message because you a
Anyone know if there's a feedback mechanism for Puppetconf?
Doug
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+uns
t.
>>
>> Doug
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/puppet-users/-/NrKmbHHiaq8J.
>
> To post
I'm wondering what people are doing systems provisioning with, ie the
process that gets puppet installed onto a system, running for the
first time, and also the handling of certificate signing and so forth.
I don't see this topic discussed much.
The mc-provision tools at
https://github.com/ripiena
My puppet client is producing this:
debug: /Schedule[daily]: Skipping device resources because running on a host
debug: /Schedule[monthly]: Skipping device resources because running on a host
debug: /Schedule[hourly]: Skipping device resources because running on a host
debug: /Schedule[never]: Ski
So, it seems that create_resources doesn't support virtual resources.
Suggestions? Workarounds?
Doug.
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this
On Mon, Sep 10, 2012 at 1:41 PM, Calvin Walton wrote:
> On Mon, 2012-09-10 at 12:34 -0700, Douglas Garstang wrote:
>> Why does this:
>>
>> Class['network::base'] -> Class['apt::base'] -> Class['lvm::setup'] ->
>> Class <| |&g
Why does this:
Class['network::base'] -> Class['apt::base'] -> Class['lvm::setup'] ->
Class <| |>
generate this error?
err: Could not retrieve catalog from remote server: Error 400 on
SERVER: Resource type class doesn't exist at
/truth/sauce/env/prod/modules/role/manifests/common.pp:18 on node
m
I know it's highly unconstructive, but I just wanted to say that I am
sick and tired of getting these, and they completely piss me off.
Debugging this is a friggin nightmare.
*sigh*
err: Could not apply complete catalog: Found 1 dependency cycle:
(Exec[apt-update] => Package[lvm2] => Class[Lvm::S
On Wed, Sep 5, 2012 at 2:23 PM, Christopher Wood
wrote:
> (inline)
>
> On Wed, Sep 05, 2012 at 02:04:59PM -0700, Douglas Garstang wrote:
>> Couple of questions. Firstly, what's the plugin error about?
>>
>> puppet agent --onetime --test --verbose
>
> Cou
Couple of questions. Firstly, what's the plugin error about?
puppet agent --onetime --test --verbose
info: Retrieving plugin
err: /File[/var/lib/puppet/lib]: Could not evaluate: Could not
retrieve information from source(s) puppet://puppet/plugins
info: Caching catalog for mon01.ap1.xxx.com
info:
I'm sure people have hit this problem before. In my nagios module, the
nagios command pipe file at /var/lib/nagios3/rw/nagios.cmd is owned by
the nagios user, but needs to be written to by the www-data user.
Adding the www-user to the nagios group is one solution, but that
requires that the nagios
Cool. thanks for fixing.
On Thu, Aug 30, 2012 at 3:00 PM, Jeff McCune wrote:
> On Wed, Aug 29, 2012 at 12:20 PM, Douglas Garstang
> wrote:
>>
>> Really? From the function reference at:
>> http://docs.puppetlabs.com/references/latest/function.html
>>
>> Com
Boy, am I frustrated. I'm about ready to throw puppet out the window
here. I'm trying to configure glusterfs, and you know, it kinda made
sense to separate the data from the manifests, so I went ahead and put
this into a YAML file, which hiera loads...
glusterfs_volumes:
gfsvol01:
volume_nam
So... how can I debug ruby code for custom functions? Putting a 'puts'
in the ruby script doesn't actually cause anything to go anywhere.
Doug
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-users@goo
end email to puppet-users@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
--
Regards,
Douglas Garstang
http://www.linkedin.
I'm confused about this...
https://github.com/puppetlabs/puppetlabs-stdlib/
I see a lot of functions there that are the same as the ones that come
standard with puppet. If I create a module and dump this stuff in
there, what happens to the existing stuff? How does puppet know which
one to use?
D
Oops. There's a working link right there...
On Tue, Aug 28, 2012 at 7:38 PM, Douglas Garstang
wrote:
> Thanks. I'll check it out. Does anyone know where the docs for this
> are? All the links on the puppet web site are broken for
> create_resources.
>
> Doug.
>
&g
gust 28, 2012 4:39:57 PM UTC-7, Douglas wrote:
>>
>> It looks like it's flattening the darned thing out... :(
>>
>> err: Could not retrieve catalog from remote server: Could not intern
>> from pson: Could not convert from pson: Could not find relationship
&g
g 28, 2012 at 4:31 PM, Douglas Garstang
wrote:
> Having fixed the yaml...
>
> glusterfs_volumes:
> gfsvol01:
> master_node: gfs01.us1.xxx.com
> transport: tcp
> replicas: 0
> nodes:
> - name: gfs01.us1.xxx.com
> bricks:
> -
osed to be. It
> looks like something based on create_resources() might work out nicely for
> you, but I can't be sure.
>
>
> John
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To view this d
Boy... accessing hashes in puppet is downright painful.
I have this in a yaml file...
glusterfs_volumes:
gfsvol01:
master_node: gfs01.us1.xxx.com
transport: tcp
replicas: 0
nodes:
- gfs01.us1.xxx.com
hostname: gfs01
state: mounted
- gfs02.us1.xxx.com
t;Puppet Users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/puppet-users/-/aOuMVbKCDKIJ.
> To post to this group, send email to puppet-users@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users+unsubscr...@g
In addition to hiera looking at files based on environment and node
role etc, I'd like to be able to specify a file name based on
function. Ie break keys into files by function. Is there a way to do
this?
Doug
--
You received this message because you are subscribed to the Google Groups
"Puppet
The first notice command shows the array as having two elements. The
second notice command shows the same array as having only one element.
Some sort of variable reference thing? How can I make a copy of the
$nodes array rather than make a reference to it?
notice ("NODES1=$nodes")
$n2 = $n
Argh. I have the definition below. The gluster peer probe command has
already been executed successfully, and I'm testing it with 'peer
status'. Running the unless=> command yields:
root@gfs01:~# /usr/sbin/gluster peer status | /bin/grep gfs02.us1.xxx.com
Hostname: gfs02.us1.xxx.com
root@gfs01:~#
This is driving me crazy. I'm trying to load the nodes array into a
puppet array with hiera. Hiera seems to always flatten an array or a
hash to a string, with no delimiter in between, which makes it hard to
split into an array later on.
The hiera_hash and hiera_array functions only take a single
tice ("bricks = $n2")
}
On entering the define, $nodes = ['gfs01.us1.xxx.com',
'gfs02.us1.xxx.com'] and $brick_store="/var/bricks"
Doug.
On Mon, Aug 27, 2012 at 12:44 PM, Trevor Vaughan wrote:
> Try using regsubst:
> http://docs.puppetlabs.com/references/st
I have an array:
$nodes = ['gfs01' ,'gfs02', 'gfs03', 'gfs04]
and a string variable:
$brick_store = "/var/bricks"
How can I append "/var/bricks" to each item in the array? Lack of a
looping construct makes this challenging in puppet.
Such that:
brick_array = ['gfs01:/var/bricks', 'gfs02:/var/
On Wed, Aug 22, 2012 at 6:06 AM, Martin Alfke wrote:
>
> On 22.08.2012, at 14:27, Axel Bock wrote:
>
> Hi readers
>
> another question for my little puppet project: Can I (and if yes, how)
> define dependendies between puppet "defines"? (define like in define
> mymodule::mydefine() {...})
>
> Exam
I'm very confused about something. The definition below is used to set
up swap. The three definitions, lvm::swapvol_make, lvm::swapvol_on and
lvm::swapvol_fstab, where previously inside this definition, but I
broke them into separate defines as I realised that the more I use the
$ensure parameter o
; class mymodule::config{
> $collector = $mymodule::params::collector
> $ipstring= inline_template("<% collector.each_pair do |key, hash|
> %><%=hash['ip']%>,<%end%>")
> $ips = split ($ipstring,',')
> }
>
> defin
On Wed, Aug 22, 2012 at 1:52 PM, Douglas Garstang
wrote:
> On Wed, Aug 22, 2012 at 1:43 PM, Justin Stoller wrote:
>> On Wed, Aug 22, 2012 at 1:34 PM, Douglas Garstang
>> wrote:
>>> On Wed, Aug 22, 2012 at 11:08 AM, Douglas Garstang
>>> wrote:
>>>&
On Wed, Aug 22, 2012 at 1:43 PM, Justin Stoller wrote:
> On Wed, Aug 22, 2012 at 1:34 PM, Douglas Garstang
> wrote:
>> On Wed, Aug 22, 2012 at 11:08 AM, Douglas Garstang
>> wrote:
>>> On Tue, Aug 21, 2012 at 11:51 PM, Douglas Garstang
>>> wrote:
>>&g
On Wed, Aug 22, 2012 at 11:08 AM, Douglas Garstang
wrote:
> On Tue, Aug 21, 2012 at 11:51 PM, Douglas Garstang
> wrote:
>> On Tue, Aug 21, 2012 at 11:44 PM, Douglas Garstang
>> wrote:
>>> On Tue, Aug 21, 2012 at 11:19 PM, Stephen Gran
>>> wrote:
>>&g
On Tue, Aug 21, 2012 at 11:51 PM, Douglas Garstang
wrote:
> On Tue, Aug 21, 2012 at 11:44 PM, Douglas Garstang
> wrote:
>> On Tue, Aug 21, 2012 at 11:19 PM, Stephen Gran
>> wrote:
>>> Hi,
>>>
>>> On Tue, 2012-08-21 at 21:00 -0700, Douglas Garstang
On Tue, Aug 21, 2012 at 11:44 PM, Douglas Garstang
wrote:
> On Tue, Aug 21, 2012 at 11:19 PM, Stephen Gran
> wrote:
>> Hi,
>>
>> On Tue, 2012-08-21 at 21:00 -0700, Douglas Garstang wrote:
>>> I know I did this once before but can't find docs on how to do i
On Tue, Aug 21, 2012 at 11:19 PM, Stephen Gran
wrote:
> Hi,
>
> On Tue, 2012-08-21 at 21:00 -0700, Douglas Garstang wrote:
>> I know I did this once before but can't find docs on how to do it again.
>>
>> I have this in a yaml file:
>>
>> pvdisks:
&
I know I did this once before but can't find docs on how to do it again.
I have this in a yaml file:
pvdisks:
ec2_pvdisks_m1.small:
disks: /dev/xvdb1
enabled: yes
Loading it with hiera.
Manifest has:
$testkey = hiera('pvdisks')
notice ("TESTKEY=$testkey[ec2_pvdisks_
Oh god that's ugly.
On Sun, Aug 19, 2012 at 7:48 PM, Eric Shamow wrote:
> Facts exist at top scope, as indicated in the scoping doc several people have
> referred you to on this list. Use $::ec2_instance_type
>
> Sent from my iPad
>
> On Aug 19, 2012, at 10:44 PM, Dou
I don't get it...
if ! ( $ec2_instance_type in [$ec2_inst_type_allow]) {
notice("NOT ALLOWED")
} else {
notice("ALLOWED")
}
2012-08-20T02:39:10.537134+00:00 truth puppet-master[24080]: Dynamic
lookup of $ec2_instance_type at /truth/sauce/env/prod/modules/rol
e/manifest
> On Aug 17, 2012, at 2:27 PM, Douglas Garstang wrote:
>
>> Seems like nodes are matching the default node before they are
>> matching the more specific nodes. My site.pp has:
>>
>> include "nodes/*.pp"
>>
>> In the nodes directory are two fil
Seems like nodes are matching the default node before they are
matching the more specific nodes. My site.pp has:
include "nodes/*.pp"
In the nodes directory are two files, default.pp and nagios_server.pp.
default.pp:
node default {
include role::common
}
nagios_server.pp:
node 'mon01.us1.xx
On Fri, Aug 17, 2012 at 2:01 PM, jcbollinger wrote:
>
>
> On Friday, August 17, 2012 11:23:46 AM UTC-5, Douglas wrote:
>>
>> When chaining execs together, and wanting to ensure that exec
>> resources are not executed on every puppet run, which method is
>> better? Using unless/onlyif or subscribe/
On Fri, Aug 17, 2012 at 9:33 AM, Douglas Garstang
wrote:
> On Fri, Aug 17, 2012 at 12:52 AM, Denmat wrote:
>>
>>
>> On 17/08/2012, at 17:19, Douglas Garstang wrote:
>>
>>> On Thu, Aug 16, 2012 at 11:34 PM, Garrett Honeycutt
>>> wrote:
>>>&
On Fri, Aug 17, 2012 at 12:52 AM, Denmat wrote:
>
>
> On 17/08/2012, at 17:19, Douglas Garstang wrote:
>
>> On Thu, Aug 16, 2012 at 11:34 PM, Garrett Honeycutt
>> wrote:
>>> On 8/16/12 10:44 PM, Douglas Garstang wrote:
>>>> So, this has always puzz
When chaining execs together, and wanting to ensure that exec
resources are not executed on every puppet run, which method is
better? Using unless/onlyif or subscribe/refreshonly?
With unless/onlyif, the exec is evaluated every time. With
subscribe/refreshonly, the exec is only executed when a dep
On Thu, Aug 16, 2012 at 11:34 PM, Garrett Honeycutt
wrote:
> On 8/16/12 10:44 PM, Douglas Garstang wrote:
>> So, this has always puzzled me a bit. By convention, init.pp contains
>> one class, named the same as the module. However, what is the
>> convention when the mod
So, this has always puzzled me a bit. By convention, init.pp contains
one class, named the same as the module. However, what is the
convention when the module may have multiple external access points?
Say you have a module called 'syslog' which provides both a client and
a server class. I typically
On Wed, Aug 15, 2012 at 10:46 PM, Florian Koch
wrote:
> Try
>
> Facter - p
>
> Regards
Thanks. Didn't know about that. Now, back to scraping my eyeballs with
a blunt rusty razor blade, err looking at ruby code.
Doug.
--
You received this message because you are subscribed to the Google Groups
I don't get it. I just wrote a simple test custom fact in ruby (ugh, I
hate ruby) and was able to access it as a variable on the client side.
However, it doesn't appear in the facter output. Is is supposed to?
Doug
--
You received this message because you are subscribed to the Google Groups
"Pu
On Wed, Aug 15, 2012 at 5:03 PM, Calvin Walton wrote:
> On Wed, 2012-08-15 at 14:59 -0700, Douglas Garstang wrote:
>> On Wed, Aug 15, 2012 at 2:58 PM, Douglas Garstang
>> Oops.Typo in paste.I actually used
>>
>> $foo = inline_template("<%= [$pvdi
On Wed, Aug 15, 2012 at 3:05 PM, Tom De Vylder wrote:
>
> On 15 Aug 2012, at 23:58, Douglas Garstang wrote:
>
>> On Wed, Aug 15, 2012 at 2:55 PM, Ryan Coleman wrote:
>>> On Wed, Aug 15, 2012 at 2:51 PM, Douglas Garstang
>>> wrote:
>>>> How
On Wed, Aug 15, 2012 at 2:58 PM, Douglas Garstang
wrote:
> On Wed, Aug 15, 2012 at 2:55 PM, Ryan Coleman wrote:
>> On Wed, Aug 15, 2012 at 2:51 PM, Douglas Garstang
>> wrote:
>>> How do I get get length of an array in puppet DSL?
>>
>> Hi Doug,
>>
>&
On Wed, Aug 15, 2012 at 2:55 PM, Ryan Coleman wrote:
> On Wed, Aug 15, 2012 at 2:51 PM, Douglas Garstang
> wrote:
>> How do I get get length of an array in puppet DSL?
>
> Hi Doug,
>
> You can install the puppetlabs-stdlib module from the Forge and use
> the size fu
How do I get get length of an array in puppet DSL?
Doug
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscr...@
On Tue, Aug 14, 2012 at 2:34 PM, Ryan Coleman wrote:
> On Tue, Aug 14, 2012 at 2:30 PM, Douglas Garstang
> wrote:
>> Yep. That was the culprit. Maybe you guys wanna run this through a
>> 'puppet parser validate' before posting them to the forge...?
>
> Obviousl
What a horrible clusterf*ck mess.
http://www.mailinglistarchive.com/html/puppet-users@googlegroups.com/2010-03/msg00801.html
Doug.
On Wed, Aug 15, 2012 at 10:41 AM, Douglas Garstang
wrote:
> On Wed, Aug 15, 2012 at 10:06 AM, Douglas Garstang
> wrote:
>> My issue may be related
On Wed, Aug 15, 2012 at 10:06 AM, Douglas Garstang
wrote:
> My issue may be related to this bug:
>
> http://projects.puppetlabs.com/issues/13858
>
> "Custom types in environments require loading into master's libdir"
>
> However, now I'm not so sure,
My issue may be related to this bug:
http://projects.puppetlabs.com/issues/13858
"Custom types in environments require loading into master's libdir"
However, now I'm not so sure, This was working previously with a given
client. However, after trying on a fresh client, it's failing with:
err: C
On Wed, Aug 15, 2012 at 7:38 AM, jcbollinger wrote:
>
>
> On Tuesday, August 14, 2012 11:37:26 AM UTC-5, Douglas wrote:
>>
>>
>> Not really. I have three run stages that have been working fine. It
>> was when I tried to add
>>
>> Apt::Source <| |> -> Exec["apt-update"]
>> Exec['apt-update'] -> Pac
On Tue, Aug 14, 2012 at 3:06 PM, Douglas Garstang
wrote:
> On Tue, Aug 14, 2012 at 3:03 PM, Douglas Garstang
> wrote:
>> On Tue, Aug 14, 2012 at 2:59 PM, Douglas Garstang
>> wrote:
>>> On Tue, Aug 14, 2012 at 2:49 PM, Eric Shamow wrote:
>>>> Specifical
On Tue, Aug 14, 2012 at 3:03 PM, Douglas Garstang
wrote:
> On Tue, Aug 14, 2012 at 2:59 PM, Douglas Garstang
> wrote:
>> On Tue, Aug 14, 2012 at 2:49 PM, Eric Shamow wrote:
>>> Specifically the types need to be in the server's $libdir. You can place
>>> th
On Tue, Aug 14, 2012 at 2:59 PM, Douglas Garstang
wrote:
> On Tue, Aug 14, 2012 at 2:49 PM, Eric Shamow wrote:
>> Specifically the types need to be in the server's $libdir. You can place
>> them there manually, but the way they generally get there is via pluginsync.
>
On Tue, Aug 14, 2012 at 2:49 PM, Eric Shamow wrote:
> Specifically the types need to be in the server's $libdir. You can place them
> there manually, but the way they generally get there is via pluginsync. So
> the easiest way to ensure the master can process them is to place them in the
> modu
On Tue, Aug 14, 2012 at 2:40 PM, Eric Shamow wrote:
> Douglas,
>
> Do you intend to use different versions of the type in different
> environments, or are you just concerned with trying to get the same code out
> everywhere?
>
> According to
>
> http://projects.puppetlabs.com/issues/13858
>
> th
On Tue, Aug 14, 2012 at 2:25 PM, Douglas Garstang
wrote:
> I've installed the puppet labs lvm module. After fixing the missing
> "}" at line 20 in init.pp (really?!?!), I'm getting this:'
>
> err: Could not retrieve catalog from remote server: Error 400 on
&g
On Tue, Aug 14, 2012 at 2:22 PM, Ryan Coleman wrote:
> Well that's embarrassing. It seems as those the 'cleaned' match of the
> case statement isn't actually closed. :-/
>
> Would you try adding a closing brace in lvm/manifests/init.pp around
> like 26, where this code appears? It should close the
I've installed the puppet labs lvm module. After fixing the missing
"}" at line 20 in init.pp (really?!?!), I'm getting this:'
err: Could not retrieve catalog from remote server: Error 400 on
SERVER: Puppet::Parser::AST::Resource failed with error ArgumentError:
Invalid resource type physical_volu
On Sat, Aug 11, 2012 at 7:48 PM, Stefan Schulte
wrote:
> On Sat, Aug 11, 2012 at 01:46:57PM -0700, James A. Peltier wrote:
>> - Original Message -
>> | On Fri, Aug 10, 2012 at 05:10:20PM -0700, Douglas Garstang wrote:
>> | > How can I pass an array to a define? It
s causing the problem but it might be confusing the parser.
>> >
>> > -Eric
>> >
>> > --
>> >
>> > Eric Shamow
>> > Professional Services
>> > http://puppetlabs.com/
>> > (c)631.871.6441
>> >
>> > Join
onf 2012 at the Mission Bay Convention Center in San
> Francisco, California on September 27th and 28th --> http://bit.ly/pcsig12
>
>
> On Tuesday, August 14, 2012 at 4:39 PM, Douglas Garstang wrote:
>
>> I just grabbed the puppet labs lvm module from Puppet forge.
>>
>&g
I just grabbed the puppet labs lvm module from Puppet forge.
Attempting to use...
physical_volume {
['/dev/xvdb1', '/dev/xvdc1']:
ensure => present;
}
results in:
err: Could not retrieve catalog from remote server: Error 400 on
SERVER: Syntax error at ':'; expected '
On Tue, Aug 14, 2012 at 6:09 AM, jcbollinger wrote:
>
>
> On Tuesday, August 14, 2012 12:12:33 AM UTC-5, Douglas wrote:
>>
>> Trying to force puppet class execution order with:
>>
>> Class['lvm'] -> Class['network'] -> Class['apt'] -> Class <| |>
>>
>> This is giving me:
>>
>> err: Could not retri
Trying to force puppet class execution order with:
Class['lvm'] -> Class['network'] -> Class['apt'] -> Class <| |>
This is giving me:
err: Could not retrieve catalog from remote server: Error 400 on
SERVER: Resource type class doesn't exist at
/truth/sauce/env/prod/modules/role/manifests/common.
So, general puppet design question. I have a definition called
create_vg that creates an lvm volume group. An input to this is
obviously the list of physical disks. In a normal programming
language, I'd put the identification of the physical disks into one
function, and pass the result of that to
On Sat, Aug 11, 2012 at 10:33 PM, Douglas Garstang
wrote:
> Someone directed me to this...
>
> http://forge.puppetlabs.com/puppetlabs/lvm
>
> How do you install these...? The documentation at
> http://docs.puppetlabs.com/puppet/2.7/reference/modules_installing.html
> says to
--
>> > You received this message because you are subscribed to the Google
>> > Groups "Puppet Users" group.
>> > To post to this group, send email to puppet...@googlegroups.com
>> > (mailto:puppet...@googlegroups.com).
>> > To unsubscribe from this g
Someone directed me to this...
http://forge.puppetlabs.com/puppetlabs/lvm
How do you install these...? The documentation at
http://docs.puppetlabs.com/puppet/2.7/reference/modules_installing.html
says to use the puppet module command... where? On the server? The
docs also say this isn't available
On Sat, Aug 11, 2012 at 5:21 AM, Stefan Schulte
wrote:
> On Fri, Aug 10, 2012 at 05:10:20PM -0700, Douglas Garstang wrote:
>> How can I pass an array to a define? It's not documented in the puppet
>> language guide.
>>
>> I've got:
>>
>>
How can I pass an array to a define? It's not documented in the puppet
language guide.
I've got:
define lvm::create_vg ( $pvdisks ) {
exec {
'pvcreate':
command => "/sbin/pvcreate -yf $pvdisks",
unless => "/sbin/pvdisplay $pvdisks",
...
}
}
cla
On Fri, Aug 10, 2012 at 2:24 PM, llowder wrote:
>
>
> On Friday, August 10, 2012 3:52:42 PM UTC-5, Douglas wrote:
>>
>> On Fri, Aug 10, 2012 at 1:42 PM, llowder wrote:
>> >
>> >
>> > On Friday, August 10, 2012 3:28:33 PM UTC-5, Douglas wrote:
>> >>
>> >> So...
>> >>
>> >> I was just reading the n
On Fri, Aug 10, 2012 at 1:42 PM, llowder wrote:
>
>
> On Friday, August 10, 2012 3:28:33 PM UTC-5, Douglas wrote:
>>
>> So...
>>
>> I was just reading the new puppet scoping documentation at
>> http://docs.puppetlabs.com/guides/scope_and_puppet.html.
>>
>> I don't get it. If I have this...
>>
>> c
So...
I was just reading the new puppet scoping documentation at
http://docs.puppetlabs.com/guides/scope_and_puppet.html.
I don't get it. If I have this...
class web_server {
include common
include webserver
$my_role = "web_server"
}
Can I access the $my_role variable in the webserv
I'm on Ubuntu, and I wanted to always have 'apt-get update' run before
attempting to install packages, so I put this in my top level site.pp
file:
exec {
'refresh-repos':
command => '/usr/bin/apt-get update';
}
Package {
require => Exec['refresh-repos']
}
However, that causes a n
Well that sucks,
On Wed, Aug 8, 2012 at 4:53 PM, Peter Brown wrote:
> I don't think the tag system was designed to be used like that.
> Have you checked all the docs?
>
> On 9 August 2012 01:19, Douglas Garstang wrote:
>> Anyone? Anyone?
>>
>> Sent from my i
On Wed, Aug 8, 2012 at 6:25 AM, jcbollinger wrote:
>
>
> On Tuesday, August 7, 2012 1:25:32 PM UTC-5, Douglas wrote:
>>
>> As usual, I'm confused about scope in puppet. This puppet 2.7.1.
>>
>> In my classes below, the bottom class, company::web::content, requires
>> the file resource '/usr/local/
Anyone? Anyone?
Sent from my iPhone
On Aug 7, 2012, at 4:47 PM, Douglas Garstang wrote:
> All,
>
> Is there a way to run puppet and specify to apply resources NOT
> containing a tag?
>
> ie, negating something like this?
>
> puppetd --tags solaris
>
> The use
All,
Is there a way to run puppet and specify to apply resources NOT
containing a tag?
ie, negating something like this?
puppetd --tags solaris
The use case for this is to put a tag in our application code so that
when running puppet we know changes made there will NOT be enacted.
The only way
As usual, I'm confused about scope in puppet. This puppet 2.7.1.
In my classes below, the bottom class, company::web::content, requires
the file resource '/usr/local/company'. However, that resource is
defined two includes back in the class company::common. I always
thought this wasn't supposed to
Something that I have been confused about for a while.
If I have:
/etc/puppet/modules/foo/manifests/bar.pp:
class foo::bar {
File {
backup => false
}
}
/etc/puppet/manifests/site.pp:
File { backup => true }
which one takes precedence in this situation? What about when an
in
> $ ls -l /tmp/link_to_zz
> lrwxrwxrwx 1 cwood cwood 2 Mar 21 13:03 /tmp/link_to_zz -> zz
>
> (ln target linkname)
>
> On Wed, Mar 21, 2012 at 09:59:50AM -0700, Douglas Garstang wrote:
>> Is there any way to get relative symlinks in puppet?
>>
>> This:
>
Is there any way to get relative symlinks in puppet?
This:
file {
"tomcat-current":
#"/opt/foo/apache-tomcat-current":
ensure => link,
target => "/opt/foo/apache-tomcat-${tomcat_version}";
}
yields:
Wed Mar 21 09:58:05 -0700 2012 Puppet (err): Fai
I'm having some weird issues with puppet 2.7.6 on OpenSUSE.
When I run puppet in the foreground, it's all fine. However, when I
run it as a service, all that get's logged is:
abc:/var/log/puppet # cat puppet.log
Tue Mar 20 10:11:57 -0700 2012 Puppet (warning): iconv doesn't seem to
support UTF-8/
On Tue, Mar 20, 2012 at 9:55 AM, Nan Liu wrote:
> On Tue, Mar 20, 2012 at 9:33 AM, Douglas Garstang
> wrote:
>> On Tue, Mar 20, 2012 at 8:03 AM, Douglas Garstang
>> wrote:
>>> On Tue, Mar 20, 2012 at 7:33 AM, Douglas Garstang
>>> wrote:
>>>> On M
On Tue, Mar 20, 2012 at 8:03 AM, Douglas Garstang
wrote:
> On Tue, Mar 20, 2012 at 7:33 AM, Douglas Garstang
> wrote:
>> On Mon, Mar 19, 2012 at 5:53 PM, Gary Larizza wrote:
>>>
>>>
>>> On Tue, Mar 20, 2012 at 11:35 AM, Douglas Garstang
>>> wr
On Tue, Mar 20, 2012 at 7:33 AM, Douglas Garstang
wrote:
> On Mon, Mar 19, 2012 at 5:53 PM, Gary Larizza wrote:
>>
>>
>> On Tue, Mar 20, 2012 at 11:35 AM, Douglas Garstang
>> wrote:
>>>
>>> I have a 2.7.6 server and a 2.6.4 client.
On Mon, Mar 19, 2012 at 5:53 PM, Gary Larizza wrote:
>
>
> On Tue, Mar 20, 2012 at 11:35 AM, Douglas Garstang
> wrote:
>>
>> I have a 2.7.6 server and a 2.6.4 client. I'm trying to use ext_lookup.
>>
>> site.pp:
>> $extlookup_datadir = "/et
1 - 100 of 678 matches
Mail list logo