On 01/13/2012 07:08 PM, Christopher Wood wrote:
> The courier-imap (and courier-pop) services on my lab VMs don't actually get
> refreshed after puppet drops in the config files. I suspect it's something
> about the lack of /etc/init.d/courier-pop status, coupled with that I have
> the wrong pat
Hi folks,
For the first time since I started playing with puppet I started down the
road of using exported resources This was inspired by my reading all of the
nagios related recipes that went something along the lines of
class nagios {
package {nagios: ensure=> latest }
service
On 01/16/2012 04:23 PM, Antidot SAS wrote:
> Hi everyone,
>
>
> Is there a way to display correctly an array, each time I am trying to
> 'notice' an array I have something like that:
> Here is the code:
> $array = [ 'test' , 'test2']
>
> notice("Here is the $array")
>
> The ouput is as follow:
On Tue, Jan 17, 2012 at 8:38 AM, Peter Berghold wrote:
> Hi folks,
>
> For the first time since I started playing with puppet I started down the
> road of using exported resources This was inspired by my reading all of the
> nagios related recipes that went something along the lines of
>
> class n
Actually I am using "|" (pipes) and not exclamation marks in my actual
recipe. Not sure why the exclamation mark showed up. :-/
On Tue, Jan 17, 2012 at 11:42 AM, Nan Liu wrote:
> On Tue, Jan 17, 2012 at 8:38 AM, Peter Berghold
> wrote:
> > Hi folks,
> >
> > For the first time since I started
Here are the actual class definitions:
class nagios::server inherits nagios {
include gd
case $operatingsystem {
Debian: { include nagios::server::debian}
Gentoo: { include nagios::server::gentoo}
default: { }
}
Nagios_host <<| |>>
On Tue, Jan 17, 2012 at 8:48 AM, Peter Berghold wrote:
> Here are the actual class definitions:
>
> class nagios::server inherits nagios {
> include gd
>
> case $operatingsystem {
> Debian: { include nagios::server::debian}
> Gentoo: { include nagios::server::gentoo
Hi Felix,
> Seeing as this has not been mentioned in the thread yet, I'm compelled
> to add:
>
> $array_to_str = inline_template("<%= array * ', ' %>")
>
> or even
>
> notify { "my-notify":
> message => inline_template("Here is the <%= array * ', ' %>.");
>
> }
Ah, the oldie but goodie inline_t
As long as we're lacking a builtin method for pretty-printing data
structures during a debug session inline templates are going to
continue to be popular in scenarios like this.
On Tue, Jan 17, 2012 at 10:06 AM, Krzysztof Wilczynski
wrote:
> Hi Felix,
>
>> Seeing as this has not been mentioned in
Hi Aaron,
> As long as we're lacking a builtin method for pretty-printing data
> structures during a debug session inline templates are going to
> continue to be popular in scenarios like this.
Sadly, you are right.
I personally dislike inline_template() hackety hacks and would rather
solve a pr
This (or something like it) should be a candidate for stdlib.
On Tue, Jan 17, 2012 at 10:47 AM, Krzysztof Wilczynski
wrote:
> Hi Aaron,
>
>> As long as we're lacking a builtin method for pretty-printing data
>> structures during a debug session inline templates are going to
>> continue to be popu
I have become fully convinced that running puppetmasterd in debug mode is
hot stuff. I found the following deficiencies in my setup and fixed them:
- Doing some random reading I needed to add storeconfigs=true to my
master section of puppet.cfg
- After doing that I got complaints abou
Say I have 50 user accounts that must exist on 3 hosts, each with different
passwords (3 hosts, 50 users, 150 passwords). Is it possible to do this
without defining each user 3 times?
Thank you
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
Maybe something like this?
class users {
user { 'cwood':
password => $fqdn ? {
'host1' => 'password1',
'host2' => 'password2',
},
}
}
include users
If you use a scripted generator to pop out the manif
Ahh! That might work for me, thanks! You're wondering why I don't
use LDAP or other centralized authentication? I'm not familiar with
it, I don't know whether it has the ability to do what I want, and I'd
have to convice my CTO, who doesn't experience my issues directly that
it's better than me
what does this mean?
err: Could not retrieve catalog from remote server: Error 400 on SERVER:
Exported resource Nagios_contact[sharkrivertech-support] cannot override
local resource on node slcdmon0.slc.sharkrivertech.com
warning: Not using cache on failed catalog
err: Could not retrieve catalog;
Hi,
first, thanks for the reply, and the solutio!
Set "notify => undef" on the node without the dependency does the
trick for me.
For completing the Informations:
i do the export on all nodes, and the collect on two nodes.
the first collecting node should get all exported hosts, the second
sch
Worked great, just what I needed, you made my day! :)
On Jan 17, 11:49 am, Christopher Wood
wrote:
> Maybe something like this?
>
>
> class users {
>
> user { 'cwood':
> password => $fqdn ? {
> 'host1' => 'password1',
> 'host2' => 'password2',
I definitely need some assistance in conceptualizing something.
If I want to configure syslog-ng instead of rsyslog, or configure rsyslog
instead of sysklogd, the previous syslog daemon has to be stopped (and
disabled) before the new one starts. De-configuring the previous one works just
fine w
On Tue, Jan 17, 2012 at 13:09, Christopher Wood
wrote:
> I definitely need some assistance in conceptualizing something.
>
> If I want to configure syslog-ng instead of rsyslog, or configure rsyslog
> instead of sysklogd, the previous syslog daemon has to be stopped (and
> disabled) before the
On Tue, Jan 17, 2012 at 1:09 PM, Christopher Wood
wrote:
> I definitely need some assistance in conceptualizing something.
>
> If I want to configure syslog-ng instead of rsyslog, or configure rsyslog
> instead of sysklogd, the previous syslog daemon has to be stopped (and
> disabled) before the
The sqlite3 backend is now complaining it can't find the table "hosts."
How to fix? Not sure how I got here...
--
Peter L. Berghold
Owner, Shark River Technical Solutions LLC
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this g
After groking the defined types link, it everything looked good. The
issue was that the data needed to be unique for this to work. I
ensured that each of my instances had a unique name in its YAML file,
as well for the names of the apps. Now it is cruising right along.
Thanks,
Berry
On Jan 12,
Hi,
When using stored configs with exported resources, I'm getting an odd sort
order for arrays. For example, I have the following resource exported by
all nodes ;
@@sshkey { "${::fqdn}_dsa":
host_aliases => ["$::fqdn","$::hostname","$::hostip"],
type => dsa,
key => $::sshd
Thanks for the help guys.
I actually decided to abandon using Augeas as it seemed like overkill
for the project.
I've setup a github page for this project at
https://github.com/jaredcurtis/puppet-nrpe.
I started doing this after reading Tim Sharpe's article "Stop writing
puppet modules that suck
Thanks for the tip Aaron.
I have stuck with the platform RPMs as indicated earlier in the
thread. I could not find a ruby-augeas SLED platform RPM.
I downloaded the ruby-augeas-0.4.1-1.el5.src.rpm and tried to rebuild
it on the SLED11SP1 machine.
I had to make changes to the spec file to get rpm
If I wanted to allow all the variables normally set within params.pp
to also be assigned as class parameters or as global variables how
would I do this?
I still want all the variables to be initially set to defaults within
the params.pp class but allow for them to be overridden at the node
level.
Thanks for the great replies Nigel. As a person currently rolling out
Puppet into production I'm stricken with doubt about how to best
represent variables in a module. It would seem to me that I need to:
1. set default values in params.pp (based on facts, yadda yadda)
2. allow those values to be o
On Tue, Jan 17, 2012 at 9:33 PM, Ryan Bowlby wrote:
> Thanks for the great replies Nigel. As a person currently rolling out
> Puppet into production I'm stricken with doubt about how to best
> represent variables in a module. It would seem to me that I need to:
>
> 1. set default values in params
Looking into it now, thanks. Related question, I see a lot of modules
where an optional package is available as another class, example
include apache::ssl
would install apache and mod_ssl. With parametrized classes is it now
better to make this a parameter?
node blahblah {
class { 'apache':
Thx this help a lot
On Mon, Jan 16, 2012 at 6:04 PM, Krzysztof Wilczynski <
krzysztof.wilczyn...@linux.com> wrote:
> Hi,
>
> [...]
> > There is no way to put a clean IFS for the ouput...
>
> You could use join() to join array elements with a single space and
> display then with notice, or have a
Hey me again, stupid question where do I put the file?
On Tue, Jan 17, 2012 at 9:58 AM, Antidot SAS wrote:
> Thx this help a lot
>
>
> On Mon, Jan 16, 2012 at 6:04 PM, Krzysztof Wilczynski <
> krzysztof.wilczyn...@linux.com> wrote:
>
>> Hi,
>>
>> [...]
>> > There is no way to put a clean IFS for
This is because puppet lacks the join() function, the obvious (but absent)
partner to the split() function.
However you can add it by using a custom function very easily, as we've done.
Email me if you'd like a copy of the join.rb file to put in your
puppet/parser/functions directory. The onl
You can make the package resource definition conditional.
class foo {
if ! defined( Package[gcc] ) {
package { gcc: ensure=>installed; }
}
}
class bar {
if ! defined( Package[gcc] ) {
package { gcc: ensure=>installed; }
}
}
Or, define a new class for the package(s) and include that
clas
Hi Steve,
> This is because puppet lacks the join() function, the obvious (but absent)
> partner to the split() function.
[...]
By default yes, it does. But you can mitigate this problem with
puppetlabs-stdlib[1] and/or tackle this one:
https://github.com/kwilczynski/puppet-functions/blob/maste
Hi James,
[...]
Would it be possible to have one in London too? :-)
KW
--
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-
Hi everyone,
Is there a way to handle default setting easily, let me explain, I want to
create a user but if the uid is specified I would to use it as follow:
---
class user::create ($uid='' ) {
user { "$name":
ensure => present,
uid => "$uid",
}
---
Or am I forced to used the followi
The code appears to be fine. The issue is with VMware it doesn't like
me replacing the network config files but if I manually edit them it
seems to be fine. Is it possible to have puppet just edit the contents
of files instead of completely replacing them? Does anyone else have
problems with file r
Hi Felix,
You've finally found the problem. Indeed you were right, it was no
problem of the resource package, had a problem with DNS name
resolution prevented our local repository.
Currently we solve this, so thank you very much for the help offered.
A new greeting and apologies for the inconvenie
On Jan 16, 4:16 am, Florian Koch
wrote:
> Hi,
>
> i use exported hosts and Host <<| |>> to collect all hosts and ips
> for my hosts file.
>
> i like to use this to manage my dnsmasq installation, and use
>
> <<| tag == ${domain} |>> ~>Service['dnsmasq']
>
> this works.
>
> on another Host i use
On Jan 17, 4:34 am, Antidot SAS wrote:
> Hi everyone,
>
> Is there a way to handle default setting easily, let me explain, I want to
> create a user but if the uid is specified I would to use it as follow:
>
> ---
> class user::create ($uid='' ) {
> user { "$name":
> ensure => present,
> uid
i would like to use the module puppet-lvm and would like to pass
values to it.
I have it setup properly as a module but I can't for the lfe of me get
it to take any values that I put in my baseconfig.pp in my home
folder.
like shouldn't something like this work??
puppet-lvm {'setvolume':
On Jan 17, 4:34 am, Antidot SAS wrote:
> Hi everyone,
>
> Is there a way to handle default setting easily, let me explain, I want to
> create a user but if the uid is specified I would to use it as follow:
>
> ---
> class user::create ($uid='' ) {
> user { "$name":
> ensure => present,
> uid
On Jan 17, 3:11 am, Steve Shipway wrote:
> You can make the package resource definition conditional.
>
> class foo {
> if ! defined( Package[gcc] ) {
> package { gcc: ensure=>installed; }
> }}
>
> class bar {
> if ! defined( Package[gcc] ) {
> package { gcc: ensure=>installed; }
> }
>
>
Pip packages are case sensitive
root@compute:~# pip freeze | grep -i xenapi
XenAPI==1.2
On Mon, Jan 16, 2012 at 5:23 PM, Chris Blumentritt wrote:
> debug: Prefetching pip resources for packagedebug:
> Puppet::Type::Package::ProviderPip: Executing '/usr/bin/pip
> freeze'debug: Puppet::Type::Packa
OK thanks, this helped a lot, and finally with puppet 2.7.9 the 'undef' as
a default value worked.
On Tue, Jan 17, 2012 at 3:59 PM, jcbollinger wrote:
>
>
> On Jan 17, 4:34 am, Antidot SAS wrote:
> > Hi everyone,
> >
> > Is there a way to handle default setting easily, let me explain, I want
>
46 matches
Mail list logo