[Puppet Users] Re: Puppet Server on public host/IP address?

2022-10-21 Thread Matthias Pigulla
suggestions for Open Source Puppet as well? Thanks Matthias david.sa...@puppet.com schrieb am Donnerstag, 20. Oktober 2022 um 17:29:59 UTC+2: > Our support for TLS termination is messy and you need to use a reverse > proxy in front of PE, We have a couple of Patterns surrounding multi &g

[Puppet Users] Puppet Server on public host/IP address?

2022-10-19 Thread Matthias Pigulla
Dear Puppet Users, until now, I have been using Puppet in firewalled environments only, where agents were on the same trusted network as the server or connected through VPN tunnels. Now there seem to be some good reaons for switching to a "perimeterless security" approach, which would mean to

Re: [Puppet Users] Hiera values in provider

2022-08-02 Thread Matthias K
k into the nexus provider anyway to gain some more insights how they approach the whole provider implementation when interacting with a remote api. Best regards, Matthias On Tuesday, 2 August 2022 at 08:03:49 UTC+2 dhei...@opentext.com wrote: > Am Montag, dem 01.08.2022 um 12:47 -0700 s

Re: [Puppet Users] Hiera values in provider

2022-08-01 Thread Matthias K
e server for use when compiling the > catalog. Providers run on the agent after the catalog has been compiled. > > If you need to get to Hiera data, write your type/provider such that it > accepts a parameter, then look that up from Hiera and pass it in when you > declare a res

[Puppet Users] Hiera values in provider

2022-08-01 Thread Matthias K
Hi, is it possible to access hiera values within a custom provider? -- 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

[Puppet Users] Re: Puppetserver performance plummeting a few hours after startup

2020-02-06 Thread Matthias Baur
, Matthias Am Donnerstag, 6. Februar 2020 11:51:42 UTC+1 schrieb Martijn Grendelman: > > Hi, > > A question about Puppetserver performance. > > For quite a while now, our primary Puppet server is suffering from severe > slowness and high CPU usage. We have tried to tweak it

[Puppet Users] Need help for configuring / migrating from Puppet 3.8 to Puppet 6.x

2019-04-17 Thread Matthias Steffens
Hi everybody! I've the task to migrate our existing puppet installation from Puppet 3.8 to Puppet 6.x and my colleague gave me the following tasks to do this: - Hiera: all nodes should be configurable via hiera --> as with our currently installed version which has the following configuration:

Re: [Puppet Users] 'puppet agent -t'

2019-03-28 Thread Matthias Steffens
> This message indicates, that the agent has created a certificate, has sent > the CSR to the master and is now waiting for the master to sign the > certificate. > > Log in to your puppetmaster. > > Check puppet and puppetserver version. > puppetserver --version > puppet --version > > If you ar

Re: [Puppet Users] 'puppet agent -t'

2019-03-28 Thread Matthias Steffens
> > When your agent didn't create a cert yet, you need to specify an >> additional option that'll create the cert and wait for the master to >> sign the certificate signing request: >> >> puppet agent -t --waitforcert 10 >> >> the integer value to the argument is the number of seconds to w

[Puppet Users] 'puppet agent -t'

2019-03-26 Thread Matthias Steffens
somone explain me why I've doent't get an Certificate on my Node? Thanks for your help and reply, Matthias -- 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 i

Re: [Puppet Users] Which training should i go for?

2016-10-13 Thread Matthias Fraidl
Hi Johan, thanks for the feedback, i've decided to give the pracitioner a go, think it's the better option by now. maybe i'll the architect later on. Best regards, Matthias On Friday, October 7, 2016 at 6:39:17 PM UTC+2, Johan De Wit wrote: > > Hi Matthias, If the main g

[Puppet Users] Which training should i go for?

2016-10-07 Thread Matthias Fraidl
nd. At the moment i can't determine which training is better for me - the "Puppet Practitioner" or the "Puppet Architect" - so i am asking you to help me a bit further, to decide which one i should go for. Suggestions appreciated :-) Best regards, Matthias -- You rec

Re: [Puppet Users] puppetlabs-firewall and removing a parameter

2015-08-10 Thread Matthias Saou
Hi, So... no answers... bug report filed! :-) https://tickets.puppetlabs.com/browse/MODULES-2376 Matthias On Mon, 3 Aug 2015 13:26:07 +0200 Matthias Saou wrote: > Hi, > > I had this applied to my nodes : > > firewall { "${prenumber}7 portknock let connections th

[Puppet Users] puppetlabs-firewall and removing a parameter

2015-08-03 Thread Matthias Saou
se or even remove the $rseconds line entirely, puppet just leaves the previous value on existing nodes. For new nodes or if I manually remove all iptables rules first, then the new rule gets created without any "--seconds 3" as expected. How can I tell puppet to actually r

Re: [Puppet Users] Re: Initial Puppet 4.0.0 Migration Experience

2015-05-20 Thread Matthias Saou
On Wed, 20 May 2015 03:57:50 -0700 (PDT) Nick Howes wrote: > On Wednesday, 20 May 2015 11:52:06 UTC+1, Matthias Saou wrote: > > > > I will post followups if > > anyone is interested. > > > > > Count me interested - I'm in the same pre-leap state (3

[Puppet Users] Initial Puppet 4.0.0 Migration Experience

2015-05-20 Thread Matthias Saou
a quick search doesn't come up with much relevant. This is a RHEL7 system with the default LANG=en_US.UTF-8... Not going so well so far, I was really hoping for less differences between 3.7 with the future parser and 4.0. I will post followups

[Puppet Users] I can't seem to get $::processorcount to be an integer...

2015-04-16 Thread Matthias Saou
t to get it as a number instead of a string : "mtu_eth0": 1500, "operatingsystemrelease": "6.6", "swapsize_mb": "4032.00", "processorcount": 8, Is this a known limitation? Am I doing something wrong? Matthias -- Matthias

Re: [Puppet Users] PuppetDB connection issue - Failed to connect!!

2014-08-27 Thread Matthias Raithel
For the next one hitting this - in my case this was related to a old version of the puppetdb module (v2.0.0) which queried a URL that was no longer existent. Updating the module cleared the error right up. The module was previousely not update because of a dependency lockup through puppetlabs/

Re: [Puppet Users] Unrecognised escape sequence '\[' in file

2014-08-27 Thread Matthias Saou
$'. Last useless note : I have also encountered problems with the file_line 'match' parameter, the first one being that the official example is broken as the 'line' must match the 'match' regexp. Good luck :-) Matthias -- You received this message because yo

Re: [Puppet Users] CF3 to PE 3.3 - Hiera Question

2014-08-08 Thread Matthias Saou
n would be unconditionally include a class, and have the logic inside that class, to include other classes based on things like "if $::hostname =~ /^web\d+$/ { include '::foo' }". Combine the ifs as much as you want, using intermediate booleans to make things clearer... HTH, Matthia

Re: [Puppet Users] Puppet/yum fails to install old packages

2014-08-08 Thread Matthias Saou
ur yum repo configuration in once which is before 'main'. Matthias On Thu, 7 Aug 2014 07:31:19 -0700 (PDT) Mark Rosedale wrote: > Hello, > > So I'm specifying specific packages to install for some of my > critical software. This is specifically related to centos/yum. When

Re: [Puppet Users] Puppet Template for controlling puppet nodes puppet.conf file help

2014-08-08 Thread Matthias Saou
ine of the file for example : <% fqdn = scope.lookupvar('::fqdn').downcase -%> Then use "fqdn" (the local ruby variable) instead of "@fqdn" (the puppet variable) in your <%= fqdn %>. Matthias On Thu, 7 Aug 2014 09:09:44 -0700 (PDT) Linwood Johnson wrote

Re: [Puppet Users] can't restart auditd

2014-07-29 Thread Matthias Saou
the > restart (service vs systemctl)? Take a look at : http://docs.puppetlabs.com/references/stable/type.html#service You *should* be able to force the restart command with something like this (untested) : service { 'auditd': restart => '/sbin/service auditd restart'

Re: [Puppet Users] Using hiera-data for a specific node

2014-07-23 Thread Matthias Viehweger
l - is solved. I expect that the conversion from YAML-types to Puppet-types is lossless in this case, because ruby does the right thing here and puppet would need to make an effort to get it wrong ;-) But that would be a nice catch. thanks, Atom Powers. On Wed, Jul 23, 2014 at 10:01 AM, Matthias Vie

[Puppet Users] Using hiera-data for a specific node

2014-07-23 Thread Matthias Viehweger
m I doing wrong? Where - apart from the source-code - can I look for information how that lookup works? Thanks, Matthias Viehweger -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails f

Re: [Puppet Users] Announce: Puppet 3.6.0 Released!

2014-05-16 Thread Matthias Saou
petlabs.com/puppet/latest/reference/release_notes.html#feature-purging-unmanaged-ssh-authorized-keys Thank you so so so so so much! Definitely my most wanted feature since... forever :-) Off to try that now... Matt

Re: [Puppet Users] feeding files/templates to modules

2014-05-16 Thread Matthias Saou
h variable in file source parameters and template paths to make your life easier. HTH, Matthias -- Matthias Saou ██ ██ ██ ██ Web: h

Re: [Puppet Users] A file managed by puppet that is left alone if customized

2014-04-24 Thread Matthias Saou
d why one would want to do that... I could actually use that behaviour for the initial ~/.gitconfig files I create for system users, for example. Matthias -- Matthias Saou ██ ██ ██ ██ Web: http://matthias.saou.

Re: [Puppet Users] Array becomes string in template

2014-04-24 Thread Matthias Saou
.] > So why has this virtualhost array suddenly become a string > when I call the each function on it in the template? Because unless I'm mistaken, you're converting your array to a string with ".join('", "')". Just re

Re: [Puppet Users] Joining two commands in exec

2014-04-14 Thread Matthias Saou
probably. Run : /usr/bin/hadoop fs -ls /user/foo; echo $? If you see 0 then the exec will no longer run when using "unless". Run : /usr/bin/hadoop fs -mkdir /user/foo; echo $? You'll need to see 0 when the HDFS directory didn't exis

Re: [Puppet Users] Possible issue with nagios_* commands

2014-02-25 Thread Matthias Saou
agios/nagios_hostgroup.cfg', '/etc/nagios/nagios_service.cfg', '/etc/nagios/nagios_servicegroup.cfg', '/etc/nagios/nagios_timeperiod.cfg', ]: ensure => present,

[Puppet Users] Access to puppet cert on windows host

2014-02-16 Thread Matthias Raithel
Hi i know this has been somewhat of a topic before (see https://projects.puppetlabs.com/issues/13490) but I'm wondering: Is there any non-breaking, non-ugly way to have the local system on windows access to the puppet certificate files? My setup does a little cheating and uses the puppet cert (

Re: [Puppet Users] RHEL 7 Repository up on yum.puppetlabs.com

2014-02-11 Thread Matthias Saou
operatingsystem => RedHat operatingsystemmajrelease => 7 operatingsystemrelease => 7.0 osfamily => RedHat rubyversion => 2.0.0 Matthias -- Matthias Saou ██ ██ ██ █

Re: [Puppet Users] RHEL 7 Repository up on yum.puppetlabs.com

2014-02-11 Thread Matthias Saou
xist :-) But it's a good start, much appreciated! Matthias -- Matthias Saou ██ ██ ██ ██ Web: http://matthias.saou.eu/

Re: [Puppet Users] Nagios default files being overwritten

2014-02-11 Thread Matthias Saou
solved it in my own module : https://github.com/thias/puppet-nagios/blob/master/manifests/server.pp#L550 (feel free to copy/paste those lines!) Though I did "move" all of the resources to their default files and stopped using the objects/templates.cfg file. HTH, Matthias --

Re: [Puppet Users] Choo choo here comes the FOSDEM train

2014-01-30 Thread Matthias Saou
interested in discussing anything related to modules and the Forge, but if any official Puppet Labs representatives are there, I'd also be interested in getting in touch about consulting in Spain and training. Cheers, Matthias On Thu, 30 Jan 2014 05:33:29 -0800 (PST) Daniele Sluijters wr

Re: [Puppet Users] Optimizing the Puppet CA using Apache

2014-01-15 Thread Matthias Saou
headers like IfModifiedSince etc. > > So here's some instructions on how to do it: > https://gist.github.com/dalen/8419913 > > Works for me, but no guarantees etc :) This is a simple and interesting change. Care to share some numbers about the "speeds things up quite a bit" par

[Puppet Users] A different way of managing POSIX ACLs : fooacl

2013-12-17 Thread Matthias Saou
ACL is still being applied by the module (remove users easily and reliably). * Automatic setting of both normal and default ACLs to the same values (shortens declarations, increases code readability). -- Feedback welcome! Matthias

Re: [Puppet Users] Multiple server roles using hiera and facts

2013-12-02 Thread Matthias Saou
y separate variables for each role, such as: webserver: true appserver: true With matching facts which exist or don't exist. HTH, Matthias -- Matthias Saou ██ ██

Re: [Puppet Users] Problem with PuppetDB and OpenSSL (solved)

2013-11-28 Thread Matthias Saou
d. I'm guessing the update broke something related to SSL. After installing 1.7.0, alternatives automatically updated all java related paths to make 1.7.0 the default, and puppetdb seems to work fine with it. So if you're running PuppetDB on RHEL (or any clone), the

[Puppet Users] Is anyone using puppetlabs-firewall with IPv6?

2013-10-04 Thread Matthias Saou
Is there some option or trivial workaround I'm missing? Matthias -- Matthias Saou ██ ██ ██ ██ Web: http://matthias.saou.eu/ ██ Mai

Re: [Puppet Users] Announce: Facter 1.7.2 Available

2013-07-17 Thread Matthias Saou
und. I've created this ticket with all the details I have : http://projects.puppetlabs.com/issues/21808 Matthias On Wed, 10 Jul 2013 16:19:09 -0700 Matthaus Owens wrote: > Facter 1.7.2 is a bugfix release in the 1.7 series. > > To see a list of the issues addressed by this releas

Re: [Puppet Users] puppetlabs-ntp 1.0.0-rc1

2013-07-10 Thread Matthias Saou
::ntp::install'] -> Class['::ntp::config'] ~> Class['::ntp::service'] -> Anchor['ntp::end'] Matthias -- Matthias Saou ██ ██ ██ ██ Web: http://mat

Re: [Puppet Users] puppetlabs-ntp 1.0.0-rc1

2013-07-10 Thread Matthias Saou
"false" -%> Add a new params variable for it, similar to $panic? * For "real" RHEL, the ntp server hostnames used will be "centos" instead of the original "rhel" ones. I'm not su

Re: [Puppet Users] The handy Grail of Modules Standards

2013-06-18 Thread Matthias Saou
oo, where do we put the common virtual resource?). * The use of author-specific common modules (I don't like taking a johndoe/apache module and noticing I then need johndoe/common). But don't get me wrong, I like where this is headed, and will participate as much as I can.

Re: [Puppet Users] The handy Grail of Modules Standards

2013-06-17 Thread Matthias Saou
one at some point. One possibility would be to have a review-based approval process for forge modules, where guidelines would have to be enforced before a module gets published. Of course, that's a lot of time and resources, for what boils down to being considered "boring work"

Re: [Puppet Users] any elegant way to iterate/map over data types?

2013-06-11 Thread Matthias Saou
d), something like this should work, since "-" is unique : $user-akey = regsubst($akey, '^(.*)$', "${name}-\1") my_ssh_authorized_key { $user-akey: ensure => $ensure } Then : define my_ssh_authorized_key ( $ensure ) { $user = regsubst

Re: [Puppet Users] Run a File resource only if another file is missing

2013-06-03 Thread Matthias Saou
On Fri, 31 May 2013 07:52:25 -0700 Nan Liu wrote: > A bit off topic, but you should use file attribute replace => false > instead of an exec. Indeed. I'm not sure how I've missed that parameter. And it seems to have existed for a loong time. Thanks a lot for corre

Re: [Puppet Users] Run a File resource only if another file is missing

2013-05-31 Thread Matthias Saou
ges it doesn't make itself. Custom fact, it is... Matthias Dan White wrote: > That is an excellent example, but I think you miss the original point: > > Your example deals with only one file resource - the dot-gitconfig > file Suppose you only wanted to perform this action if

Re: [Puppet Users] Run a File resource only if another file is missing

2013-05-31 Thread Matthias Saou
tent : /bin/cat > <%= home %>/.gitconfig << EOF [user] name = <%= @gitconfig_user_name %> email = <%= @gitconfig_user_email %> EOF Basically, just don't have either 'source' nor 'content' for your file resource, and create the initial content using an

Re: [Puppet Users] Error: Could not find dependency Yumrepo[puppetlabs-products] for Package[puppet]

2013-05-27 Thread Matthias Saou
repo["puppetlabs-products"]" lines. Otherwise, you will need to add that resource to be declared. Matthias -- Matthias Saou ██ ██ ██ ██ Web: http://matthias.saou.eu/

[Puppet Users] Puppet 3.2.1 default log level change?

2013-05-27 Thread Matthias Saou
;. I even tried "--no-verbose" but that doesn't work. How do I switch back to a default log level of "notice"? Matthias -- Matthias Saou ██ ██

Re: [Puppet Users] Re: Module for tuned-adm

2013-05-18 Thread Matthias Saou
a class is best here instead of a definition since it can only be instantiated once per node. Lastly, using a class makes it trivial to tune nodes using hiera and class parameter auto-lookup in puppet 3. Matthias banjer wrote: > Thanks, I was about to roll out a puppet module for tuned-ad

Re: [Puppet Users] problems ensuring that a service is absent

2013-04-25 Thread Matthias Saou
re fine with just ensuring the package is absent, and enclosing the service inside an "if $ensure == 'present'" or similar. If that's not enough, it should be considered a packaging bug. Matthias -- Matthias Saou ██ ██

Re: [Puppet Users] Re: Best practice to always fully qualify classes with :: ?

2013-04-22 Thread Matthias Saou
. Your explanation matches the behaviour I've seen. Matthias -- Matthias Saou ██ ██ ██ ██ Web: http://matthias.saou.eu/ ██ Mail/XMPP: matth

Re: [Puppet Users] Puppet defined types and defaults parameters

2013-04-20 Thread Matthias Saou
r::Listener { config => 'asdf' } node 'dev' { sensor::listner {"test_sensor":} } This would show 'asdf' for all of your nodes, since the default would be set inside site.pp, thus inherited globally. Matthias Ole Morten Grodås wrote: > How can I

[Puppet Users] Best practice to always fully qualify classes with :: ?

2013-04-18 Thread Matthias Saou
e proper syntax? Has this (or will this) become the best practice? Matthias [1] http://docs.puppetlabs.com/puppet/2.7/reference/lang_classes.html [2] http://docs.puppetlabs.com/puppet/2.7/reference/lang_scope.html -- Matthias Saou ██ ██

Re: [Puppet Users] Re: Puppet 3.1, Hiera and a class parameter called "service"

2013-04-18 Thread Matthias Saou
en $service is the "false" string, the condition is still true. But I don't mind modifying to "if $service == true" since it's not any dirtier. Matthias On Wed, 17 Apr 2013 14:27:20 -0700 (PDT) Nick Fagerlund wrote: > Hey Matthias! It's a Puppet bug. Sorry. &

[Puppet Users] Puppet 3.1, Hiera and a class parameter called "service"

2013-04-17 Thread Matthias Saou
e default... Other variable names don't seem to have this problem. It seems that I've been bitten once more by "mostly-working-but-reserved-somewhere" variable names. Does anyone know Hiera internals enough to confirm this? Do I have any options other than

[Puppet Users] Re: Rubygems 2.0.0 removed argument

2013-02-26 Thread matthias
Looks like there is a bug report for it. http://projects.puppetlabs.com/issues/19140 On Monday, February 25, 2013 9:31:24 AM UTC-8, matthias wrote: > > I recently upgraded one of our puppet agent servers to use rubygems 2.0.0. > When I run 'puppet agent --test' after the u

[Puppet Users] Rubygems 2.0.0 removed argument

2013-02-25 Thread matthias
I recently upgraded one of our puppet agent servers to use rubygems 2.0.0. When I run 'puppet agent --test' after the upgrade it complains that there is an invalid option with using --include-dependencies switch (output below). Is there a way to pass arguments to puppet when using gem as the

Re: [Puppet Users] how to check whether a linux process is running?

2013-02-13 Thread Matthias Viehweger
sure => installed, require => Exec['mount share']; } exec { 'mount share': command => '...', if => command to check if not mounted; } I may be wrong, of course, but this would be my first try to resolve this. Cheers, Matthias --

Re: [Puppet Users] Deprecating PostgreSQL versions < 8.4 for use with PuppetDB

2013-01-03 Thread Matthias Viehweger
an 8.4) for use with PuppetDB. There are a few > reasons we want to do this: On one hand, this is probably how it should be with infrastructure projects like this. On the other hand, I just like both the reasoning and the tone. Thanks! Matthias Viehweger -- Serververwaltung und Softwareentwi

Re: [Puppet Users] Re: inspect resources that are already added to a manifest

2013-01-02 Thread Matthias Viehweger
Hi John! On Wed, Jan 02, 2013 at 07:51:37AM -0800, jcbollinger wrote: > You need a Puppet-bogometer. I need one, too! Where can I order it? Cheers, Matthias Viehweger -- Serververwaltung und Softwareentwicklung https://www.heute-kaufen.de Prinzessinnenstraße 20 - 10969 Berlin signature.

Re: [Puppet Users] Re: puppetlabs/apt and apt::ppa

2013-01-02 Thread Matthias Viehweger
modules or wrong ordering. In this case, the apt/sources.list.d-directory is a direct concern of apt and should IMHO be managed by the module. Cheers, Matthias -- Serververwaltung und Softwareentwicklung https://www.heute-kaufen.de Prinzessinnenstraße 20 - 10969 Berlin signature.asc Desc

Re: [Puppet Users] Coverage reports of manifests

2013-01-02 Thread Matthias Viehweger
up the code a little, maybe document better or something like that, but that's the developer in me. :) Cheers, Matthias Viehweger -- Serververwaltung und Softwareentwicklung https://www.heute-kaufen.de Prinzessinnenstraße 20 - 10969 Berlin signature.asc Description: Digital signature

Re: [Puppet Users] Multiple Requires not allowed, not sure what this is for...

2012-12-22 Thread Matthias Viehweger
hat has a dependency on e.g. Service[apache2], but does not deal with that on it's own. Puppet ensures then that the webserver is declared in the catalog and the vhost I am concerned with has no problems. Cheers, Matthias Viehweger -- Serververwaltung und Softwareentwicklung https://www.heute-

Re: [Puppet Users] Unit-Testing/test: recommended method?

2012-12-13 Thread Matthias Viehweger
few fixes, I haven't had the time to integrate them into the bigger picture with backwards compatibility and so on. I have puppet-lint and cucumber-puppet integrated into my Jenkins-setup. Cheers, Matthias Viehweger [1] https://github.com/kronn/cucumber-puppet -- Serververwaltung und Software

Re: [Puppet Users] Puppet with dedicated ruby install

2012-12-12 Thread Matthias Viehweger
versions than Puppet. Installing the agent from a package will > override our ruby installs. We do this the other way around. Puppet runs on system ruby (Ubuntu's Ruby 1.8) while the apps have their dedicated rvm-setup. Cheers, Matthias Viehweger - -- Serververwaltung und Softwareen

[Puppet Users] Use random value from an array in a template

2012-12-04 Thread Matthias Kellermann
gards, Matthias -- 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/-/8PrcZfi0VMkJ. To post to this group, send email to puppet-users@googlegroups.com. To u

[Puppet Users] Re: Do you want a Puppet Conference in Berlin, Germany

2012-11-25 Thread Matthias Viehweger
want to support (talk, workshop)? I would like to give a talk, maybe even a workshop, depending on the interest. Cheers, Matthias Viehweger -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit ht

Re: [Puppet Users] Nagios server howto for beginner ?

2012-10-15 Thread Matthias Saou
t least leave people a way to disable dependencies on other of my own modules so that they can use their own instead. Good luck! Matthias On Mon, 15 Oct 2012 02:00:18 -0700 (PDT) ftiff wrote: > Hi all, > > I would like to install a nagios server without reinventing the wheel.

Re: [Puppet Users] Re: sshkey type purge

2012-07-24 Thread Matthias Saou
On Tue, 24 Jul 2012 09:39:30 -0400 Trevor Vaughan wrote: > I attempted to set it and it wasn't very happy but your assessment is > what I had thought as well. Yup. (Still) Unsupported, unfortunately... See http://projects.puppetlabs.com/issues/1581 Matthias -- Ma

Re: [Puppet Users] puppet-lint crashes and burns

2012-07-11 Thread Matthias Saou
ance) This is indeed not Debian, as an update will never get you to the next major release :-) EL5 is indeed quite old, EL6 has already been available for nearly 2 years and ships with ruby 1.8.7 : It's definitely what you want to be deploying on any new systems. Che

Re: [Puppet Users] puppet-lint crashes and burns

2012-07-11 Thread Matthias Saou
gt; you have Ruby 1.8.7 or greater installed. -- Matthias Saou ██ ██ ██ ██ Web: http://matthias.saou.eu/ ██ Mail/XMPP: matth...@saou.eu ██

Re: [Puppet Users] Re: exec's onlyif parameter fails for a bash one-liner

2012-04-26 Thread Matthias Saou
[ /usr/bin/[ so path => [ '/bin', '/usr/bin' ] would probably have worked. > As suggested by Florian using 'provider => shell' takes care of PATH > and shell built-ins as well. That's probably just as good a solution. On an unrelated note, something li

Re: [Puppet Users] Hash iteration order in a template not consistent

2012-04-03 Thread Matthias Saou
uot;, 'DEFAULT_SUBJECT_PREFIX' => "''", 'DEFAULT_REPLY_GOES_TO_LIST' => "1", }, <% mm_cfg_settings.each do |key,value| -%> <%= key %> = <%= value %> <% end -%> In this particular example, order isn&#

[Puppet Users] Going insane : Puppet PHP module for multiple distributions

2012-03-29 Thread Matthias Saou
RedHat|CentOS)/: { @package { 'php-cli': ensure => installed } @package { 'php-fpm': ensure => installed } $package_cli = 'php-cli' $package_fpm = 'php-fpm' } } Then I'll be realizing $

Re: [Puppet Users] Cross-module (package) dependencies

2012-01-25 Thread Matthias Saou
s long as all parameters are identical, since it's typically just "package { 'foo': ensure => installed }". That would also have a whole bunch of new implications, as I can imagine people changing a single parameter in one place and getting confused as to why the now get

Re: [Puppet Users] Cross-module (package) dependencies

2012-01-24 Thread Matthias Saou
he packaging itself is different, as in (non-existing) sub-packages... there is no end (1). I don't have the slightest idea as to how all this could be solved in a clean way, but "requiring a common bit of high level code" isn't the global solution I'm myself hoping for. Matt

[Puppet Users] "Could not find a default provider for ..." should not fail the agent run?

2011-10-05 Thread Matthias Pigulla
Hi all, I have repeatedly encountered the problem that I would like Puppet to install a particular piece of software, for example git, and then use a provider like https://github.com/puppetlabs/puppet-vcsrepo to check out a repository. This fails with a message like "Could not run Puppet confi

Re: [Puppet Users] Trigger when on any package change

2011-09-30 Thread Matthias Pigulla
Does Package<||> ~> exec { ..., refreshonly => true } do the trick? -mp. Am 30.09.2011 um 19:43 schrieb "GeekBiker" : > I need to exec a program if ANY packages have been modified (added, > removed, updated, etc). I tried subscribing to Package with a > wildcard, but that isn't supported. >

[Puppet Users] AW: create_resources (or variable scoping?) question

2011-09-27 Thread Matthias Pigulla
Replying to myself: > define complex_user($uid, $sshkeys) { > /* ... create user with $name ... */ > create_resources("keys_for", $sshkeys) > } > > define keys_for($key) { ... } I just found that when having a $user_name = $name in complex_user, I can access that in keys_for simply

[Puppet Users] create_resources (or variable scoping?) question

2011-09-27 Thread Matthias Pigulla
Hi all, I would like to create a configuration along the lines of complex_user { "joe": uid => 42, sshkeys => { "key1-comment" => { key => "...", ... }, "key2-comment" => { key => "...", ...} } ... } That is, a definition that will

Re: [Puppet Users] Re: how to create directory recursively (if parents not present)?

2011-08-21 Thread Matthias Saou
Sans wrote: > Thanks Matthias! I noticed the semicolon typo. > What does ${::hostname}-cert.pem implicate (as opposed to ${hostname}- > cert.pem)? It just makes explicit that it's a variable from the global scope (as it's a fact) and not from the current local scope. Chec

Re: [Puppet Users] how to create directory recursively (if parents not present)?

2011-08-18 Thread Matthias Saou
Matthias Saou wrote : > file { "/opt/${cert_dir}/${::hostname}-cert.pem": > mode=> '0444', owner => 'root', group => 'root', > source => "puppet:///modules/p_nodes/${::hostname}-cert.pem"; >

Re: [Puppet Users] how to create directory recursively (if parents not present)?

2011-08-18 Thread Matthias Saou
x27;0444', owner => 'root', group => 'root', source => "puppet:///modules/p_nodes/${::hostname}-cert.pem"; require => Exec['mkdir_cert_dir'], } HTH :-) Matthias -- Clean custom Red Hat Linux rpm packages : http://freshrpms.net/

Re: [Puppet Users] Dynamic lookup of $var

2011-08-18 Thread Matthias Saou
h enough, very explicit and entirely isolated (except for anyone having a custom "fact" module ;-)). Matthias -- Clean custom Red Hat Linux rpm packages : http://freshrpms.net/ Fedora release 14 (Laughlin) - Linux kernel 2.6.35.13-91.fc14.x86_64 Load : 0.10 0.13 0.22 -- You received this

Re: [Puppet Users] Help with retrieving a user's environment variable

2011-08-09 Thread Matthias Saou
OME/network/admin if [ `/usr/bin/id -un` == "oracle" ]; then export PATH=$PATH:$ORACLE_HOME/bin fi Matthias -- Clean custom Red Hat Linux rpm packages : http://freshrpms.net/ Fedora release 14 (Laughlin) - Linux kernel 2.6.35.13-91.fc14.x86_64 Load : 0.01 0.35 0.52 -- You rec

Re: [Puppet Users] Facter 1.6.0 and CentOS 6.0

2011-08-01 Thread Matthias Saou
dhat-lsb : $foo = "${::operatingsystem}${::operatingsystemrelease}" ? { /^RedHat5/ => $rhel5, /^RedHat6/ => $thel6, } You will need to update that regexp before RHEL 50 ;-) Matthias -- Clean custom Red Hat Linux rpm packages : http://freshrpms.net/ Fedora release 14 (Lau

Re: [Puppet Users] Definition parameter defaulting to the definition's own $title?

2011-07-20 Thread Matthias Saou
Matthias Saou wrote : > > try $name, that should do it, came in somewhere mid 2.6.x series > > Yup, that was it! > > Section "$name can now be used to set default values in defined > resource types" in the release notes : > https://projects.puppetlabs.com/

Re: [Puppet Users] Definition parameter defaulting to the definition's own $title?

2011-07-15 Thread Matthias Saou
rojects/puppet/wiki/Release_Notes And this is the original feature request : https://projects.puppetlabs.com/issues/5061 Thanks for the quick pointer :-) Matthias -- Clean custom Red Hat Linux rpm packages : http://freshrpms.net/ Fedora release 14 (Laughlin) - Linux kernel 2.6.35.13-91.fc14.x

[Puppet Users] Definition parameter defaulting to the definition's own $title?

2011-07-15 Thread Matthias Saou
contain "bar" foo { 'foo': bar => 'bar' } -8<- Anything I can use instead of "$bar = $namevar" to get it working? Matthias -- Clean custom Red Hat Linux rpm packages : http://freshrpms.net/ Fedora release 14 (Laughlin) - Linux kernel 2.6.35.13-91.

Re: [Puppet Users] using memorysize fact in manifests

2011-06-30 Thread Matthias Saou
%><%= mem.to_i %>") Here's an example of how I then use it : # kernel.shmmax if $shmmax { $shmmax_final = $shmmax } else { if $oracle { # For non-shm half the RAM for <= 4G, 2G otherwise if $mem <= 4294967296 { $

[Puppet Users] Memory usage for reports

2011-06-20 Thread Matthias Saou
emory nodes other than switching from puppetd to running puppet from a cron job? (which would help somewhat, but not fix the underlying issues) Any pointers are welcome :-) Matthias -- Clean custom Red Hat Linux rpm packages : http://freshrpms.net/ Fedora release 14 (Laughlin) - Linux kernel 2.6.35.

Re: [Puppet Users] Re: Setting defaults on scoped definitions : Each Word Needs To Be Capitalized

2011-06-14 Thread Matthias Saou
Ken Barber wrote: > Nice idea to hire document writers with clairvoyance skills :-). I'll second that! :-) Thanks for the great work : The documentation has really been improving a lot and my general feeling is that "things" are much easier to find than before. Matthias

[Puppet Users] Setting defaults on scoped definitions : Each Word Needs To Be Capitalized

2011-06-14 Thread Matthias Saou
uides/language_guide.html#capitalization I'm sure others will bump into this too, or already have :-) Matthias -- Clean custom Red Hat Linux rpm packages : http://freshrpms.net/ Fedora release 14 (Laughlin) - Linux kernel 2.6.35.13-91.fc14.x86_64 Load : 0.22 0.36 0.46 -- You receive

Re: [Puppet Users] Global scope variables and erb templates in puppet 2.7

2011-06-13 Thread Matthias Saou
d variables from erb templates directly, as it won't ever be as convenient as before for facts and global scope variables. Matthias Alessandro Franceschi wrote: > scope.lookupvar() works also on Puppet 2.6 and 0.25 and maybe earlier > versions, and AFAIK will keep on working in futu

Re: [Puppet Users] Global scope variables and erb templates in puppet 2.7

2011-06-12 Thread Matthias Saou
Hi, Thanks, using scope.lookupvar() in the templates does work. But will this be the proper way to echo facts in puppet 2.7 and 2.8? Because it does seem like quite an extra burden, and if it's not really decided yet, I prefer sticking with the warnings for now ;-) Matthias Ken Barber

[Puppet Users] Global scope variables and erb templates in puppet 2.7

2011-06-12 Thread Matthias Saou
cted tIDENTIFIER, expecting tCONSTANT _erbout = ''; _erbout.concat(( ::fqdn ).to_s); _erbout How should these global scope variables (facts in this case) be used inside erb templates? Maybe there's some obvious ruby syntax I'm missing? Matthias -- You received this message because you a

  1   2   >