[Puppet Users] Re: delete line in file with substring xyz

2015-02-26 Thread Andreas Dvorak
Dear all now I tried file_line {'test': ensure => 'absent', path => '/root/.ssh/authorized_keys', line => 'test', } Line ssh-rsa SNNwKzN/c1JmSlYOy4hK1yYsOJKOK+n5Vivt3DJGwxL3VpU= test@abc is still there With file_line {'test': ensure => 'absent', path => '/root/.s

[Puppet Users] Re: delete line in file with substring xyz

2015-02-26 Thread Andreas Dvorak
Hi, I have just tried the stdlib version 4.5.1. According to the change log with version 4.5.0 "Don't require line to match the match parameter" But my test does not work file_line {'test': ensure => 'absent', path => '/root/.ssh/authorized_keys', match => 'test', } Error: Fail

[Puppet Users] Updating from 3.2.4 to 3.7.4 problem with exported resources

2015-02-26 Thread Marc
Hi all, This is my current situation: Master A has: - port 8140 - puppet server 3.2.4 - puppetdb terminus 1.6.2 Master B has: - port 8141 - puppet server 3.7.4 - puppetdb terminus 1.6.2 PuppetDB has: - puppetdb 1.6.2 Client has: - puppet client 3.2.4 And my node manifest is: *node 'm

[Puppet Users] Inter-node dependency

2015-02-26 Thread lupindeterd
Hello, I'm pondering what is the best way to approach this problem( without MCollective). I have a serverA than will run a DB backup copy it over to serverB, then serverB do restore then notify serverA for it to execute the next phase of action. This scenario will have to take at least four o

[Puppet Users] Re: delete line in file with substring xyz

2015-02-26 Thread jcbollinger
On Thursday, February 26, 2015 at 2:39:51 AM UTC-6, Andreas Dvorak wrote: > > Hi, > > I have just tried the stdlib version 4.5.1. > According to the change log with version 4.5.0 > "Don't require line to match the match parameter" > But my test does not work > file_line {'test': > ensure =

[Puppet Users] Re: first custom type... in the weeds already

2015-02-26 Thread jcbollinger
On Wednesday, February 25, 2015 at 3:25:57 PM UTC-6, Salty Old Cowdawg wrote: > > I've created a very simple type as follows: > > Puppet::Type.newtype(:bannerfile) do > @doc = "Create a text file with banner text" > ensurable > newproperty(:name)do > isnamevar > end > newproperty(:

Re: [Puppet Users] Re: first custom type... in the weeds already

2015-02-26 Thread Peter Berghold
Puppet::Type.newtype(:bannerfile) do newparam(:name)do end newparam(:bannertext)do end newparam(:bannertext2)do end end but a name variable is being defined and I'm still seeing the issue. On Thu, Feb 26, 2015 at 10:02 AM jcbollinger wrote: > > > On Wednesday, February 25, 2015 a

[Puppet Users] Re: Updating from 3.2.4 to 3.7.4 problem with exported resources

2015-02-26 Thread Marc
Update: Looks like whatever is affecting me was introduced in puppet server 3.6.2 3.2.4 Works 3.3.2 Works 3.4.3 Works 3.5.1 Works 3.6.0 Works 3.6.1 Works 3.6.2 Fails 3.7.3 Fails 3.7.4 Fails The release notes for 3.6.2: Puppet 3.6.2 Security Fixes Feature: Disabling Deprecation Warnings Fix for

[Puppet Users] Re: Newbie got cart before horse - how to make Puppet files match reality

2015-02-26 Thread jcbollinger
I hear your frustration, Karen. I'm sorry this is proving to be such a hassle for you. On Wednesday, February 25, 2015 at 4:35:11 PM UTC-6, Karen Ellrick wrote: > > > It's understandable if the PuPHPet project does not support hand editing >> its output... >> > > If that was the case, Juan wou

[Puppet Users] MYSQL Net-SNMP

2015-02-26 Thread Sergiu Cornea
Hello guys, I was wondering if someone can help me. I am looking for a Puppet net-snmp / snmp module which will work with MYSQL agent. I've searched on Google but at the moment I wasn't able to find anything that might help me. Any help it is much appreciated. Thank you! Regards, -- Thi

[Puppet Users] No puppet for Juniper SRX series?

2015-02-26 Thread Mauricio Tavares
According to http://forums.juniper.net/t5/API-zation/Automation-with-Chef-Puppet-and-Ansible/ba-p/261773, only the QFX, EX, and MX family of routers and switches are supported by puppet. Can anyone confirm that the SRX routers are therefore left out in the rain? I did not get much of a reply i

[Puppet Users] Re: Newbie got cart before horse - how to make Puppet files match reality

2015-02-26 Thread Juan Treminio
On Wednesday, February 25, 2015 at 4:35:11 PM UTC-6, Karen Ellrick wrote: > > > It's understandable if the PuPHPet project does not support hand editing >> its output... >> > > If that was the case, Juan wouldn't have told me in > https://github.com/puphpet/puphpet/issues/1352#issuecomment-726497

[Puppet Users] Re: Newbie got cart before horse - how to make Puppet files match reality

2015-02-26 Thread Juan Treminio
On Thursday, February 26, 2015 at 10:03:35 AM UTC-6, jcbollinger wrote: > > > I hear your frustration, Karen. I'm sorry this is proving to be such a > hassle for you. > > On Wednesday, February 25, 2015 at 4:35:11 PM UTC-6, Karen Ellrick wrote: >> >> >> It's understandable if the PuPHPet project

[Puppet Users] Exec on a node causing action on another node?

2015-02-26 Thread Erling Ringen Elvsrud
Hi I try to solve the following case: I have a bash script, cert_check.sh which is used to check Jboss certificates. The script returns 0 if certs are still valid, 1 if they are about to expire and 2 if they are already expired. The script should be executed on all jboss nodes which is possibl