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 matth...@saou.eu wrote:
Hi,
I had this applied to my nodes :
firewall { ${prenumber}7 portknock let connections through
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 remove that parameter from existing
rules instead of stop caring about the value?
Matthias
--
Matthias Saou
.
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 if
anyone is interested.
Matthias
--
Matthias Saou
On Wed, 20 May 2015 03:57:50 -0700 (PDT)
Nick Howes nickho...@gmail.com 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.7 with all
the future features
On Wed, 27 Aug 2014 05:31:39 -0700 (PDT)
Brian Wilkins bwilk...@gmail.com wrote:
I am having to escape a regular expression in my match and puppet
complains on the puppetmaster of an Unrecognised escape sequence.
How do I fix this so the logs don't get cluttered with this message?
I am using
Thanks for your help.
--
Matthias Saou ██ ██
██ ██
Web: http://matthias.saou.eu/ ██
Mail/XMPP: matth...@saou.eu
is, is there a way to work around this so that puppet
doesn't error out on the first run?
Thanks,
mjr
--
Matthias Saou ██ ██
██ ██
Web: http://matthias.saou.eu/ ██
Mail/XMPP
the “web_regex” and you reside in the
DC2_QA_NET then do X, Y and Z.
Thanks in advance for your time and assistance.
Tom
--
Matthias Saou ██ ██
██ ██
Web: http://matthias.saou.eu
--
Matthias Saou ██ ██
██ ██
Web: http://matthias.saou.eu/ ██
Mail/XMPP: matth...@saou.eu ██
██
GPG: 4096R/E755CC63
.
HTH,
Matthias
--
Matthias Saou ██ ██
██ ██
Web: http://matthias.saou.eu/ ██
Mail/XMPP: matth...@saou.eu
/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...
Matthias
--
Matthias Saou
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 remove that, and the .each should be
correctly applied to the array.
Matthias
--
Matthias Saou
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.eu
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 exist in order for
the '' to then execute to 2nd command.
HTH,
Matthias
--
Matthias Saou
/nagios_servicegroup.cfg',
'/etc/nagios/nagios_timeperiod.cfg',
]:
ensure = present,
owner = 'root',
group = 'nagios',
mode = '0640',
before = Service['nagios'],
}
Matthias
--
Matthias Saou
those lines!)
Though I did move all of the resources to their default files and
stopped using the objects/templates.cfg file.
HTH,
Matthias
--
Matthias Saou ██ ██
██ ██
Web: http://matthias.saou.eu
appreciated!
Matthias
--
Matthias Saou ██ ██
██ ██
Web: http://matthias.saou.eu/ ██
Mail/XMPP: matth...@saou.eu
operatingsystem = RedHat
operatingsystemmajrelease = 7
operatingsystemrelease = 7.0
osfamily = RedHat
rubyversion = 2.0.0
Matthias
--
Matthias Saou ██ ██
██ ██
Web: http://matthias.saou.eu
want food,
please register :).
See you soon!
--
Matthias Saou ██ ██
██ ██
Web: http://matthias.saou.eu/ ██
Mail/XMPP: matth...@saou.eu
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
--
Matthias Saou
exist or don't exist.
HTH,
Matthias
--
Matthias Saou ██ ██
██ ██
Web: http://matthias.saou.eu/ ██
Mail/XMPP: matth...@saou.eu
or
trivial workaround I'm missing?
Matthias
--
Matthias Saou ██ ██
██ ██
Web: http://matthias.saou.eu/ ██
Mail/XMPP: matth...@saou.eu
--
Matthias Saou ██ ██
██ ██
Web: http://matthias.saou.eu/ ██
Mail/XMPP: matth...@saou.eu ██
██
GPG: 4096R
to $panic?
* For real RHEL, the ntp server hostnames used will be centos
instead of the original rhel ones. I'm not sure this is worth
trying to fix, though.
Great work on cleaning up the module!
Matthias
--
Matthias Saou
['::ntp::install'] -
Class['::ntp::config'] ~ Class['::ntp::service'] -
Anchor['ntp::end']
Matthias
--
Matthias Saou ██ ██
██ ██
Web: http://matthias.saou.eu/ ██
Mail/XMPP: matth
johndoe/common).
But don't get me wrong, I like where this is headed, and will
participate as much as I can.
Matthias
--
Matthias Saou ██ ██
██ ██
Web: http://matthias.saou.eu/ ██
Mail
--
Matthias Saou ██ ██
██ ██
Web: http://matthias.saou.eu/ ██
Mail/XMPP: matth...@saou.eu ██
██
GPG: 4096R/E755CC63
,
key = $akey,
type= 'ssh-rsa',
user= $user,
require = User[$user],
}
}
If there are more elegant solutions, I'd love to hear about them :-)
Matthias
--
Matthias Saou
!
Matthias
--
Matthias Saou ██ ██
██ ██
Web: http://matthias.saou.eu/ ██
Mail/XMPP: matth...@saou.eu
There are other ways. None are nice and clean, but a custom fact just
for this seems overkill.
Here's a quick example of how I've implemented creating a default
~/.gitconfig for users if it doesn't exist, but not modify it if it's
already there or has been modified.
$gitconfig_user_name =
.
“Sometimes I think the surest sign that intelligent life exists
elsewhere in the universe is that none of it has tried to contact
us.” Bill Waterson (Calvin Hobbes)
- Original Message -
From: Matthias Saou matth...@saou.eu
To: puppet-users@googlegroups.com
Sent: Friday, May 31, 2013 4
of notice?
Matthias
--
Matthias Saou ██ ██
██ ██
Web: http://matthias.saou.eu/ ██
Mail/XMPP: matth...@saou.eu
-products] lines.
Otherwise, you will need to add that resource to be declared.
Matthias
--
Matthias Saou ██ ██
██ ██
Web: http://matthias.saou.eu/ ██
Mail/XMPP: matth...@saou.eu
shameless plug
You could also have a look at this other module :
https://forge.puppetlabs.com/thias/tuned
/shameless plug
I just had a look at Romain's, and a provider just for this is
overkill. As much as I hate exec, it's fine here since the profile name
is exactly contained in a single
== 'present' or similar.
If that's not enough, it should be considered a packaging bug.
Matthias
--
Matthias Saou ██ ██
██ ██
Web: http://matthias.saou.eu/ ██
Mail/XMPP: matth...@saou.eu
reply. Your explanation matches the behaviour I've
seen.
Matthias
--
Matthias Saou ██ ██
██ ██
Web: http://matthias.saou.eu/ ██
Mail/XMPP: matth...@saou.eu
Hi,
You shouldn't be trying with a variable. Here's what you should
probably be doing instead :
/etc/puppet/modules/sensor/manifests/listner.pp
define sensor::listner ( $config = 'this is the generic default' ) {
notify { $config : }
}
/etc/puppet/manifests/site.pp
Sensor::Listener { config
that pattern sloppy bools. It will work around
the bug for now, and continue to work once the bug is fixed and you
start using real booleans in your yaml again.
On Wednesday, April 17, 2013 10:09:30 AM UTC-7, Matthias Saou wrote:
Hi,
I'm trying to clean up some manifests by moving class
[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 ██ ██
██ ██
Web: http://matthias.saou.eu
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 renaming the parameter?
Matthias
--
Matthias Saou
documentation besides the type reference ? Should I dig in
thias/nagios ?
Thanks in advance,
Francois
--
Matthias Saou ██ ██
██ ██
Web: http://matthias.saou.eu/ ██
Mail/XMPP
--
Matthias Saou ██ ██
██ ██
Web: http://matthias.saou.eu/ ██
Mail/XMPP: matth...@saou.eu ██
██
GPG: 4096R
or greater installed.
--
Matthias Saou ██ ██
██ ██
Web: http://matthias.saou.eu/ ██
Mail/XMPP: matth...@saou.eu
, 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.
Cheers,
Matthias
--
Matthias Saou
On Wed, 25 Apr 2012 10:29:23 -0700 (PDT)
Shantanu knowshant...@gmail.com wrote:
On Apr 25, 11:46 am, Craig Dunn cr...@craigdunn.org wrote:
On 25/04/2012 17:01, Shantanu wrote:
I would like to 'exec' an installation script 'onlyif' an
installation directory is empty. I tried using
On Thu, 29 Mar 2012 10:06:01 +0200
Martijn Grendelman mart...@iphion.nl wrote:
[...]
ruby hashes are not stored in predictable order so this will
happen, the proposed solution should work.
But as always the best is just to test it and see how it goes, it
wont bite :)
%
On Wed, 25 Jan 2012 09:59:10 -0500
Nan Liu n...@puppetlabs.com wrote:
[...]
i.e. Say there were two unrelated modules which said slightly
different but *compatible* things:
Module a:
file { /foo/bar:
ensure = 'present',
owner = 'root',
content = blah blah,
}
On Tue, 24 Jan 2012 10:32:31 +0100
Felix Frank felix.fr...@alumni.tu-berlin.de wrote:
Perhaps there needs to be some kind of Forge common module that by
policy can only ever declare virtual resources (packages are a
prominent example).
This only takes care of the Forge case. The problem of
Sans r.santanu@gmail.com 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.
Check
Aaron Grewell wrote :
Agreed, facts are the one thing that really should be global IMHO.
I'd settle for anything short. If %= ::factname % could have worked,
it would have been fine by me.
What's the official best practice going to be for facts inside
templates with puppet 2.7+? lookupvar all
Sans wrote :
As said in the subject line, is there a nice way of creating
directory tree if parent is not already there, like using mkdir -p?
This will do exactly what you want :
$cert_dir = 'globus/cert'
exec { 'mkdir_cert_dir':
path= [ '/bin', '/usr/bin' ],
Matthias Saou wrote :
file { /opt/${cert_dir}/${::hostname}-cert.pem:
mode= '0444', owner = 'root', group = 'root',
source = puppet:///modules/p_nodes/${::hostname}-cert.pem;
require = Exec['mkdir_cert_dir'],
}
I just noticed that I copy/pasted your
Corey Osman wrote :
I need to get the environment variable ORACLE_SID from the OS. I know this
can be done with the following:
$blah = env(PATH)
However, the ORACLE_SID variable is only set under the oracle user account.
So I would need a way to login as the oracle account first to
Peter Meier wrote :
Is this a known issue? Is there any work-around? It's really breaking my
CentOS 6 servers' ability to find their REPOs. :-)
You need to have the lsb_release command installed for the lsb* results
to appear.
Fedora/Redhat have it in the redhat-lsb package, so
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/projects/puppet/wiki/Release_Notes
Maybe I'm
Hi,
Maybe I'm going nuts, but I could have sworn reading about a trick or
new feature which allowed to have a definition parameter get a default
value of the definition's own $title (instead of having the hack around
the limitation with selectors and intermediate variables later on).
Basically
R.I.Pienaar wrote :
Maybe I'm going nuts, but I could have sworn reading about a trick or
new feature which allowed to have a definition parameter get a
default value of the definition's own $title (instead of having the hack
around the limitation with selectors and intermediate variables
Andreas Kuntzagk andreas.kuntz...@mdc-berlin.de wrote:
I want some config depending on memorysize.
What I tried was
if ($memorysize = 256 * 1024*1024) {
...
}
But this fails because $memorysize is a string (and contains a G)
and can't be compared to an int.
Are all facts
Hi,
I very recently upgraded from puppet 0.25.4 to 2.6.8 (both master and
all nodes), and I'm now facing serious memory usage issues. On the
master, I just added more RAM because I had the resources available
(from 2GB to 4GB). But on some nodes with 256MB of RAM, I now see some
load peaks and
Hi,
The documentation section gives a good example for the exec type :
http://docs.puppetlabs.com/guides/language_guide.html#resource-defaults
But for scoped definitions, I had to figure out that each word needs to
be capitalized, not just the first word :
Mymod::mydef { 'foo': } gives Syntax
On Tue, Jun 14, 2011 at 6:45 PM, Nick Fagerlund
nick.fagerl...@puppetlabs.com wrote:
On Jun 14, 8:26 am, Matthias Saou
th...@spam.spam.spam.spam.spam.spam.spam.egg.and.spam.freshrpms.net
wrote:
Could the documentation section about capitalization be updated to
include a scoped example
Hi,
Then I'm guessing the only other solution, which also works with 0.25
and any higher version would be :
$local_scope_fqdn = $::fqdn
Then :
%= local_scope_fqdn %
In order to use a local scope variable from within templates.
It's really too bad to not be able to use scoped variables from
Hi,
I'm starting to play with the latest puppet 2.7.0rc4, one of my goals
being to try and update all of my puppet related files to be compatible
with it, with no warnings at all.
I've read in detail this page :
http://docs.puppetlabs.com/guides/scope_and_puppet.html
There is no mention of
...@puppetlabs.com wrote:
Try:
inline_template('%= scope.lookupvar(::fqdn) %')
ken.
On Sun, Jun 12, 2011 at 3:20 PM, Matthias Saou
th...@spam.spam.spam.spam.spam.spam.spam.egg.and.spam.freshrpms.net
wrote:
Hi,
I'm starting to play with the latest puppet 2.7.0rc4, one of my
goals being
Dan Bode d...@puppetlabs.com wrote:
[...]
Comments about what I'm doing right and what I'm doing wrong would
be very welcome. I really want to know that everything's optimal
before investing time in publishing more modules, to not have to
later waste time going over all modules again.
Steve Shipway wrote :
1. The syslod has changed to rsyslog [...]
2. The snmpd has changed the location of its var file [...]
3. The use of UDEV for all devices [...]
Has anyone else spotted any other changes requiring alteration to the Puppet
manifests and modules?
There are probably
Spenser Gilliland spenser...@gmail.com wrote:
Yeap, I'm seeing that it doesn't exist yet either. I'm thinking maybe
I can use exported resources or maybe just an exec that increments a
counter on the host. Either way it's not very pretty. My use case is
as follows:
In Debian, Redmine
Hi,
Since upgrading from 0.24 to 0.25, I've seen repeatedly puppetd clients
just stop when they're unable to reach the puppetmaster for a while.
With the normal logging level, they just seem to stop without writing
anything in their log.
I've seen this with 0.25.1rc1, rc2 and final, which are
Peter Meier wrote :
Is this a known problem with 0.25 clients? Has anyone seem these
problems too?
There have been some fixes for it in 0.25.1 [1] but I'm still
encountering such issues as well. Especially as I'm connecting some
clients over the internet, so I might encounter high
James Turnbull wrote :
Puppet 0.25.1 - code name zoot - is now available. The 0.25.1 release
is a maintenance release in the 0.25.x branch.
I'm seeing something really weird with this release. I wasn't seeing it
with either rc1 or rc2.
When I update my rpm packages on the master (RHEL 5.4),
Todd Zullinger wrote :
Matthias Saou wrote:
When I update my rpm packages on the master (RHEL 5.4), when the
service puppetmaster stop command is run, the
/usr/sbin/puppetmasterd file is removed. Ouch!
Ouch indeed. This is my fault. :(
I've just done an strace run of service
Hi,
I've got the following working fine with puppet 0.25.1, which was
previously impossible with 0.24 (yepee!) :
define dirs ( $dirs = [] ) {
# Parent directory for the ones below
file { /nfs/skel/${title}: ensure = directory }
# Make sure the File namevar is unique
Brice Figureau wrote :
On Tue, 2009-10-27 at 17:25 +0100, Matthias Saou wrote:
I've got the following working fine with puppet 0.25.1, which was
previously impossible with 0.24 (yepee!) :
define dirs ( $dirs = [] ) {
# Parent directory for the ones below
file
Douglas Garstang doug.garst...@gmail.com wrote:
[...]
It seems to me like there might be a bug here. Puppet appears to think
the syslog-ng and syslog service are the same thing and stops
syslog-ng instead of syslog.
If I change the name of the syslog service, like this...
service {
william Famy william.f...@gmail.com wrote:
I prefer runing class on my client if thereis a file exemple if the
file /etc/mypuppet/condition is present execute the condition class.
If you want to do this, you'll likely have to create a simple facter
fact for your clients so that the
Pete Emerson pemer...@gmail.com wrote:
We've got over 150 hosts hitting the one puppetmaster, and based on
what I've seen via searching it seems like we're hitting into
scalability issues with Webrick, and the recommendation is to switch
to Mongrel or Passenger. Looks to me like Passenger is
Todd Zullinger wrote :
James Turnbull wrote:
Puppet 0.25.1 Release Candidate 1 is now available for testing.
Packages for Fedora 10/11/rawhide and EL 4/5 are available at:
http://tmz.fedorapeople.org/repo/puppet/
Please report any packaging or repository bugs to me and not to the
Paul Nasrat wrote :
My problem here is that facter doesn't seem to be able to return
anything other than strings. Is that the case? Because it would be
really easier for me to have it return an array of the members :
Correct currently facter is essentially a flat key value map. This is
78 matches
Mail list logo