On Wed, Jun 20, 2012, at 10:42 PM, R.I.Pienaar wrote:
>
>
> - Original Message -
> > From: "James Patterson"
> > To: puppet-users@googlegroups.com
> > Sent: Wednesday, June 20, 2012 10:39:02 PM
> > Subject: [Puppet Users] How to iterate over an array? (with a counter)
> >
> > Given an a
On Thu, Jun 21, 2012 at 6:20 AM, trey85stang wrote:
> Now in each case I have files where httpd is notified to refresh...
> Is there a way to work around this without creating a custom module
> just for this one case? As you can see from the below error message I
> tried changing the name and usin
Hi,
On Wed, 20 Jun 2012 15:02:43 -0700 (PDT)
Nick Fagerlund wrote:
> What R.I. said. Hyphens in variable names and class names are a no-no,
> although they kinda work in some versions of Puppet. Use underscores
> instead.
>
> (Why are hyphens a problem? Well, partly because you can subtract
I also use some other stuff in my nagios.pp to get puppet facts into
mcollective.
file { "/usr/lib/nagios/.mcollective/etc/facts.yaml":
mode=> "0644",
owner => "104",
group => "106",
loglevel => debug,
content => inline_template("<%= scope.to_hash.reject { |k,v| k.to
With in the class I used something like this to get the facts into my
nagios templates:
define host($ip = $::fqdn, $short_alias = $::fqdn, $hostgroup =
$::product_info, $product_domain = $::product_domain) {
case $product_info {
/OneProduct/: {
$nagios_cfgdir = "/usr/local/nagios/
Hey Nick,
Thank you for the reply. I'll take a look at the defaults.rb file and see
what I can make of it. The explanation regarding the "core group" settings
is most helpful and makes perfect sense.
Again, thanks for the informative links and the info.
Cheers,
Mike
On Wednesday, June 20
On Jun 20, 2012, at 3:02 PM, Nick Fagerlund wrote:
> What R.I. said. Hyphens in variable names and class names are a no-no,
> although they kinda work in some versions of Puppet. Use underscores instead.
>
> (Why are hyphens a problem? Well, partly because you can subtract variables
> in expres
Thank you for the reply Craig. That makes sense and points me in the right
direction.
Thanks again,
Mike
On Wednesday, June 20, 2012 1:06:09 PM UTC-7, Craig White wrote:
>
>
> On Jun 20, 2012, at 12:38 PM, Mike Reed wrote:
>
> > Hello all,
> >
> > I fairly new to puppet and google groups so
Hey All,
Im running into a road block with a server that is going to to be
multi role.
Example:
I want to run a nagios server and a repo server on one box.
My nagios manifest has two services defined:
class nagios::server {
...
service { nagios:
ensure => running,
...
}
service
On Jun 20, 2012, at 5:22 AM, R.I.Pienaar wrote:
>> Are hyphens now officially bad practice? I have a nagging half-memory
>> that I read that they're not good in facts, indeed all of the normal
>> facts are underscore'd but I can't remember where I read it.
>
> They've always been a bad idea, used
What R.I. said. Hyphens in variable names and class names are a no-no,
although they kinda work in some versions of Puppet. Use underscores
instead.
(Why are hyphens a problem? Well, partly because you can subtract variables
in expressions. The ambiguity turned out to be a problem.)
--
You r
- Original Message -
> From: "James Patterson"
> To: puppet-users@googlegroups.com
> Sent: Wednesday, June 20, 2012 10:39:02 PM
> Subject: [Puppet Users] How to iterate over an array? (with a counter)
>
> Given an array, I'd like to iterate over it with a counter to produce
> something
Given an array, I'd like to iterate over it with a counter to produce
something like this from a template:
foo.0 = ARRAYVALUE0
foo.1 = ARRAYVALUE1
foo.2 = ARRAYVALUE2
(where ARRAYVALUEn is replaced by the value, and the foo.n is
incremented for each value)
The puppet templates support iteration,
On Wed, Jun 20, 2012 at 1:22 PM, Jakov Sosic wrote:
> > I'm puzzled as to why can't I just use $operatingsystemrelease, and what
> > do these two semicolons mean?
>
>
> Any ideas?! :) Anyone?!?!
http://docs.puppetlabs.com/guides/scope_and_puppet.html
-Jeff
--
You received this message becaus
The :: refer to scope, in this case it's saying "variables at the very top
scope of what puppet knows about". This is because you can have:
$::operatingsystem
$module::class::operatingsystem
And it's not sure which one you mean. By adding the :: you're making sure
it knows to check the fact and
Hi guys,
I'm trying to use the Subversion module here:
https://github.com/duritong/puppet-subversion
I have unzipped it to my modules folder but I am having problems calling
the definitions from elsewhere in my manifests. I get the following error:
err: Could not retrieve catalog from remote
On 06/18/2012 03:25 PM, Jakov Sosic wrote:
> Hi.
>
> I have the following facts available:
>
> # facter | grep oper
> operatingsystem => CentOS
> operatingsystemrelease => 6.2
>
> Now, if I wish to use conditionals on these facts, I have to do it like
> this:
>
> case $operatingsystem {}
> case
On Wednesday, June 20, 2012 12:38:58 PM UTC-7, Mike Reed wrote:
>
> My question is where do these parameters and values come from? I've
> taken a look at my puppet.conf file...
Defaults! Even if you only SET a few settings in puppet.conf, all of the
POSSIBLE settings still have values. Thes
On Jun 20, 2012, at 12:38 PM, Mike Reed wrote:
> Hello all,
>
> I fairly new to puppet and google groups so I'll apologize in advance for not
> conforming to "normal" posting methods.
>
> I've recently installed puppetmaster on a fresh copy of Ubuntu 10.04LTS and
> after running: sudo puppet
Hello all,
I fairly new to puppet and google groups so I'll apologize in advance for
not conforming to "normal" posting methods.
I've recently installed puppetmaster on a fresh copy of Ubuntu 10.04LTS and
after running: sudo puppet --configprint all, I get a long list of
parameters and values
You do not need to restart anything
The case statement in the module is using the variable $osfamily, not
$operatingsystem
The error message is stating the osfamily is Linux
Replace where you entered 'Amazon' with 'Linux' so it reads as follows
'RedHat', 'Linux': {
On Fri, Jun 15, 2012 at 6:13
puppet kick from your master after you make a change
--
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...@goog
On Jun 20, 2012, at 1:11 AM, R.I.Pienaar wrote:
> I agree but its also quite hard, the proposed fix is using the masters
> vardir location as default for where servers must put their snippets, this
> is ridiculous and not a usable fix.
Yeah, I realized that.
> Pluginsync is well understood and so
On Jun 20, 2012, at 1:03 AM, Felix Frank wrote:
> Humm, I believe it's fair to assume that "most people" have some way of
> puppet provisioning that will be able to take care of this configuration
> detail.
Okay, I've worked at 4 different shops using puppet over the last 6 years (one
is a non-pr
Sorry ... I didn't really follow that link in my setup ... just thought it
would be a good reference as I don't have anything documented. Another
good thing to note is that article uses NGINX.
I'm cheating and am not FULLY redundant. We have a single CA PM that is
not balanced against or redu
On 06/20/2012 05:39 PM, Jake - USPS wrote:
> I'll add that we do loadbalance across multiple puppetmasters. At first
> we were using DNS round-robin to do it, and now use haproxy which a good
> article on utilizing was written up not too long
> ago http://blog.ronvalente.net/blog/2012/05/19/puppet
Check my reply in
https://groups.google.com/forum/?fromgroups#!searchin/puppet-users/USPS/puppet-users/q3bFvenGueI/hQExZ1X7pcwJ
I'll add that we do loadbalance across multiple puppetmasters. At first we
were using DNS round-robin to do it, and now use haproxy which a good
article on utilizi
Oh ok, thanks Dominic. I'll give that a go.
Regards,
Guy
On Wed, Jun 20, 2012 at 1:37 AM, Dominic Cleal wrote:
> On 19/06/12 22:02, Guy Knights wrote:
> > I can now confirm that Dominic was correct. I'm upgraded to puppet
> > 2.7.16 now and the augeas resources are working. One thing I can also
If your hosts do not appear to be reporting, and you're seeing some
background tasks pending (top left in the puppet dashboard web gui), then
you probably need to start the "delayed_job" tasks on your puppet dashboard
server in order to process the reports. Run this:
*env RAILS_ENV=production
Thanks for your support. Please find my responses below.
On Wednesday, 20 June 2012 15:18:17 UTC+2, jcbollinger wrote:
>
>
>
> On Wednesday, June 20, 2012 5:35:39 AM UTC-5, Kmbu wrote:
>>
>> Hello,
>>
>> I'm running Puppet 2.7.6 and currently expanding the number of servers
>> managed by Puppet.
The puppet packages on Opensuse 12.1 are broken...well not broken exactly
but slightly damaged. There is a problem report about it at
https://bugzilla.novell.com/show_bug.cgi?id=714649
which says that puppet uses /var/lock/subsys which is unsupported on
openSUSE.
Now as far as I can see there i
Hello,
could someone tell me how to know what encryption algorithm and what
version is used by Puppet for data encryption ?
I already know that Puppet supplies data encryption by SSL/TLS
(https://groups.google.com/forum/?hl=en&fromgroups#!topic/puppet-users/-LFLE_bj_NA).
Thanks a lot!
--
Y
On Wednesday, June 20, 2012 4:34:48 AM UTC-5, pablo.f...@cscs.ch wrote:
I really think the original question is very good: "why do you need to
> compile all manifests again and again when there is no change on the
> sources (files/ENC/whatever input)?"
>
That's a fair question, but the origi
On Wednesday, June 20, 2012 5:35:39 AM UTC-5, Kmbu wrote:
>
> Hello,
>
> I'm running Puppet 2.7.6 and currently expanding the number of servers
> managed by Puppet. At around the 160-170 host mark (with a 5-minute run
> interval + splay), my puppetmaster server is starting to die. Is this
> no
On Tuesday, June 19, 2012 4:07:56 PM UTC-5, Nick Fagerlund wrote:
>
>
>
> On Tuesday, June 19, 2012 7:19:20 AM UTC-7, jcbollinger wrote:
>>
>>
>> Have I missed a change in plan for node variables, so that in Puppet 3
>> they remain accessible outside node declarations? Does that form of
>> dyn
- Original Message -
> From: "Steph Gosling"
> To: puppet-users@googlegroups.com
> Sent: Wednesday, June 20, 2012 1:20:12 PM
> Subject: [Puppet Users] Custom facts and hyphens
>
> Hi all,
>
> Possibly related to http://projects.puppetlabs.com/issues/10146 but I
> wanted to get a second
Hello,
On Wed, Jun 20, 2012 at 5:48 PM, Brice Figureau
wrote:
>
> Now you need to have a way to map from manifest modification to a set of
> hosts where you need a puppet run (which might not be that trivial).
One possible approach here
http://www.devco.net/archives/2012/04/28/trigger-puppet-ru
Hi all,
Possibly related to http://projects.puppetlabs.com/issues/10146 but I
wanted to get a second opinion.
I have a custom fact that iteratse through the disks on a
given EC2 node and creates facts for block devices based on
their /dev/disk/by-path/ links. I had to come up with this as a
work-
On Tue, 2012-06-19 at 03:23 -0700, Duncan wrote:
> Hi folks, I'm scratching my head with a problem with system load.
>
> When Puppet checks in every hour, runs through all our checks, then
> exits having confirmed that everything is indeed as expected, the vast
> majority of the time no changes ar
Thanks a lot John! yes you got my point.
I think I will better implement version control of my manifests, as you
suggest. This will help for sure, but what I was wondering, was to revert
node configurations.
cheers
On Tuesday, June 19, 2012 6:59:58 PM UTC+2, jcbollinger wrote:
>
>
>
> On Tue
Hello,
I'm running Puppet 2.7.6 and currently expanding the number of servers
managed by Puppet. At around the 160-170 host mark (with a 5-minute run
interval + splay), my puppetmaster server is starting to die. Is this
normal? What I'm getting in the agent logs is the following:
Wed Jun 20 12
Thx, it helps :D
On Wed, Jun 20, 2012 at 11:24 AM, Hendrik Jäger <
puppet-us...@henk.geekmail.org> wrote:
> Hi,
>
> - notice(inline_template("<% tt.to_i.modulo(60) %>"))
> + notice(inline_template("<%= tt.to_i.modulo(60) %>"))
>
> Best regards
>
> henk
>
--
You received this message because yo
But the way I'm reading this, the question of the OP is to reduce cpu
load on the agents, not the master. Puppet is currently unable to see
wether or not something changed on the machine since last run without
actually checking. I guess there's a bunch of indications that you
could use depending on
Hi,
I really think the original question is very good: "why do you need to
compile all manifests again and again when there is no change on the
sources (files/ENC/whatever input)?"
Tricks like the proposed ones are clearly not the solution, and even if
the language is not prepared for that t
Hi,
- notice(inline_template("<% tt.to_i.modulo(60) %>"))
+ notice(inline_template("<%= tt.to_i.modulo(60) %>"))
Best regards
henk
signature.asc
Description: PGP signature
Updated to puppet 2.7.16 and Facter 1.6.10 and I am seeing errors on all my
10.6 and 10.7 machines -
err: Could not create resources for managing Puppet's files and directories
in sections [:main, :agent, :ssl]: undefined method `strip' for
#
info: Retrieving plugin
err: Could not run Puppet co
HI everyone,
I am trying to use the ruby modulo function but without any success, here
is the template:
--
$tt=regsubst($::hostname,'.*front(\d+).*','\1')
notice("$tt")
notice(inline_template("<% tt.to_i.modulo(60) %>"))
--
Here is the result:
notice: Scope(Class[main]): 04
notice: Scope(Class[
On 19/06/12 22:02, Guy Knights wrote:
> I can now confirm that Dominic was correct. I'm upgraded to puppet
> 2.7.16 now and the augeas resources are working. One thing I can also
> confirm is that Alan's observation about the context not working and to
> use the full path in the set command was als
- Original Message -
> From: "Felix Frank"
> To: puppet-users@googlegroups.com
> Sent: Wednesday, June 20, 2012 9:03:48 AM
> Subject: Re: [Puppet Users] facter plugin requires cause catalog failure,
> prevent setting up new clients
>
> On 06/20/2012 01:34 AM, Jo Rhett wrote:
> >
> >>
On 06/20/2012 01:34 AM, Jo Rhett wrote:
>
>> by bootstrap i mean kickstart or whatever, ie. before you run puppet.
>
> I should have some other system that configures my system before I run
> the software to configure my system? ;-)
Humm, I believe it's fair to assume that "most people" have som
Hi,
On 06/19/2012 10:24 PM, Jon Schewe wrote:
>
> Node scope is staying a thing, because it has to for the time being.
>
> - It's unfortunately anonymous, so there's no way to address it
> directly. You have to use the variable's short name to get there.
> - But you can most assu
51 matches
Mail list logo