Re: [Puppet Users] New Resource Type for bareos

2016-01-27 Thread Björn
here are better solutions to handle it without puppetdb, I'm not sure. Regards, Björn Am Dienstag, 26. Januar 2016 16:48:52 UTC+1 schrieb thbe: > > Hi Björn, > > depends on how you would like to implement the fully automatic > configuration. I do this on the server side be

[Puppet Users] New Resource Type for bareos

2016-01-21 Thread Björn
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:507:in `plugin_hook' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:381:in `run' /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:496:in `exit_on_fail' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:381:in `run' /usr/lib/ruby/site_rub

[Puppet Users] Puppet AIX duplicated loading of facts

2015-12-11 Thread Björn
Hello, I try to start with puppet under AIX and it themes that the facts are loading twice. puppet agent -t info: Retrieving plugin info: Loading facts in concat_basedir info: Loading facts in environment info: Loading facts in es_facts warning: Could not load fact file /opt/puppet/var/lib/fac

Re: [Puppet Users] How can I trace "comparison of String with Array failed" error to actual values?

2015-10-22 Thread Björn
So I have to check every file in every module for variables and transform them to an array? :( Am Donnerstag, 30. Juli 2015 23:28:49 UTC+2 schrieb Stephan: > > IIRC I fixed this by consequently making all variables involved > arrays, even if they just had one member. > > On 30

Re: [Puppet Users] String substituion in puppet template

2015-06-01 Thread Björn
tEnvIF X-Forwarded-For ^(#{ip_xforward}) AllowIP" -%> <% end -%> <% end -%> So a array of ip address in the manifests results in SetEnvIf X-Forwarded-For ^(13\.74\.8\.23.*) AllowIP SetEnvIf X-Forwarded-

Re: [Puppet Users] String substituion in puppet template

2015-05-22 Thread Björn
Am Freitag, 22. Mai 2015 11:09:15 UTC+2 schrieb Gabriel Filion: > > On 20/05/15 09:04 AM, Björn wrote: > > I tried it with regsubst, but without success: > > | > > <%ip_xforward.each do|name|-%><%="\t\tSetEnvIF X-Forwarded-For > > ^(regs

[Puppet Users] Changed at and Changed from in file header

2015-05-22 Thread Björn
Hello, is there any possibility to realize that? ## # # Managed by Puppet #

[Puppet Users] String substituion in puppet template

2015-05-20 Thread Björn
Hello, I try to customize my http vhost template and defined and array of ip addresses in the manifests: class apache::webservice( $htdocs = $apache::param::htdocs, $apacheuser = $apache::param::apacheuser, $apachegroup = $apache::param::apachegroup, $logdir = $apache::param::logdir, ) i

[Puppet Users] Re: ensure tomcat - duplicated definition

2014-04-24 Thread Björn Becker
> > or more like your original design, but limited: turn "define download" > into a class that installs only a single version (maybe a separate class > per major version, and just pull in the latest minor of that major release) > and use the include in your defines to avoid du

[Puppet Users] ensure tomcat - duplicated definition

2014-04-23 Thread Björn Becker
=> root, mode=> 0755, } service{"$tc_name": ensure => running, enable => true, hasrestart => true, require=> [ File["$tc_path"], File["setenv.sh $tc_name"], File["manager web.xml

Re: [Puppet Users] nodejs - Running make returns 2 instead of 0

2014-01-15 Thread Björn Becker
Ohhh, you made my day. That shows the problem. We need /bin in PATH for uname. Thanks a lot! Björn Am Mittwoch, 15. Januar 2014 14:39:54 UTC+1 schrieb Ken Barber: > > > This is my exec: > > > > exec {'make nodejs': > > command => "/usr/b

[Puppet Users] nodejs - Running make returns 2 instead of 0

2014-01-15 Thread Björn
ode", cwd => "/usr/local/src/node", path=> ["/usr/bin", "/usr/sbin"], require => Exec['configure nodejs'], } Do you got any idea? Thanks! Björn -- You received this message because you are subscribed to the Google Groups

[Puppet Users] Re: onlyif return code

2013-10-04 Thread Björn
Unless was also a good hint! But my sed solution was running every time puppet agent run. So I use file_line now. Thanks! On Wednesday, October 2, 2013 1:15:53 PM UTC+2, Björn wrote: > > Hello, > > I try to ensure our password policies using /etc/login.defs and PAM > crack

Re: [Puppet Users] onlyif return code

2013-10-04 Thread Björn
Hello Mike, thanks a lot, file_line works great! I not remember why I don't use file_line for such things. Björn On Thursday, October 3, 2013 2:35:46 AM UTC+2, Mike Delaney wrote: > > On Wed, Oct 2, 2013 at 4:15 AM, Björn > > wrote: > >> exec{'ensure passw

[Puppet Users] onlyif return code

2013-10-02 Thread Björn
Unfortunately, this exec run when the return code of onlyif is 0. I don't know a command which return 0 when the line isn't available and return 1 when the line is available. May be I'm thinking to complicated? Do you have another solution? Thanks a lot! Björn -- You recei

[Puppet Users] ossec integration

2013-05-24 Thread Björn
> running, hasrestart => true, hasstatus => true, status => '/etc/init.d/ossec | grep "ossec-agentd is running"', } Thanks! Björn -- You received this message because you are subscribed to the Google Groups "Puppet Users" g