[Puppet Users] Auto remove certificate from puppet master host

2013-03-04 Thread Roman Alekseev
Hi, Does anybody know how to perform auto removing certificate of host which is unreachable some period? Thanks. -- 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

Re: [Puppet Users] Auto remove certificate from puppet master host

2013-03-05 Thread Roman Alekseev
and invokes puppet ca accordingly (to get rid of stale certificates). > > HTH, > Felix > > On 03/04/2013 11:04 AM, Roman Alekseev wrote: > > Hi, > > > > Does anybody know how to perform auto removing certificate of host which > > is unreachable some period?

[Puppet Users] File directive

2013-06-20 Thread Roman Alekseev
Hi Everyone, Is it possible to use File directive only if some software is installed, otherwise do nothing? For example: file { "/tmp/puppet-nginx-init.sh": ensure => "present", owner => "root", group

Re: [Puppet Users] File directive

2013-06-20 Thread Roman Alekseev
On 20.06.2013 17:46, Martin Alfke wrote: this case the file resource will only be managed if the package resource has been defined. This does not mean, that the package has been installed successfully! For this option you have to add require => Package['nginx'], to your file resource. Thank

[Puppet Users] Re: File directive

2013-06-20 Thread Roman Alekseev
Is the module below correct? class nginx { if defined(Package['nginx']) { file { "/tmp/puppet-nginx.sh": ensure => "present", owner => "root", group => "root", mode

[Puppet Users] Create variable as result of command execution

2014-03-19 Thread Roman Alekseev
Hello, What is the best way in puppet to create a variable as result of command below: *$nginx_dir=`/usr/sbin/nginx -V 2> /etc/puppet/nginx.args | /bin/cat /etc/puppet/nginx.args | /usr/bin/awk -F'--http-proxy-temp-path=' {'print $2'} | /usr/bin/awk {'print $1'} | /bin/grep '\/'`* Any advices

Re: [Puppet Users] Create variable as result of command execution

2014-03-19 Thread Roman Alekseev
proxy-temp-path=' {'print $2'} | /usr/bin/awk {'print $1'} | /bin/grep '\/'") endend* Thanks. среда, 19 марта 2014 г., 12:13:16 UTC+4 пользователь Jose Luis Ledesma написал: > > Hi, > > I think that the best way is a custom fact. > > Re

[Puppet Users] Re: Create variable as result of command execution

2014-03-19 Thread Roman Alekseev
') end end **** среда, 19 марта 2014 г., 11:27:15 UTC+4 пользователь Roman Alekseev написал: > > Hello, > > What is the best way in puppet to create a variable as result of command > below: > *$nginx_dir=`/usr/sbin/nginx -V 2> /etc/puppet/nginx.args

Re: [Puppet Users] Create variable as result of command execution

2014-03-20 Thread Roman Alekseev
Thank you! This is also working: /usr/sbin/nginx -V 2>&1 | /bin/grep -oP "http-proxy-temp-path=.*?\s" | /usr/bin/awk -F\'=\' {\'print $2\'} среда, 19 марта 2014 г., 17:31:45 UTC+4 пользователь jcbollinger написал: > > > > On Wednesday, Marc

[Puppet Users] Comparing pathes in puppet

2014-03-21 Thread Roman Alekseev
Hello, I have two variables: $a = some_path $b = othe_path and truing to compare it if $a != $b { do something } but always these variables are not equal for puppet. In my case it can be equal, for example $a = /var/cache/nginx/proxy_temp $b = /var/cache/nginx/proxy_temp How can it be fixed?