Re: [Puppet Users] Conditional with find_file

2020-01-21 Thread Gabriel Filion
On 2020-01-20 2:34 a.m., Joaquin Veira wrote: > I understand what you mean but I guess there must be any way to check if I > file exists on the client and act in consecuence. > > I mean, if I want to identify a MySQL server by the existance of > /etc/my.cnf and execute a systemctl enable mysql

Re: [Puppet Users] New major release for puppetlabs-concat [v7.0.0] in progress

2019-11-27 Thread Gabriel Filion
Nov 2019 at 06:35, Gabriel Filion wrote: > >> On 2019-11-25 9:59 a.m., Florin Dragos wrote: >>> We're planning to do major releases of puppetlabs-concat (7.0.0) this >> week, >>> dropping 6.1.0. The new version will remove support for Ubuntu 14.04 and >>&g

Re: [Puppet Users] New major release for puppetlabs-concat [v7.0.0] in progress

2019-11-26 Thread Gabriel Filion
On 2019-11-25 9:59 a.m., Florin Dragos wrote: > We're planning to do major releases of puppetlabs-concat (7.0.0) this week, > dropping 6.1.0. The new version will remove support for Ubuntu 14.04 and > add support for CentOS 8 and Debian 10. so... puppetlabs-concat is dropping support for the

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

2019-03-26 Thread Gabriel Filion
Hi there, On 2019-03-26 12:40 p.m., Matthias Steffens wrote: > I'm trying to get a new certificate for my puppet agent and therefore I > tried to do an '*puppet agent -t*' an I got the following: > > > *root@puppet-node:/etc/puppetlabs/puppet/ssl/certs# puppet agent -tExiting; > no

[Puppet Users] recommended ruby libs for puppetdb?

2019-02-15 Thread Gabriel Filion
Hi! I'm wondering what are the most popular and best maintained libs for querying PuppetDB in ruby and python? for ruby I've found two codebases on rubygems.org that seem to have almost as much downloads. There's puppetdb-ruby from vox pupuli and ruby-puppetdb from Erik Dalén. which one of those

Re: [Puppet Users] Need to know what ports to open for puppet db to talk to puppet server 5

2018-09-11 Thread Gabriel Filion
Hi there! On 2018-09-10 10:31 p.m., David Black wrote: > Need to know what ports to open for puppet db to talk to puppet server 5 According to documentation with only one port (by default 8081 TCP) you should be able to connect to your puppetdb:

Re: [Puppet Users] New CA CLI tools in Puppet Platform 5.5.5

2018-08-24 Thread Gabriel Filion
Hi there, On 2018-08-23 2:35 p.m., Maggie Dreyer wrote: > In the 5.5.5 release of the Puppet Platform, we released a new experimental > command line tool for interacting with the Puppet CA. > > puppetserver ca > > This tool uses Puppet Server's puppet-ca API to accomplish common CA tasks >

Re: [Puppet Users] Style regarding param data types

2018-03-08 Thread Gabriel Filion
On 2018-03-07 01:23 PM, Henrik Lindberg wrote: > On 07/03/18 17:17, Gabriel Filion wrote: >> I'm wondering if there's a current trend around style with parameter >> data types. I couldn't find a clear mention of how this is generally >> done in the community in the coding styl

[Puppet Users] Style regarding param data types

2018-03-07 Thread Gabriel Filion
Hiya! I'm wondering if there's a current trend around style with parameter data types. I couldn't find a clear mention of how this is generally done in the community in the coding style guide on puppet.com. Is it better to align param names to the right of all data types in class/define

[Puppet Users] forge module metadata: dependencies

2016-03-22 Thread Gabriel Filion
Hello, recently, a user of a module I wrote reported a bug with dependencies. after some discussions on the IRC channel, it turned out that there was a bug in the 3.x series which is not scheduled to be fixed: https://tickets.puppetlabs.com/browse/PUP-3121 It seems as though using user-module

Re: [Puppet Users] $title and $name returns node name

2015-10-01 Thread Gabriel Filion
otify { "${name} here will have the name of the resource, so in your case it should be 'cust1-user1app1'": } } If you want to have the same value as the resource name be given to a parameter you need to repeat that value. So you can use a variable like so: $new_vhost = 'cust1-user1app1'

Re: [Puppet Users] why puppet cert clean generates so much output and takes a lot of time

2015-06-09 Thread Gabriel Filion
156507 Notice: Revoked certificate with serial 156644 Notice: Revoked certificate with serial 156767 Notice: Revoked certificate with serial 156988 Notice: Revoked certificate with serial 157066 Notice: Revoked certificate with serial 157159 -- Gabriel Filion -- You received this message

Re: [Puppet Users] String substituion in puppet template

2015-05-22 Thread Gabriel Filion
-For ^( + regsubst(name, '\.','\\.') + ) AllowIP\n% -- Gabriel Filion -- 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

Re: [Puppet Users] Message from application: Permission denied - /etc/puppet/modules (Errno::EACCES)

2015-05-11 Thread Gabriel Filion
On 11/05/15 08:51 PM, Joe Koenig wrote: On Monday, May 11, 2015 at 11:24:02 AM UTC-5, Gabriel Filion wrote: On 10/05/15 10:15 PM, j...@poweriep.com javascript: wrote: Message from application: Permission denied - /etc/puppet/modules (Errno::EACCES) # su -s /bin/bash

Re: [Puppet Users] Message from application: Permission denied - /etc/puppet/modules (Errno::EACCES)

2015-05-11 Thread Gabriel Filion
the modules subdir. to help out with permissions errors, what you can usually do is to switch to that user and try listing directories/accessing files: # su -s /bin/bash - puppet ls /etc/puppet/modules ls -ld /etc/puppet hth -- Gabriel Filion -- You received this message because you

Re: [Puppet Users] marking last modified time in a template

2015-05-07 Thread Gabriel Filion
could probably use features from your vcs to get this done by making it replace a certain tag with the commit date. that way it only changes when you commit changes to the file. -- Gabriel Filion -- You received this message because you are subscribed to the Google Groups Puppet Users group

Re: [Puppet Users] Running a daemon only during certain hours of the day

2015-04-09 Thread Gabriel Filion
On 09/04/15 02:01 AM, Peter Bukowinski wrote: On Apr 9, 2015, at 1:26 AM, Gabriel Filion gabs...@lelutin.ca wrote: A client of mine needs to be able to control which hours during the day a certain daemon is running and which hours it is not. So far I can think of hiera for controlling

[Puppet Users] Running a daemon only during certain hours of the day

2015-04-08 Thread Gabriel Filion
to do something with the wrong tool? One of the downsides of using puppet is that runs are only once per hour (in that case) so the starting and stopping times might be unreliable :\ -- Gabriel Filion -- You received this message because you are subscribed to the Google Groups Puppet Users group

Re: [Puppet Users] misbehaving file resource on only one server

2015-03-26 Thread Gabriel Filion
On 24/03/15 05:03 PM, Christopher Wood wrote: On Tue, Mar 24, 2015 at 04:30:27PM -0400, Gabriel Filion wrote: I'm having issues with one server when it tries to apply a super simple file resource that ensures a file is absent: file { '/etc/munin/plugin-conf.d/uptime.conf': ensure = absent

Re: [Puppet Users] misbehaving file resource on only one server

2015-03-26 Thread Gabriel Filion
On 27/03/15 12:40 AM, Gabriel Filion wrote: Failing that, strace'ing might show you something more useful. I'll see what I can find with strace... unfortunately, nothing really useful.. in the output below, the first file access gives the same error as the one failing, but seems to work ok

[Puppet Users] misbehaving file resource on only one server

2015-03-24 Thread Gabriel Filion
the working servers and the one that isn't? -- Gabriel Filion -- 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 view

Re: [Puppet Users] Announce: Puppet Server 0.2.0

2014-09-23 Thread Gabriel Filion
like PuppetDB. so... is it the long term goal to phase out the ruby-based puppet master when the clojure-based one is mature enough? -- Gabriel Filion signature.asc Description: OpenPGP digital signature

Re: [Puppet Users] [security] GPG signing key collision

2014-09-19 Thread Gabriel Filion
the steps over there encourage ppl to just download the puppetlabs-release-CODE NAME.deb package over http without verifying anything. that documentation would benefit from adding the key retrieval and package verification steps -- Gabriel Filion signature.asc Description: OpenPGP digital

Re: [Puppet Users] Change Hostname on Puppet Master

2014-08-05 Thread Gabriel Filion
certificate for a web server that matches multiple domains). it might not be applicable though :\ -- Gabriel Filion signature.asc Description: OpenPGP digital signature

Re: [Puppet Users] Change Hostname on Puppet Master

2014-08-05 Thread Gabriel Filion
file name, it's easier to just add the new hostname to the dns_alt_names accept list ah, thanks a lot for this. I was sure there was a more clever way to do this :) -- Gabriel Filion signature.asc Description: OpenPGP digital signature

[Puppet Users] mailalias that always refreshes

2014-07-31 Thread Gabriel Filion
the value to the same thing. does anyone know of such a bug with mailalias (e.g. has it been fixed in more recent versions?) -- Gabriel Filion -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving

Re: [Puppet Users] mailalias that always refreshes

2014-07-31 Thread Gabriel Filion
On 31/07/14 03:07 AM, Gabriel Filion wrote: I'm using puppet 2.7 and on one node, I have a mailalias resource to setup something for redmine like the following: mailalias { redmine: recipient = '|/usr/share/redmine/extra/mail_handler/sub-mailhandler.py -e redm

Re: [Puppet Users] undefined method `include?' for nil:NilClass

2014-07-29 Thread Gabriel Filion
I tried to remove the ssl certs on master and agent and resigned a new one, but i get still this error. Other Instances are working just fine, I only have this error on one Instance so far # puppet --version 2.7.23 -- Gabriel Filion signature.asc Description: OpenPGP digital signature

Re: [Puppet Users] Re: Augeas lens to change an arbitrary line in a file?

2014-04-22 Thread Gabriel Filion
whether you need the quotes, too.. I'd try without first.. -- Gabriel Filion signature.asc Description: OpenPGP digital signature

[Puppet Users] stdlib: result from join_keys_to_values() is unstable

2014-03-11 Thread Gabriel Filion
a hash h. Thing is, stdlib's sort() function only accepts strings or arrays. Is there a way to get a stable string with current means? Otherwise, would it be an acceptable idea to add support for hashes in sort() ? -- Gabriel Filion signature.asc Description: OpenPGP digital signature

Re: [Puppet Users] stdlib: result from join_keys_to_values() is unstable

2014-03-11 Thread Gabriel Filion
using ruby 1.9.x On Tue, Mar 11, 2014 at 9:27 AM, Gabriel Filion lelu...@gmail.com wrote: Hi there, Say I have a hash like {a='1',b='2'} and I'd like to get a string that looks like a=1,b=2. I tried using a combination of join_keys_to_values() and join() and the result looked correct

Re: [Puppet Users] Can't get puppet manifest to run

2013-11-06 Thread Gabriel Filion
experience I don't recomment using the default node since this can lead to pretty annoying surprises when you forget to create your node and run puppet on the client. -- Gabriel Filion signature.asc Description: OpenPGP digital signature

Re: [Puppet Users] Re: Nagios Puppet

2013-10-17 Thread Gabriel Filion
. -- Gabriel Filion signature.asc Description: OpenPGP digital signature

[Puppet Users] Puppet SSL cipher suites

2013-09-12 Thread Gabriel Filion
Hey there, I looked up puppet.conf documentation and there doesn't seem to be any option to choose which SSL cipher suites are used for communication. Is there some way to configure which cipher suites are preferred? -- Gabriel Filion signature.asc Description: OpenPGP digital signature

[Puppet Users] FreeBSD facts for RAID

2013-09-06 Thread Gabriel Filion
are available on the machine. on the forge, I've found only two projects that have to do with freebsd and both don't have what I'm looking for. does anyone know of some project that would already have facts for listing RAID devices? -- Gabriel Filion signature.asc Description: OpenPGP digital

Re: [Puppet Users] Nagios server automating

2013-09-01 Thread Gabriel Filion
all resources of the same type in one file. for example: Nagios_host || Nagios_host || { target = '/etc/nagios3/conf.d/nagios_hosts.cfg', } -- Gabriel Filion signature.asc Description: OpenPGP digital signature

Re: [Puppet Users] Best practices for infrastructure

2013-08-25 Thread Gabriel Filion
configuration of a service based on what is managed in other nodes, you're gonna have to find weird hacks to do this. an interesting read on masterless setups: http://current.workingdirectory.net/posts/2011/puppet-without-masters/ -- Gabriel Filion signature.asc Description: OpenPGP digital

Re: [Puppet Users] Nagios service not restarting when removing a host from the database

2013-08-05 Thread Gabriel Filion
the target when collecting, so you might consider using purge = true. to achieve what you want with the workflow you mentioned above (e.g. without the need to export with ensure = absent) -- Gabriel Filion signature.asc Description: OpenPGP digital signature

Re: [Puppet Users] Nagios service not restarting when removing a host from the database

2013-08-05 Thread Gabriel Filion
On 05/08/13 04:33 PM, puppetl...@downhomelinux.com wrote: On Mon, Aug 05, 2013 at 04:22:41PM -0400, Gabriel Filion wrote: you need to export the resource with ensure = absent and run puppet on the host, then on the nagios server so that everything runs fine. Dozens of VMs are routinely

Re: [Puppet Users] Re: New to Puppet bash: command not found

2013-06-15 Thread Gabriel Filion
. with puppet, it is considered a good practice to set a global $PATH value that corresponds to your system with the below snippet (the capital letter at the beginning of Exec is important). Exec { path = '/bin:/sbin:/usr/bin:/usr/sbin', } -- Gabriel Filion signature.asc Description: OpenPGP

Re: [Puppet Users] Puppet 2.7 deprecation warnings

2013-06-03 Thread Gabriel Filion
no reference to the code. Am I right to assume that type 2 logs are related to ruby functions or .erb templates? one way to have a better idea what causes the error is to run with --debug to see the full trace. -- Gabriel Filion signature.asc Description: OpenPGP digital signature

Re: [Puppet Users] Holding packages on providers with holdable feature

2013-05-17 Thread Gabriel Filion
support ;) -- Gabriel Filion signature.asc Description: OpenPGP digital signature

Re: [Puppet Users] Holding packages on providers with holdable feature

2013-05-16 Thread Gabriel Filion
be split in different files in /etc/apt/preferences.d) [0]: http://wiki.debian.org/AptPreferences http://wiki.debian.org/AptPreferences this way, you're sure that no operation, should it be puppet or manual interventions will upgrade the package. -- Gabriel Filion

Re: [Puppet Users] Holding packages on providers with holdable feature

2013-05-15 Thread Gabriel Filion
preferences.d, but everything that can go in /etc/apt/preferences can be split in different files in /etc/apt/preferences.d) [0]: http://wiki.debian.org/AptPreferences this way, you're sure that no operation, should it be puppet or manual interventions will upgrade the package. -- Gabriel Filion

Re: [Puppet Users] Puppet 2.6.x is now EOL

2013-05-02 Thread Gabriel Filion
for another year. -- Gabriel Filion signature.asc Description: OpenPGP digital signature

Re: [Puppet Users] Encrypt Passwords in Manifests

2013-04-03 Thread Gabriel Filion
://github.com/duritong/puppet-trocla -- Gabriel Filion signature.asc Description: OpenPGP digital signature

Re: [Puppet Users] Nagios

2012-10-12 Thread Gabriel Filion
to verify either that one nagios server is exporting these and the second is collecting them, or that both create them as local resources and collect host/service definitions from other nodes. -- Gabriel Filion signature.asc Description: OpenPGP digital signature

Re: [Puppet Users] Puppet client not listening on port 8139

2012-10-10 Thread Gabriel Filion
to port 8139 on the localhost to test that the port is open. Can any one please help? Any suggestions welcome, I have copied the /etc/puppet/*.conf files from another working server. Please Help! -- Gabriel Filion signature.asc Description: OpenPGP digital signature

Re: [Puppet Users] Puppet client not listening on port 8139

2012-10-10 Thread Gabriel Filion
or 8140. hmm this is weird. in your original post you showed us that there were no iptables rules, and you do have listen = true in your puppet.conf. do you see the port as open and listening with netstat? -- Gabriel Filion signature.asc Description: OpenPGP digital signature

Re: [Puppet Users] sharing a storeconfigs db between masters (across versions)

2012-10-02 Thread Gabriel Filion
On 2012-10-02 02:46, David Schmitt wrote: On 01.10.2012 23:11, Gabriel Filion wrote: On 2012-09-29 16:42, Gabriel Filion wrote: From what I understand of storeconfigs, it is possible to plug both puppetmasters on the same MySQL db. Are there any possibilities of issues with having two

Re: [Puppet Users] sharing a storeconfigs db between masters (across versions)

2012-10-01 Thread Gabriel Filion
On 2012-09-29 16:42, Gabriel Filion wrote: From what I understand of storeconfigs, it is possible to plug both puppetmasters on the same MySQL db. Are there any possibilities of issues with having two puppetmasters with *different versions* hit on the same db ? FYI I ran a test run and got my

[Puppet Users] sharing a storeconfigs db between masters (across versions)

2012-09-29 Thread Gabriel Filion
with having two puppetmasters with *different versions* hit on the same db ? The goal of the above scenario with the storeconfigs db would be to keep the nagios configuration functional across puppet master versions while migrating nodes to the 2.6 master. -- Gabriel Filion -- You received this message

Re: [Puppet Users] Nagios purge deleted items and notify nagios service problem

2012-09-11 Thread Gabriel Filion
) -- Gabriel Filion -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit

Re: [Puppet Users] Nagios purge deleted items and notify nagios service problem

2012-09-10 Thread Gabriel Filion
= mtime) hum, was the purge functionality ever fixed for nagios types? I've wanted to use that for some time but fwir it was not implemented. -- Gabriel Filion -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet

Re: [Puppet Users] dmz network configuration

2012-08-29 Thread Gabriel Filion
out of the DMZ, then connection both ways should be assured. -- Gabriel Filion -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email

Re: [Puppet Users] Pros and Cons of a Decentralized Puppet Architecture

2012-07-17 Thread Gabriel Filion
to reinvent a method of doing it. * you really have to trust users with root access on each node since manifests are pulled directly on the server (and can thus be modified locally). -- Gabriel Filion -- You received this message because you are subscribed to the Google Groups Puppet Users group

Re: [Puppet Users] Template populated from multiple defines

2012-05-07 Thread Gabriel Filion
-- Gabriel Filion -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit

Re: [Puppet Users] Re: Cron job isn't running

2012-04-21 Thread Gabriel Filion
Wood christopher_w...@pobox.com mailto:christopher_w...@pobox.com wrote: What does the custom facter variable contain? -- Gabriel Filion -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users

Re: [Puppet Users] Telly: Nagios types moving into Module

2012-04-15 Thread Gabriel Filion
in the same manner as the core is packaged, and made available through the same resources? so then, people could install those with gem, apt or yum. (and easily require those automatically from actual modules) -- Gabriel Filion -- You received this message because you are subscribed to the Google

[Puppet Users] Re: Implementing hooks

2012-04-13 Thread Gabriel Filion
On 12-04-12 02:10 AM, Gabriel Filion wrote: Do you guys know if it would be possible to implement a way to hook my extraneous logic into the define so that I don't need to modify the module directly anymore? oh, I think I've just found something that does pretty much exactly this: https

[Puppet Users] Implementing hooks

2012-04-12 Thread Gabriel Filion
always need to rebase re-arrange my code around upstream modifications.. and for maintenance, it really adds a bunch of work. Do you guys know if it would be possible to implement a way to hook my extraneous logic into the define so that I don't need to modify the module directly anymore? -- Gabriel

Re: [Puppet Users] Implementing hooks

2012-04-12 Thread Gabriel Filion
actually need to modify parameters of a resource in a definition though then the only way I know of would be to have that parameter controlled by an argument to the defined type. yeah, hence the need to modify the define to add in the additional logic :\ On 12/04/12 07:10, Gabriel Filion wrote

Re: [Puppet Users] Implementing hooks

2012-04-12 Thread Gabriel Filion
::Service { base_groups = 'level1-apache-server', } include apache_logic } I think I remember seeing discussion about this kind of feature getting killed sometime because of scoping issues.. is that right? -- Gabriel Filion -- You received this message because you are subscribed

Re: [Puppet Users] Taking github noise away from puppet-dev list

2012-04-09 Thread Gabriel Filion
have the most interest in. This decision isn't final, but I would like to get opinions on the idea. I welcome feedback until Friday, April 13. -- Gabriel Filion -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send

Re: [Puppet Users] Puppet and Passenger

2012-04-07 Thread Gabriel Filion
email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. -- Gabriel Filion -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send

Re: [Puppet Users] Why latest stable Debian Squeeze package is 2.6.2-5+squeeze4 please ?

2012-04-05 Thread Gabriel Filion
://backports-master.debian.org/Instructions/ -- Gabriel Filion -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr

Re: [Puppet Users] catalog format performance comparison

2012-03-29 Thread Gabriel Filion
On 12-03-25 11:43 PM, Gabriel Filion wrote: Changelog from 0.24.5 mentions a new format, marshal, being very much faster than the previous default, yaml. But the current default format is pson. I can't find any comparison in performance to the other two. Is pson the new default because

Re: [Puppet Users] Dynamically extending the group membership of a custom system user

2012-02-13 Thread Gabriel Filion
to your static list of groups. -- Gabriel Filion -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr

Re: [Puppet Users] opensource VPN modules

2012-02-10 Thread Gabriel Filion
On 12-02-10 10:12 AM, Raffael Schmid wrote: On Thu, 09 Feb 2012, Gabriel Filion wrote: Do you guys know of opensourced puppet modules for managing VPN services? I've only found a handful of modules for openvpn that seemed less than complete. Check mine https://github.com/luxflux/puppet

[Puppet Users] opensource VPN modules

2012-02-09 Thread Gabriel Filion
Hey there, Do you guys know of opensourced puppet modules for managing VPN services? I've only found a handful of modules for openvpn that seemed less than complete. -- Gabriel Filion -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post

Re: [Puppet Users] Hiera data unusable in a class with an array parameter

2012-02-09 Thread Gabriel Filion
...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. -- Gabriel Filion -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com

Re: [Puppet Users] Ensure service nsca

2012-02-06 Thread Gabriel Filion
perfectly on gentoo but work bad on debian. It's possible (I haven't verified) that the init script for nsca does not have a status command which reports if the service is running or not. If that's the case, then you'll have to go with a process name pattern. -- Gabriel Filion -- You received

Re: [Puppet Users] Interesting permissions issue with nagios_* providers

2012-02-03 Thread Gabriel Filion
, # ... } also, for the permissions, you could use a file resource with the same path to set permissions (but not the contents). check out this module for examples (have a look at manifests/base.pp): https://labs.riseup.net/code/projects/shared-nagios -- Gabriel Filion -- You received

Re: [Puppet Users] Selecting modlues based on subnet in nodes.pp

2012-01-26 Thread Gabriel Filion
files) -- Gabriel Filion -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options

Re: [Puppet Users] Re: Best practice for SELinux overrides

2012-01-07 Thread Gabriel Filion
Or you could use a parametrized class to make things shorter and easier to understand: class common ( $selinux_mode = 'enforcing' ) { class { selinux: mode = $selinux_mode } } node server1 { include common } node server2 { class { common: selinux_mode = 'permissive' } } -- Gabriel

Re: [Puppet Users] Problem with definition/classes

2012-01-07 Thread Gabriel Filion
expect puppet to fail with a syntax error instead of saying that it can't find the class. You can check your init.pp file for syntax with the command: puppet --parseonly --ignoreimport /etc/puppet/modules/snmpd/manifests/init.pp -- Gabriel Filion -- You received this message because you

Re: [Puppet Users] Re: Puppet capacity with apache+passenger, server saturated

2011-12-21 Thread Gabriel Filion
, you could lower MaxSpareThreads a little to have Apache kill more loose processes (and thus regain their memory faster). -- Gabriel Filion -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users

Re: [Puppet Users] filtering exported resources...

2011-12-16 Thread Gabriel Filion
::knownhosts { Sshkey | type= 'rsa' | {ensure = present} } this should surely work, yes. -- Gabriel Filion -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com

Re: [Puppet Users] Is there a way to push/copy a file from client to master ?

2011-12-13 Thread Gabriel Filion
to contact us.” Bill Waterson (Calvin Hobbes) -- Gabriel Filion -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr

Re: [Puppet Users] a tips , run puppet in client mode in big datacenter

2011-12-13 Thread Gabriel Filion
, being off of the puppet master, ensures an external validation of the catalog content. but for the rest, it sounds like it's just a manual deconstruction of the puppetmaster-puppetclient model.. -- Gabriel Filion -- You received this message because you are subscribed to the Google Groups Puppet

Re: [Puppet Users] Running puppet agent and master from cron jobs

2011-12-04 Thread Gabriel Filion
with the passenger module, so the service simply doesn't need any restarting at all (since the puppetmaster code is only interpreted when a request is made) -- Gabriel Filion -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email

Re: [Puppet Users] AW: nagios_service does not replace target file

2011-11-17 Thread Gabriel Filion
the files from somewhere else, though. If you hold out that rsync process for a while, do you see new services getting added to the file? -- Gabriel Filion -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet

Re: [Puppet Users] AW: nagios_service does not replace target file

2011-11-16 Thread Gabriel Filion
without errors, I couldn't find any related bug entry, so I'm a little bit lost at the moment. Thanks for any help Bernd -- Gabriel Filion -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet

Re: [Puppet Users] Collecting only certain virtual resources?

2011-10-19 Thread Gabriel Filion
. Any suggestions? There might just be some simple syntax that I'm missing. Thanks, Kevin. -- Gabriel Filion -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe

Re: [Puppet Users] custom function puzzlement

2011-09-16 Thread Gabriel Filion
= hsrand(24), minute = hsrand(60), ensure = present, } However, the cron job on every lab server ends up as: # Puppet Name: apt-get-update 1 1 * * * /usr/bin/apt-get update I greatly appreciate any assistance. I'm stumped. -- Gabriel Filion -- You received

Re: [Puppet Users] custom function puzzlement

2011-09-16 Thread Gabriel Filion
Facts and Variables section of http://docs.puppetlabs.com/guides/custom_functions.html shows how to use lookupvar() to obtain client facts. oh, I didn't know about the purpose of lookupvar().. I guess I'll sleep a little less stupid tonight :) sorry for the noise then. -- Gabriel Filion

Re: [Puppet Users] Storeconfigs seem slow

2011-09-12 Thread Gabriel Filion
on the Nagios server (the one extracting the puppet resources). In my experience, exporting native Nagios resources on Nagios clients and collecting them on the Nagios server doesn't seem to be scaling very well. But still, it's usable with around 100 hosts and 500 services.. -- Gabriel Filion -- You

Re: [Puppet Users] Storeconfigs seem slow

2011-09-12 Thread Gabriel Filion
, the most time is spent in resolving relationships between exported nagios resources and ensuring that all the exported resources are unique. To verify this, you could setup postgres to log SQL requests and check out what gets requested during one run. -- Gabriel Filion -- You received this message

Re: [Puppet Users] classes with parameters

2011-09-06 Thread Gabriel Filion
. What is the appropriate way to do that? Did you try to split the two classes up? e.g.: class { 'eucalyptus': 'eucalyptus::nc': arg1 = value1, } -- Gabriel Filion -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group

Re: [Puppet Users] classes with parameters

2011-09-06 Thread Gabriel Filion
you're defining a new class inside your nodes) But I guess once you get the hang of it, it's not that bad. Being able to use the same notation as other kinds of resources is a good thing. -- Gabriel Filion -- You received this message because you are subscribed to the Google Groups Puppet Users

Re: [Puppet Users] Up and running with puppet

2011-08-31 Thread Gabriel Filion
on the whole path. maybe the config or the puppet-dashboard directories don't give enough privileges to the user running dashboard. -- Gabriel Filion -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users

Re: [Puppet Users] Re: Using puppet to import database on client side

2011-07-16 Thread Gabriel Filion
it doesn't find it. try using an absolute path to your dump file. e.g.: exec {Get db: command = /usr/bin/mysql -uroot -proot papa /var/backups/mysql/dumpfile.sql, require = exec[Retrieve dump], } -- Gabriel Filion -- You received this message because you

Re: [Puppet Users] Exported Resources with --noop

2011-07-13 Thread Gabriel Filion
resource) but it shouldn't commit resources to database. -- Gabriel Filion -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users

Re: [Puppet Users] Re: use puppet to manage user accounts on mysql

2011-07-11 Thread Gabriel Filion
together and produce one single awesome module :) I suggested collaboration to the others in the group working on the shared modules hosted at riseup's. I think it should indeed be a great opportunity :) -- Gabriel Filion -- You received this message because you are subscribed to the Google Groups

Re: [Puppet Users] use puppet to manage user accounts on mysql

2011-07-09 Thread Gabriel Filion
check out 'lib/puppet/type' -- Gabriel Filion -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr

Re: [Puppet Users] Problem with usage of arrays

2011-06-16 Thread Gabriel Filion
Talking a bit through my hat here.. but: On 11-06-16 05:36 AM, Roband wrote: i can't use array in puppet. Here is my codesnipplet: $callapidata = [ 'wert1','wert2'] notice $callapidata[1] try something like the following instead of the second line: notice { $callapidata[1]: } -- Gabriel

Re: [Puppet Users] functions and environments

2011-06-16 Thread Gabriel Filion
nasty bugs when testing things out with such a mixed environment. Is there a work around to make the other module of the same name in the /etc/puppet/modules directory not influence the development environment? -- Gabriel Filion -- You received this message because you are subscribed to the Google

Re: [Puppet Users] functions and environments

2011-06-16 Thread Gabriel Filion
it into the per-env directories as appropriate. Oh ok ... I'll have to work something out then.. this is more complicated to use than I thought. Thanks everyone for all the help. -- Gabriel Filion -- You received this message because you are subscribed to the Google Groups Puppet Users group

Re: [Puppet Users] functions and environments

2011-06-15 Thread Gabriel Filion
On 11-06-14 04:39 PM, Nigel Kersten wrote: On Tue, Jun 14, 2011 at 1:26 PM, Gabriel Filion lelu...@gmail.com mailto:lelu...@gmail.com wrote: I'm trying to test out new features of a module before I deploy it and I have difficulty with the functions declared by the module. I'm

[Puppet Users] functions and environments

2011-06-14 Thread Gabriel Filion
plugins vs. environments but I don't really get what would be needed. [1] : http://projects.puppetlabs.com/projects/1/wiki/Using_Multiple_Environments#Plugins+and+Facts Could anybody help me sort out a way to do my tests? -- Gabriel Filion -- You received this message because you

  1   2   >