[Puppet Users] SERVER: Could not match |$mount|

2016-02-19 Thread Michael Wörz
Hello, given the following dict storage: layout: ORA nfs: mounts: /home: sharedfiler:/vol_MWO_shared/misc/os/home /oracle: sharedfiler:/vol/mwo_shared_cdot/misc/db/oracle/oracle i want to iterate over mounts class sysctl::encmounts(){ each($::yaml['storage']['nf

Re: [Puppet Users] Re: dump complete enc to file on client

2015-09-28 Thread Michael Wörz
ENC was synonym for stuctured data passed to the puppet client. i solved it now using a ruby template: <%= YAML.dump(yaml) %> thanks 2015-09-28 15:02 GMT+02:00 jcbollinger : > > > On Monday, September 28, 2015 at 6:10:35 AM UTC-5, Michael Wörz wrote: >> >> Hello, >

[Puppet Users] dump complete enc to file on client

2015-09-28 Thread Michael Wörz
Hello, we want to dump ENC Data to a file on the puppet clients so that it can be used outside puppet scripts. file{'/etc/config-enc': content => "$yaml" } does the Job but the output data is not formated an close to unreadable. Json or Yaml woukd be nice. thanks -- You received this mess

[Puppet Users] Re: Memory leak in Passenger ?

2015-07-28 Thread Michael Wörz
> > >> set PassengerMaxRequests = 1 > thanks, this seems to help. memory usage was constant last 3 days. -- 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 p

[Puppet Users] Memory leak in Passenger ?

2015-07-24 Thread Michael Wörz
Hello, in the past months we are observing raising memory usage on our puppet server and we have to restart it once a week when it starts swapping. Mainly there are 5 Passenger processes that are running for days and using about 15-20% of memory each. System has 4 GB of memory and is serving

Re: [Puppet Users] ordering ressopurces in defined types

2015-01-12 Thread Michael Wörz
12 19:43 GMT+01:00 Felix Frank : > Ah, I see. > > Still, out of curiosity - have you tried Mountentry<| order == 1 |> ...? > > On 01/12/2015 07:42 PM, Michael Wörz wrote: > > generally yes, > > but in this case the names are only examples and dont know which names &

Re: [Puppet Users] ordering ressopurces in defined types

2015-01-12 Thread Michael Wörz
generally yes, but in this case the names are only examples and dont know which names are defined in the database. so the order tag is a more generic way to seperate data from code. but anyway - thanks 2015-01-12 19:18 GMT+01:00 Felix Frank : > On 01/12/2015 05:03 PM, Michael Wörz wr

Re: [Puppet Users] ordering ressopurces in defined types

2015-01-12 Thread Michael Wörz
generally, yes. but in this case 2015-01-12 19:18 GMT+01:00 Felix Frank : > On 01/12/2015 05:03 PM, Michael Wörz wrote: > > Solved - tags do the job > > > > define mountentry($device,$mountpoint,$order) { > > @notify{"$name": > > tag => [&quo

Re: [Puppet Users] ordering ressopurces in defined types

2015-01-12 Thread Michael Wörz
otify <| tag == 'mount2' |> } 2015-01-12 16:10 GMT+01:00 Michael Wörz : > mounts: > > 1_usr_sap: > device: /dev/. > mountpoint: /usr/sap > 2_usr_sap_lmp: > device: /dev/ >

Re: [Puppet Users] Concatinating hashes

2015-01-12 Thread Michael Wörz
I now mannaged to create the file accourately using the concat ressource. sort() also did the job. 2015-01-10 18:00 GMT+01:00 Michael Wörz : > Thanks a lot. i will try this on monday > > 2015-01-09 17:08 GMT+01:00 Stephen Marlow : > >> Yknow, completely disregard the above ans

[Puppet Users] ordering ressopurces in defined types

2015-01-12 Thread Michael Wörz
mounts: 1_usr_sap: device: /dev/. mountpoint: /usr/sap 2_usr_sap_lmp: device: /dev/ mountpoint: /usr/sap/LMP define mountenty(){ # some mount ressource # some directory resource } class sysctl::m

Re: [Puppet Users] Concatinating hashes

2015-01-10 Thread Michael Wörz
;> >> $string = inline_template("<%= @search.values.join(' ') %>") >> >> notify { "ILT String: ${string}": } >> >> Notice: ILT Search: cust2a4y.remotecust1A4T.localcust0a41mgt.local >> all-for-one.local >> Notice:

[Puppet Users] Concatinating hashes

2015-01-09 Thread Michael Wörz
Hello, given the following datastructure i want to create a resolv.conf file dns: nameservers: '3': 10.200.1.230 '4': 10.200.1.231 ... search: cust0: a41mgt.local all-for-one.local cust1: A4T.local .. for the nameserver l

[Puppet Users] Re: Could not set 'file on ensure: undefined method `&' for "760"

2014-08-22 Thread Michael Wörz
Hello, i could narrow this down a little bit `&' for "760":String stands for the file permissions declared as mode => '0760', so there must be a problem when setting file permissions. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To uns

[Puppet Users] Could not set 'file on ensure: undefined method `&' for "760"

2014-08-22 Thread Michael Wörz
Hello, i have a error that occurs randomly on my Suse 11.3 boxes with puppet agent 2.6.18 err: /Stage[main]/Staging::Register/File[/tmp/registersmt.sh]/ensure: change from absent to file failed: Could not set 'file on ensure: undefined method `&' for "760":String at /etc/puppet/environments/te

[Puppet Users] Re: Calculating network address - boolean opertors

2014-05-19 Thread Michael Wörz
uot;$ok1":} Am Montag, 19. Mai 2014 09:08:16 UTC+2 schrieb Joaquin Menchaca: > > Did you escape the meta character of dot? > > $octets = split($ip, '[.]') > > > > On Monday, May 19, 2014 12:01:48 AM UTC-7, Michael Wörz wrote: >> >> Hello folks &g

[Puppet Users] Calculating network address - boolean opertors

2014-05-19 Thread Michael Wörz
Hello folks i need a bit of help calculating the network address from ip an netmask avoiding the use of stdlib within a puppet maifest. #given IP address and netmask $ip="10.122.3.177" $nm="255.255.255.128" #splitting into octets - split() didnt work for some reason if $ip =~ /([0-9]+)\.[0-9]

[Puppet Users] Pupprt testing - continueous integration

2014-05-14 Thread Michael Wörz
Hello, when developping puppet modules i'm: - providing a test.pp for each puppet class that serves a defined parameters set to the class - using git to checkout the complete environment (git clone ssh://puppetmaster:/etc/puppet/environments/development/modules) into my home on

[Puppet Users] force agent fqdn

2014-04-24 Thread Michael Wörz
Hello, when the clients fqdn changes for example when joining to a NIS or AD Domain puppet agent fails to connect to puppet master. *root-> puppet agent -vt* *info: Creating a new SSL key for a4tmwo003.a41.local* *warning: peer certificate won't be verified in this SSL session* *warning: peer ce

[Puppet Users] Getting augeas working on sles 11.2/3

2014-02-14 Thread Michael Wörz
Hello, did anyone get augeas working on current SLES releases without messing up the system. What i find on OBS brings a lot of dependencys and conflicts. its jus one small ruby binding to libaugeas - shouldn't be to hard guys thanks -- You received this message because you are subscribed t

[Puppet Users] Howto install current Version on SLES

2013-10-17 Thread Michael Wörz
Hello, just started with puppet. But the version shipped with Suse Linux Enterprise ist very old and i did not manage to install modules from puppet forge. So i tryed download some packets from buildservice which seemed to work doing basic things, But installed modules from puppet forge caused