[Puppet Users] Re: Load balancing Puppet Server

2015-05-13 Thread Stefan Wiederoder
Hello Joao,

sorry - no help, but I'm also looking for a puppet server 2.x howto about 
centralizing the CA.
I'm currently using mod_proxy/mod_passenger with an F5 loadbalancer in 
front of two servers.

I'd be nice if puppetlabs would provide such an howto, it´d help/speedup 
puppetserver adoption.

bye
,
Stefan

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/ab35abb4-8ede-4376-9629-9a0db83bce5f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] puppetserver 2.0.0 and fileserver.conf counterpart?

2015-04-30 Thread Stefan Wiederoder
I´m struggling with puppetserver 2.0.0 on RHEL7, how do I configure 
puppetserver regarding the fileserver settings?


-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/2d119b9e-7fe7-43b3-baef-ddedad426f55%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] puppetserver 2.0.0 and ca_ttl

2015-04-21 Thread Stefan Wiederoder
I'm trying to recreate my setup with puppet4, this means two puppetmaster 
(Apache, passenger) with an F5 loadbalancer (no SSL offloading)
and one puppetmaster acting as a CA.

now I'm stuck with my new CA regarding ca_ttl within the new configuration 
files of puppemaster 2.0.0

I've used ProxyPassMatch with Apache, how is this going to work with 
puppetmaster?


-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/42e59b99-3505-40ee-8745-fc2bef8dfeaf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] puppet resource ordering/execution kungfu

2014-08-21 Thread Stefan Wiederoder
that´s the pattern I´m already using for a few other things, I was hoping 
there´s a cool new parameter to trigger a require only if necessary.

thanks for your answer Flamarion!

bye
,
Stefan

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/edf8f63a-fe9f-4c6d-bbcf-e9090d70f4cb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] puppet resource ordering/execution kungfu

2014-08-20 Thread Stefan Wiederoder
Hello puppet users,

I´m struggling with puppets resource odering 

my task is to install the QConvergeConsoleCLI rpm, which needs /tmp as 
executable - which is per default noexec on our boxes.

but adding a require to the package instruction will always mount /tmp as 
executable even if the package is already installed?
package { [ "QConvergeConsoleCLI" ]: ensure => installed, require => 
Exec['execmount']; }

is there any chance to trigger the require ONLY if the package is NOT 
installed?


bye
,
Stefan

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/48d0074b-9494-4a12-a3cb-87a83d97314d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Re: Announce: Facter 2.0.1

2014-04-02 Thread Stefan Wiederoder
we´ve had trouble with the new version too:

[root@zoe ~]# facter
undefined method `kernel' for Facter:Module


result was a downgraded to 1.7.5-1

RHEL6-64 with
ruby: 1.8.7.352 
puppet: 3.4.3

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/e43da920-62a8-4c79-b039-77a10dca927d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] puppetdb: no communication between PM and puppetdb

2013-12-11 Thread Stefan Wiederoder
Hi Jeff,

thanks for your reply.

you were right, I´ve once had my first puppetdb installation on the same 
host - but all the
files have been removed and there was no defunct java process running 
anymore.

but then I found the problem was within my puppet.conf, because I´ve added 
these two variables
#http_proxy_host = 1.1.1.1
#http_proxy_port = 3128

and that was the reason I saw no communication!

now everythings running fine!

thanks for you help.

bye
,
Stefan


 

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/73329629-d6ef-4ffa-aaec-c52b319ce5ca%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Puppet Users] puppetdb: no communication between PM and puppetdb

2013-12-11 Thread Stefan Wiederoder
Hello out there,

I´m trying to add puppetdb (on a separate host, 
puppetdb-1.5.2-1.el6.noarch) to my puppet setup (passenger, 
puppet-3.1.0-1.el6.noarch).

I´ve used the PL documenation, but I receive the following message after 
restarting apache:
2013-12-11T13:28:47.859827+01:00 belbo puppet-master[26103]: Could not 
retrieve facts for host.where.ever: Failed to find facts from PuppetDB at 
129.128.100.11:8081: 403 "Forbidden"

strange this is that there´s absolutely no network communication on port 
8081 from my puppetmaster to my server running puppetdb ???

puppetdb is up and running, the port 8081 is used by the puppetdb java 
process:
[root@puppetdb conf.d]# netstat -utlepn |grep 8081
tcp0  0 129.128.100.11:8081   
0.0.0.0:*   LISTEN  496555873012  7864/java

using telnet/nc and tcpdump on my puppetdb shows that there´s no firewall 
problem, the hosts are within the same subnet
(and no local iptables is running).

I´m helpless, I´ve checked everything two/three times, but it´s really 
frustrating to have no communication at all.

any ideas?

thanks
,
Stefan

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/c45292d8-0027-40d9-b1b1-3d2de5ab6539%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Puppet Users] puppet and CI

2013-08-02 Thread Stefan Wiederoder
Hello David,

>>What checks are you doing that take 6 minutes? A simple syntax check and 
>> erb evaluation takes around 30s on a big repo over here. 

I´ve to admit that I´m using puppet-lint with all options, which throws a 
lot of warnings
I´ll eliminate a few options.

bye
,
Stefan



-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.




[Puppet Users] puppet and CI

2013-08-01 Thread Stefan Wiederoder
Hello puppet users,

I´ve setup gerrit/jenkins on a box to add versioniong/CI to my puppet 
setup. I´m a jenkins/git beginner,
therefore I´ve googled to find bits and pieces which I´ve put together.

It´s working fine so far, the only drawback is that my jenkins job is 
always checking the whole repository
(which takes six minutes) - instead of only checking the patchset (one .pp 
file)

I suspect that my Refspec/branches to build is wrong, can anybody help me 
regarding this topic?

thanks & bye
,
Stefan

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.




[Puppet Users] mtime/md5lite with puppet 3.x bug Bug #13199

2013-06-25 Thread Stefan Wiederoder
Hello List,

I´ve tried to switch from md5 checksum to md5lite within all my 
configuration to spare a few cpu cycles on my master,
but it didn´t work at all :-(

Then I´ve found out about bug #13199, but the bugs lists only 2.7x as 
affected.

can anybody confirm this issue on 3.x?

funny that the bug isn´t anywhere on the roadmap at all  I´d suggest to 
remove mtime/md5lite from the
documentation.

it´s not a feature, it´s a bug 

bye
,
Stefan

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.




[Puppet Users] switching checksums

2013-05-02 Thread Stefan Wiederoder
Hello puppet users,

I´de like to switch from md5 checksums to md5lite to save a few cpu cycles 
on my (overloaded) puppetmaster.

so it is just replacing md5 to md5lite within my manifests and I´m done or 
do I have to keep things like
the local clientbucket in mind?

are there any procedures/recommondations regarding this?

I´m running puppet >= 3.1.x on my puppet minions and master.

bye
,
Stefan

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[Puppet Users] switching checksum: did not match checksum

2013-03-11 Thread Stefan Wiederoder
Hello puppet users,

I´ve switched from md5 to md5lite to save some CPU cycles on my master, but 
this is causing me a lot
of error messages where puppet is complaining about failed checksums.


Info: FileBucket adding {md5}3718fe556702d608c2490d7ffeffd890
Info: /File[/usr/local/bin/pollcmd]: Filebucketed /usr/local/bin/pollcmd to 
puppet with sum 3718fe556702d608c2490d7ffeffd890
Error: Could not rename temporary file 
/usr/local/bin/pollcmd.puppettmp_3717 to /usr/local/bin/pollcmd: File 
written to disk did not match checksum; discarding changes 
({md5lite}3718fe556702d608c2490d7ffeffd890 vs 
{md5lite}cdb3222ddd0a8bb7a66fd66f765dda20)
Error: /File[/usr/local/bin/pollcmd]/content: change from 
{md5lite}cdb3222ddd0a8bb7a66fd66f765dda20 to 
{md5}3718fe556702d608c2490d7ffeffd890 failed: Could not rename temporary 
file /usr/local/bin/pollcmd.puppettmp_3717 to /usr/local/bin/pollcmd: File 
written to disk did not match checksum; discarding changes 
({md5lite}3718fe556702d608c2490d7ffeffd890 vs 
{md5lite}cdb3222ddd0a8bb7a66fd66f765dda20)
Notice: /File[/usr/local/sbin/buildautofs.sh]/content:

Info: FileBucket adding {md5}df0aeaebef45f6209f84509125e617e9
Info: /File[/usr/lib/ruby/site_ruby/1.8/puppet/provider/package/rpmnd.rb]: 
Filebucketed /usr/lib/ruby/site_ruby/1.8/puppet/provider/package/rpmnd.rb 
to puppet with sum df0aeaebef45f6209f84509125e617e9
Error: Could not rename temporary file 
/usr/lib/ruby/site_ruby/1.8/puppet/provider/package/rpmnd.rb.puppettmp_5094 
to /usr/lib/ruby/site_ruby/1.8/puppet/provider/package/rpmnd.rb: File 
written to disk did not match checksum; discarding changes 
({md5lite}df0aeaebef45f6209f84509125e617e9 vs 
{md5lite}07709d41aaebe6c23513fae75c7e470a)
Error: 
/File[/usr/lib/ruby/site_ruby/1.8/puppet/provider/package/rpmnd.rb]/content: 
change from {md5lite}07709d41aaebe6c23513fae75c7e470a to 
{md5}df0aeaebef45f6209f84509125e617e9 failed: Could not rename temporary 
file 
/usr/lib/ruby/site_ruby/1.8/puppet/provider/package/rpmnd.rb.puppettmp_5094 
to /usr/lib/ruby/site_ruby/1.8/puppet/provider/package/rpmnd.rb: File 
written to disk did not match checksum; discarding changes 
({md5lite}df0aeaebef45f6209f84509125e617e9 vs 
{md5lite}07709d41aaebe6c23513fae75c7e470a)
Notice: /File[/etc/rsyslog.d/puppet.conf]/content:


I´m using puppet 3.x on my client and puppet 3.0.1-1 on my puppetmaster.

thanks,
Stefan




-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[Puppet Users] Re: using file_line with match

2013-01-21 Thread Stefan Wiederoder
Hello Ellison,

yes, you´re right, now it´s working:

file_line { "xxx": line => "ALLOWHOST server1|server2", path => "/tmp/sw", 
match => "ALLOWHOST.*$", ensure => present }


thanks
,
Stefan

Am Freitag, 18. Januar 2013 18:50:36 UTC+1 schrieb Ellison Marks:
>
> @Stephan, as it stands, the match parameter must be able to regex match 
> the line parameter. I think this is so you can only replace similar lines. 
> You could drop the $ at the end and it would probably work.
>
> @bernard, I think something is wrong with the client you use to access the 
> group. Your replies are getting posted to random threads.
>
> On Friday, January 18, 2013 12:07:44 AM UTC-8, Stefan Wiederoder wrote:
>>
>> I´m using stdlib 3.2 on my 3.0.1 master/agent
>>
>> my goal is to replace a line within a configuration file to add one more 
>> server like this:
>> file_line { "xxx": line => "ALLOWHOST server1|server2", path => 
>> "/tmp/sw", match => "^ALLOWHOST$", ensure => present }
>>
>> I´ve tried to use match to ensure that the existing line is changed, but 
>> I´m getting this error message:
>> Error: Failed to apply catalog: When providing a 'match' parameter, the 
>> value must be a regex that matches against the value of your 'line' 
>> parameter
>>
>> how can I solve this?
>>
>> thanks
>> ,
>> Stefan
>>
>

-- 
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/-/rvcMdignUksJ.
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://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] using file_line with match

2013-01-18 Thread Stefan Wiederoder
I´m using stdlib 3.2 on my 3.0.1 master/agent

my goal is to replace a line within a configuration file to add one more 
server like this:
file_line { "xxx": line => "ALLOWHOST server1|server2", path => "/tmp/sw", 
match => "^ALLOWHOST$", ensure => present }

I´ve tried to use match to ensure that the existing line is changed, but 
I´m getting this error message:
Error: Failed to apply catalog: When providing a 'match' parameter, the 
value must be a regex that matches against the value of your 'line' 
parameter

how can I solve this?

thanks
,
Stefan

-- 
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/-/Tm05hnL9shcJ.
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://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] looping over directory array

2013-01-08 Thread Stefan Wiederoder
I´ve an application which has always the same directory structure:
/some/where/app1/foo
/some/where/app1/bar
/some/where/app2/foo
/some/where/app2/bar
/some/where/app3/foo
/some/where/app3/bar
and so on.

I´de like to set owner/group permissions while using a loop with an array:
$path = "/some/where"
# array
apps = [ "app1", "app2", "app3", ]

but - how can I achieve this?

thanks
,
Stefan




-- 
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/-/NA14XwvAjzUJ.
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://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] stdlib module not working

2012-03-30 Thread Stefan Wiederoder
thanks Eric,

ensure did the trick, now I´m stuck while trying to use a facter variable 
within the line statement:
 
file_line { "tmpfs entry":
line => "tmpfs  /dev/shmtmpfs   size=${kis_tmpfs_size}  0 0",
path => "/etc/fstab.d/system.fstab",
ensure => present
}

maybe it´s better to try validate_string.

bye
,
Stefan




-- 
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/-/jUW5dAbHOEsJ.
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://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] stdlib module not working

2012-03-29 Thread Stefan Wiederoder
I´m trying to utilize the new stdlib module, but got stuck after 
installation on my puppet server.

I´ve tried to use the included test file file_line.pp on the server, but 
it´s only creating the file - but not managing the content.

the same problem on my clients (the new provider file_line has been 
synced), it´s just not working:

file_line { 'puppet master host entry':
line => '172.16.240.200  master.dev.puppetlabs.com   
master',
path => '/etc/hosts',
}

do you have any Ideas what´s wrong?

thanks
,
Stefan

-- 
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/-/0o7HAJOKmD8J.
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://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Re: question regarding case and facts

2012-02-21 Thread Stefan Wiederoder
Hello Marc,

thanks for your reply, I´ll give it a try.


On 13 Feb., 15:24, Marc DiBlasi  wrote:
> You can do:
> case "$factA$factB" {
>
> }
>
> Or even better, assign them to a new variable:
>
> $concatenatedFacts = "$factA$factB"
>
> case $concatenatedFacts {
>
> }
>
> Or if it makes it cleaner for your specific implementation, you may
> want to check $factA, then have a nested if statement to check $factB.
>
> On Feb 13, 5:43 am, Stefan Wiederoder
>
>
>
>
>
>
>
>  wrote:
> > Hi group,
>
> > is it possible to AND different facts using a case?
>
> > for example: factA is "BL460c" and factB is "G6", then AND (=concat)
> > the two arguments:
>
> > case $factA.$factB: {
> >         "BL460cG1" :{ notify {"G1":}        }
> >         "BL460cG6" :{ notify {"G6":}        }
> >         "BL460cG7" :{ notify {"G7":}        }
>
> > }
>
> > thanks,
> > Stefan

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] question regarding case and facts

2012-02-13 Thread Stefan Wiederoder
Hi group,

is it possible to AND different facts using a case?

for example: factA is "BL460c" and factB is "G6", then AND (=concat)
the two arguments:

case $factA.$factB: {
"BL460cG1" :{ notify {"G1":}}
"BL460cG6" :{ notify {"G6":}}
"BL460cG7" :{ notify {"G7":}}
}

thanks,
Stefan

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Re: file Problem after 2.7.6 Upgrade

2011-11-03 Thread Stefan Wiederoder
gotcha, now it´s working again.

thanks RI !

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] file Problem after 2.7.6 Upgrade

2011-11-02 Thread Stefan Wiederoder
Hello List,

I´ve update to 2.7.6 (server + clients, from 2.7.1) after reading the
last CVE, now I´ve got a problem with copying a file
to different releases/architectures using a single statement like
this:

file { "/path/to/file/abc.file": source => "puppet:///path/to/file/xx-
$fact1-$fact2.file", mode => 640, owner => root, group => root,
checksum => md5; }

puppet agent says:
err: /File[/path/to/file/abc.file]: Could not evaluate: Could not
retrieve information from environment production source(s)
puppet:///files/path/to/file/abc-.repo at /etc/puppet/manifests/base/
base_yum.pp:37

this looks like puppet is missing both facts and therefore cannot
construct the required filename
and therefore cannot copy the file to the client (although the file is
present within the files directory).

the client facts file within /var/lib/puppet/yaml/facts has all the
facts, so it´s not a facter problem - but I
suppose I was using an unsupported feature/bug ?

bye
,
Stefan

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Re: problems after puppet upgrade

2010-06-04 Thread Stefan Wiederoder

I´ve revamped my puppet.conf and updated to ruby 1.8.6/gem 1.3.7 and
it seems
that everything´s fine again .

thanks for all input!

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@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.



[Puppet Users] Re: Could not render to yaml: stack level too deep

2010-06-04 Thread Stefan Wiederoder

gosh!

I´ve update to ruby 1.8.6 and gem 1.3.7 - now puppetmaster is running
fine again.

thanks Trevor!

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@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.



[Puppet Users] Re: Could not render to yaml: stack level too deep

2010-06-03 Thread Stefan Wiederoder

> What version of Ruby/Gems are you running?
> I had some problems with that pre Ruby 1.8.5 and Gems 1.3.5

I´m using the following rpm´s (RHEL, EPEL):
rubygems-1.3.1-1.el5
ruby-libs-1.8.5-5.el5_4.8
ruby-shadow-1.4.1-7.el5
rubygem-gem_plugin-0.2.2-2.el5
rubygem-rake-0.8.3-1.el5
libselinux-ruby-1.33.4-5.5.el5
rubygem-daemons-1.0.7-2.el5
rubygem-mongrel-1.0.1-6.el5
ruby-irb-1.8.5-5.el5_4.8
ruby-rdoc-1.8.5-5.el5_4.8
ruby-augeas-0.3.0-1.el5
rubygem-fastthread-1.0.1-1.el5
ruby-1.8.5-5.el5_4.8

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@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.



[Puppet Users] Could not render to yaml: stack level too deep

2010-06-03 Thread Stefan Wiederoder
I´ve got the following message in my puppet logfile
 Could not render to yaml: stack level too deep

I´ve only found references about increasing the stack size (which is
now 32768),
are there any other options?

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@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.



[Puppet Users] Re: problems after puppet upgrade

2010-06-01 Thread Stefan Wiederoder

I´ve disabled pluginsync on my client, which eliminated the first
error message.
Now I´m still having problems while using modules:
err: Could not retrieve catalog from remote server: Error 400 on
SERVER: Could not find class hostsfile at /etc/puppet/manifests/
site.pp:10 on node xyz.example.com

I´m only using the default-node in my site.pp, which includes all
classes.

any ideas why all modules (13) are not loaded?

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@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.



[Puppet Users] Re: problems after puppet upgrade

2010-06-01 Thread Stefan Wiederoder
client and server run 0.25.5

I think our problem is the missing section [puppetmasterd] within our
puppet.conf on our puppet server.
I´ve added the section with all stuff (including storeconfigs = false)
and reloaded all puppetmaster instances.

but after that I´ll get the following error on my clients:
[r...@clientxxx puppet]# clear; /usr/sbin/puppetd --test --verbose
info: Retrieving plugin
err: /File[/var/lib/puppet/lib]: Failed to retrieve current state of
resource: Could not retrieve information from source(s)
puppet://puppetB.example.com/plugins
.
err: Could not retrieve catalog from remote server: Error 400 on
SERVER: Could not find class hostsfile at /etc/puppet/manifests/
site.pp:10 on node

seems that puppet tries to use plugindest, which defaults to libdir,
which is $vardir/lib (empty folder)
(the fileserver mount plugins is in our fileserver.conf). Next he
tries to load the first module within site.pp,
which fails. Somehow he cannot determine the modulepath = /var/lib/
puppet/modules  ??!?


client puppet.conf
[main]
vardir = /var/lib/puppet
logdir = /var/log/puppet
rundir = /var/run/puppet
ssldir = $vardir/ssl
factpath = $vardir/lib/facter/
factdest = $vardir/lib/facter/
modulepath = /var/lib/puppet/modules
pluginsync = true
#preferred_serialization_format = yaml
[puppetd]
classfile = $vardir/classes.txt
localconfig = $vardir/localconfig
server = puppetB.example.com
runinterval = 1200
report = true
summarize = true


server: puppet.conf
[puppetmasterd]
reports = false
logdest=syslog
confdir = /etc/puppet
modulepath = /var/lib/puppet/modules
manifestdir = /etc/puppet/manifests
storeconfigs = false
rest_authconfig = /etc/puppet/auth.conf
yamldir = /var/lib/puppet/yaml
fileserverconfig = /etc/puppet/fileserver.conf
masterlog = /var/log/puppet/puppetmaster.log
libdir = /var/lib/puppet/lib
plugindest = /var/lib/puppet/modules
thin_storeconfigs = false
factsource = puppet://puppetB.example.com/facts/
certdir = /var/lib/puppet/ssl/certs
pluginsource = puppet://puppetB.example.com/plugins
#factpath = /var/lib/puppet/facts/
factsync = true
vardir = /var/lib/puppet
rundir = /var/run/puppet
ssldir = /var/lib/puppet/ssl
logdir = /var/log/puppet
templatedir = /var/lib/puppet/templates
certname = puppetB.example.com
certdnsname = puppetB.example.com
bind = 4.4.4.4




-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@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.



[Puppet Users] problems after puppet upgrade

2010-05-31 Thread Stefan Wiederoder
we´ve upgraded puppet from 0.24.8 to 0.25.5 last week, since then we
´re experiencing load/memory (and then swapping) problems. Our setup
is based on nginx (0.8.20, four worker processes) balancing to five
puppetmaster instances (servertype mongrel, package:rubygem-
mongrel-1.0.1-6.el5), hardware is one quad-core with 12 GB RAM with
approx. 500 clients (puppet runs only once a day), OS is RHEL5.5 64
Bit.

this was fine until our upgrade, but now we´re running out of memory
every morning:

Mem:  12296768k total,  9891280k used,  2405488k free, 3784k
buffers
Swap:  2096472k total,  1908084k used,   188388k free,95972k
cached

  PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+  COMMAND
13851 puppet25   0 2526m 2.3g  992 R 95.0 19.3  15:38.54
puppetmasterd
14010 puppet18   0 2555m 2.0g  112 D 14.3 17.4  13:40.84
puppetmasterd
13957 puppet18   0 2907m 2.3g  112 D  0.7 19.2  13:51.26
puppetmasterd
13904 puppet18   0 2929m 2.0g  112 D  0.3 17.0  12:29.75
puppetmasterd
1 root  15   0 10348   80   48 S  0.0  0.0   2:53.71 init
...

nginx active connection peak is ~ 200, memory usage with 0.24.8 was
stable with 2-4 GB.

we´ve not changed anything within our puppet configuration, are there
any topics within
moving 0.24.x to 0.25.x which need to be reconsidered?

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@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.



[Puppet Users] Re: site.pp > include execution order

2008-12-18 Thread Stefan Wiederoder


On 18 Dez., 12:57, "paul matthews" 
wrote:
> Hi,
> I fell into the same trap  as Stefan in expecting includes defined in
> nodes.pp and templates.pp to be run in the order they appear in the file. It
> seems there's a certain amount of radomness regarding the running order
> which has been fixed by Mike's suggestion require class statements
>
> eg within the squid class   adding the line require => Class["apache"]
>
> Paul

thanks Paul for your advice, I´ll give it a try




--~--~-~--~~~---~--~~
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...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~--~~~~--~~--~--~---



[Puppet Users] site.pp > include execution order

2008-12-16 Thread Stefan Wiederoder

Hello puppet-users,

I´ve setup a site.pp with only a default node - which has 15 to 20
includes.

how can I make sure that puppet will execute my includes in
predictable
manner? (to make sure the dependencies are satisfied)

for example, I´d first like to setup yum - then install a few needed
packages,
add users and so on.  How can I do that? do I have to name the
includes
aaa/aab/aac or 1_yum/2_packages/3_users  ?

thanks
,
Stefan


--~--~-~--~~~---~--~~
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...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~--~~~~--~~--~--~---



[Puppet Users] Re: question regarding erb-templates

2008-11-24 Thread Stefan Wiederoder


> As far as I understood is the mapping file deployed by puppet as well?
yes, that´s true.

> So how do you generate the mapping file? Wouldn't it be possible to
> generate the config file with these values directly? Or how is the
> mapping file created?
>
> cheers pete

the mapping is file created by other people who are responsible for
the whole application,
they´re putting the file on our server.

therefore it´s possible to generate the config-files on the server and
distribute them like this:

file { "/etc/client.cfg" :
source => "puppet://puppet/x_generated_configs/config_$fqdn",
owner => root,
group => root,
mode => 644
}

thanks for you answer.

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~--~~~~--~~--~--~---



[Puppet Users] question regarding erb-templates

2008-11-24 Thread Stefan Wiederoder

Hi all,

I need advice about the right puppet way of doing things.

my task is to deploy a client software, which includes generating a
configuration file
using a text-file which maps the clients to the server.

I´ve create custom facts, which parse the mapping file and these
values are
used within an erb-template.

problem is that facter is only run at puppet startup (?), and a new
mapping file
copied during the puppet run will not be recognized - as puppet will
fill in the
old facter values which results in a wrong configuration file.

my only solutions so far is to run puppet twice, which is not good.

are there other possible solutions, maybe writing my own function (not
read yet)?

thanks
,
Stefan


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~--~~~~--~~--~--~---