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 >&

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 cur

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 certificate

[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: https://puppet.com/docs/puppetdb/5.2/connect_puppe

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 > like

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

[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 definitio

[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 an

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

2015-10-01 Thread Gabriel Filion
, $application, $devuser, $vhost_name) { notify { "${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 u

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

2015-06-09 Thread Gabriel Filion
gt; Notice: Revoked certificate with serial 156346 > Notice: Revoked certificate with serial 156455 > Notice: Revoked certificate with serial 156507 > Notice: Revoked certificate with serial 156644 > Notice: Revoked certificate with serial 156767 > Notice: Revoked certificate with s

Re: [Puppet Users] String substituion in puppet template

2015-05-22 Thread Gabriel Filion
ll the function outside of the string. e.g.: <%= "\t\tSetEnvIf X-Forwarded-For ^(" + regsubst(name, '\.','\\.') + ") AllowIP\n"%> -- Gabriel Filion -- You received this message because you are subscribed to the Google Groups "Puppet Users

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 wrote: > > Message from application: Permission denied - /etc/puppet/modules > > (Errno::EACCES) > # su

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

2015-05-11 Thread Gabriel Filion
able to open up 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 m

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

2015-05-07 Thread Gabriel Filion
o tell them they're nuts. you 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

Re: [Puppet Users] jfryman-nginx Duplicate Declaration

2015-04-21 Thread Gabriel Filion
s that this might be called automatically by other parts of the module (I haven't looked at the module's manifests) That's unfortunately the best I can help you with for now. -- Gabriel Filion -- You received this message because you are subscribed to the Google Groups "Puppet

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 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

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

2015-04-08 Thread Gabriel Filion
the above or am I trying 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 Goo

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, b

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/mun

[Puppet Users] misbehaving file resource on only one server

2015-03-24 Thread Gabriel Filion
ould verify to find differences between 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 em

Re: [Puppet Users] Announce: Puppet Server 0.2.0

2014-09-23 Thread Gabriel Filion
tack underlying projects 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
n fact the steps over there encourage ppl to just download the puppetlabs-release-.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 signature

Re: [Puppet Users] Change Hostname on Puppet Master

2014-08-05 Thread Gabriel Filion
r to the existing pem 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

Re: [Puppet Users] Change Hostname on Puppet Master

2014-08-05 Thread Gabriel Filion
rtificate so that it has more corresponding hostnames (think 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] 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/redm

[Puppet Users] mailalias that always refreshes

2014-07-31 Thread Gabriel Filion
hing the alias for no reason. changing 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 unsubscr

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

2014-07-29 Thread Gabriel Filion
x27; > /usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:69:in `execute' > /usr/bin/puppet:4 > err: Could not retrieve catalog from remote server: Error 400 on SERVER: > undefined method `include?' for nil:NilClass on node > warning: Not using cache on failed catalog &

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

2014-04-22 Thread Gabriel Filion
; it means that you need to enclose it in / characters: http://www.ruby-doc.org/core-2.1.1/Regexp.html e.g. : match => /^% /DEFAULTPAPERSIZE \(a4\)/, I'm not sure whether you need the quotes, too.. I'd try without first.. -- 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
nteresting. thanks for the feedback, I'll se about using ruby 1.9.x > On Tue, Mar 11, 2014 at 9:27 AM, Gabriel Filion wrote: >> Hi there, >> >> Say I have a hash like {a=>'1',b=>'2'} and I'd like to get a string that >> looks like &q

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

2014-03-11 Thread Gabriel Filion
h.sort.map to always get results in the same order from 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] Can't get puppet manifest to run

2013-11-06 Thread Gabriel Filion
node 'puppet-san2.domain.com' { or you could have a node named "default" that would be used when puppet can't match with anything else, although from personal 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
around the inability to export host/service templates is by defining a file resource in which I write the templates. -- 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
hat RAID devices 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 signatu

Re: [Puppet Users] Nagios server automating

2013-09-01 Thread Gabriel Filion
target => "/etc/nagios/resource.d/host_${::fqdn}.cfg", } [1]: the target can be specified during collection on the nagios server if you want to send 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
resources -- or option storeconfigs), so if you'd like to automate 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 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

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

2013-08-05 Thread Gabriel Filion
g runs fine. however in your example, you seem not to be redefining 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] Re: New to Puppet bash: command not found

2013-06-15 Thread Gabriel Filion
ment variable $PATH. 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', } -- G

Re: [Puppet Users] Puppet 2.7 deprecation warnings

2013-06-03 Thread Gabriel Filion
/ > As you can see, type 2 has 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
er to it on the list. that way you can get people to vote on the issue to show 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
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 signature.asc Description: OpenPGP digital signature

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

2013-05-15 Thread Gabriel Filion
fo on pinning (it doesn't talk about 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 intervention

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

2013-05-02 Thread Gabriel Filion
x27;ll be around 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/trocla with the puppet integration module: https://github.com/duritong/puppet-trocla -- Gabriel Filion signature.asc Description: OpenPGP digital signature

Re: [Puppet Users] Nagios

2012-10-12 Thread Gabriel Filion
e probably exporting the same resources twice. you might want 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
y to port 8139 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] Puppet client not listening on port 8139

2012-10-10 Thread Gabriel Filion
allow * > > # this one is not stricly necessary, but it has the merit > # to show the default policy which is deny everything else > path / > auth any > > It seems as though the puppet is running: > 4074 ?Ss 0:00 /usr/bin/ruby /usr/sbin/puppetd > --server=mypuppetserver.fqdn --logdest=/var/log/puppet/puppet.log > > But I cant even telnet 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] 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 possi

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

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

2012-09-29 Thread Gabriel Filion
ies of issues 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 --

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

2012-09-11 Thread Gabriel Filion
this since I can expect it to only get marked as "wontfix") -- 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

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

2012-09-10 Thread Gabriel Filion
=> true, > } > > > > And make Nagios service subrscribe to the file /etc/nagios (cheksum => > 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 r

Re: [Puppet Users] dmz network configuration

2012-08-29 Thread Gabriel Filion
u let established connections 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 fro

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

2012-07-17 Thread Gabriel Filion
esources) is tougher. you pretty much have 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 subscribe

Re: [Puppet Users] Template populated from multiple defines

2012-05-07 Thread Gabriel Filion
hack and > doesn't cleanly express what variables are available to be set. > > Anyone have any suggestions on the best way to make this work? The only way that I could think of doing this would be by using a concatenated file[1]. Each define would create a morcel that would get conc

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

2012-04-21 Thread Gabriel Filion
1, 2012 12:52 PM, "Christopher Wood" <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

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

2012-04-15 Thread Gabriel Filion
Since the types by themselves are not a module per-se, could it be better to package them 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) --

[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 pre

Re: [Puppet Users] Implementing hooks

2012-04-12 Thread Gabriel Filion
epending on an arbitrary "level" of service : class level1_apache_server { Nagios::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..

Re: [Puppet Users] Implementing hooks

2012-04-12 Thread Gabriel Filion
27;my_nagios' definition, but still the one from the nagios module. > If you 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 m

[Puppet Users] Implementing hooks

2012-04-11 Thread Gabriel Filion
't need to modify the module directly anymore? -- 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-user

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

2012-04-09 Thread Gabriel Filion
prior to making a > pull request/patch. > 4. You can also watch the RSS feed for the puppet projects you 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

Re: [Puppet Users] Puppet and Passenger

2012-04-07 Thread Gabriel Filion
>> >> Thank you! >> >> -- >> 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 emai

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

2012-04-05 Thread Gabriel Filion
ackports[1] branch, in which you can find puppet 2.7 [1]: http://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@googlegroup

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 > pe

[Puppet Users] catalog format performance comparison

2012-03-25 Thread Gabriel Filion
default because it fairs better than "marshal" ? -- 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 p

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

2012-02-13 Thread Gabriel Filion
reate a custom fact that would harvest those groups that are present and that you need to add to your users. (I can't help you too much with how to implement this, though, since my ruby is at the level of baby steps) In your manifests, you would then have to split the string returned by the fa

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 com

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

2012-02-09 Thread Gabriel Filion
o puppet-users@googlegroups.com. > To unsubscribe from this group, send 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 subscr

[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"

Re: [Puppet Users] Ensure service nsca

2012-02-06 Thread Gabriel Filion
nstall"], > } > > If I add hasstatus => true work 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 tha

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

2012-02-03 Thread Gabriel Filion
ection: Nagios_command <||> { target => "${nagios::defaults::vars::int_nagios_cfgdir}/conf.d/nagios_command.cfg", # ... } 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

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

2012-01-26 Thread Gabriel Filion
u can find the code for custom facts from arbitrary 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

Re: [Puppet Users] intermodule dependency

2012-01-26 Thread Gabriel Filion
pe" or "node role" kind of class that you include in your node. say: class mysql_server_role { include ldap_authentication_role # which declares whatever is needed # for ldap support include mysql Class['Ldap'] -> Class['Mysql

Re: [Puppet Users] Problem with definition/classes

2012-01-07 Thread Gabriel Filion
ment).conf", > require => Class["snmpd::install"], > } and another } here > And on the node that getting the error message i have include snmpd. If the above is true though, I would expect puppet to fail with a syntax error instead of saying that it can&

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 => 'permiss

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

2011-12-21 Thread Gabriel Filion
at peak concurrency, 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 grou

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

2011-12-16 Thread Gabriel Filion
uot;ensure => absent" on them. > Can I do something like: > > class ssh::knownhosts { > Sshkey <<| type= 'rsa' |>> {ensure => present} > } this should surely work, yes. -- Gabriel Filion -- You received this message because y

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

2011-12-13 Thread Gabriel Filion
that the GPG key, 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 subscribe

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

2011-12-13 Thread Gabriel Filion
t life exists elsewhere in > the universe is that none of it has tried 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 e

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

2011-12-04 Thread Gabriel Filion
r > uptime. Here, puppet is run via Apache 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

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

2011-11-17 Thread Gabriel Filion
exported resources. You said you rsynced 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 Use

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

2011-11-16 Thread Gabriel Filion
;>> > require => File["${baseconfigdir}"], >>> > } >>> > >>> > Everything works fine on the first run. But once a client changes its >>> > Nagios resources, the new configuration will not end up in the target >>> >

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

2011-10-19 Thread Gabriel Filion
;CH3'. > > I'm using a single mysql DB for thin stored configs, and have three > puppet masters, one in each location. All three are connecting to the > same mysql db for stored configs. > > Any suggestions? There might just be some simple syntax that I'm > miss

Re: [Puppet Users] Using puppet to install debian packages from backports

2011-09-25 Thread Gabriel Filion
ved 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. >&g

Re: [Puppet Users] custom function puzzlement

2011-09-16 Thread Gabriel Filion
rt > with 1,1. The "Using 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 to

Re: [Puppet Users] custom function puzzlement

2011-09-16 Thread Gabriel Filion
; stringarray = string.split(//) > > File.open('/tmp/t2', 'w') {|f| f.write(stringarray[0]) } > > count = 0 > > for i in (stringarray) > if values[i] > count = count + values[i] > end > end > > srand(count) >

Re: [Puppet Users] Storeconfigs seem slow

2011-09-12 Thread Gabriel Filion
l > of the files from the CLI takes less than 2 seconds. I haven't traced the thing, but from what I could understand, 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 p

Re: [Puppet Users] Storeconfigs seem slow

2011-09-12 Thread Gabriel Filion
e shouldn't change much with or without exporting nagios resources, except 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.

Re: [Puppet Users] classes with parameters

2011-09-06 Thread Gabriel Filion
f the 'class' reserved word, it now looks like 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 mes

Re: [Puppet Users] classes with parameters

2011-09-06 Thread Gabriel Filion
added parameters to the 2nd class and would like to set > values here. 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 mess

Re: [Puppet Users] Up and running with puppet

2011-08-31 Thread Gabriel Filion
on Rails > could help throw some light on the topic. verify the permissions 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

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

2011-07-16 Thread Gabriel Filion
milar fashion in your manifests it probably errors out because 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", r

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

2011-07-13 Thread Gabriel Filion
a conflict (redefinition of an exported 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@googlegro

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

2011-07-11 Thread Gabriel Filion
ten wrote: >>> This looks like a good opportunity for the various mysql module authors to >>> all get 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 in

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

2011-07-09 Thread Gabriel Filion
tps://labs.riseup.net/code/projects/shared-mysql 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 unsubscrib

Re: [Puppet Users] functions and environments

2011-06-16 Thread Gabriel Filion
on, you then move 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 G

  1   2   >