[Puppet Users] Re: Duplicate declaration

2018-09-17 Thread Ugo Bellavance
To be honest, I used the !defined because I am not good enough with puppet right now to check the other options. I have made myself a note, though, to revisit this code eventually. Thanks, -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To

[Puppet Users] Re: Duplicate declaration

2018-09-11 Thread Ugo Bellavance
On Tuesday, September 11, 2018 at 9:31:43 AM UTC-4, jcbollinger wrote: > > > > On Monday, September 10, 2018 at 11:18:34 AM UTC-5, Michael Watters wrote: >> >> I'd prefer to see the entire vhost.pp code >> > Here it is: https://pastebin.com/1Qt9ng7b -- You received this message because you

[Puppet Users] Re: Duplicate declaration

2018-09-10 Thread Ugo Bellavance
On Monday, September 10, 2018 at 9:46:18 AM UTC-4, Michael Watters wrote: > > It sounds like your atqapache::vhost type is attempting to create > the /var/www/dev/user1/client1 directory for every vhost that is defined. > Can you post your definition for this type here? > > >> Wasn't it in my

Re: [Puppet Users] Duplicate declaration

2018-09-09 Thread Ugo Bellavance
On Friday, September 7, 2018 at 5:37:29 PM UTC-4, LinuxDan wrote: > > Separate the client base directory resource from the application directory > resource. > > When declaring each application directory, add a “require” parameter with > a value of the client base directory. > > Thank you for

[Puppet Users] Duplicate declaration

2018-09-07 Thread Ugo Bellavance
Hi, I have made a module, a long time ago, that allows me to create directories and httpd config files. My pattern is /var/www/dev/$devuser/$clientname/$appname/ It worked perfectly until I ended up having more than one $appname for the same $clientname. Here's the error message I get:

Re: [Puppet Users] hiera lookup

2018-05-30 Thread Ugo Bellavance
When I leave just the class declaration it works: > > >> class {'postgresql::server::contrib': >> } >> > > > Well if that serves your needs (and it should) then it is better form to > use an include-like declaration instead: > > include 'postgresql::server::contrib' > > But that's mostly a style

Re: [Puppet Users] hiera lookup

2018-05-29 Thread Ugo Bellavance
> > That's awfully surprising if those data appear in an Hiera data file from > which you are successfully loading other data. If that is in fact > happening then the most likely reason would be that a resource-like class > declaration for that class somewhere in your manifest set is

Re: [Puppet Users] hiera lookup

2018-05-29 Thread Ugo Bellavance
On Tuesday, May 29, 2018 at 6:55:01 AM UTC-4, Arnau wrote: > > > > 2018-05-29 12:24 GMT+02:00 Ugo Bellavance >: > >> >> >> On Tuesday, May 29, 2018 at 5:54:54 AM UTC-4, Arnau wrote: >>> >>> Hi, >>> >>> postgresql:

Re: [Puppet Users] hiera lookup

2018-05-29 Thread Ugo Bellavance
On Tuesday, May 29, 2018 at 5:54:54 AM UTC-4, Arnau wrote: > > Hi, > > postgresql::server::contrib::package_name: 'rh-postgresql96-postgresql- > contrib' > postgresql::server::contrib::packages_ensure: present > > I don't get the error anymore. It's not doing what it's supposed but I'll look

Re: [Puppet Users] hiera lookup

2018-05-29 Thread Ugo Bellavance
e_resource). > > Best, > Arnau > > 2018-05-28 22:19 GMT+02:00 Ugo Bellavance >: > >> Hi, >> >> I am using the postgresql module and I wanted to put all my data in >> hiera. Some parameters were simply looked up automatically, like >> postgresql::glo

[Puppet Users] Re: Environment variable setting while using a module

2018-04-19 Thread Ugo Bellavance
On Thursday, April 19, 2018 at 7:50:30 AM UTC-4, Thomas Müller wrote: > > Hi Ugo > > Am Freitag, 30. März 2018 17:27:28 UTC+2 schrieb Ugo Bellavance: >> >> Hi, >> >> I'm using the puppetlabs-postgresql module and it works very well, but I >> want t

[Puppet Users] Re: Environment variable setting while using a module

2018-04-06 Thread Ugo Bellavance
On Monday, April 2, 2018 at 10:21:15 AM UTC-4, jcbollinger wrote: > > It looks like that's probably the *intended* solution, so by all means go > with it. In a more general sense, however, LD_LIBRARY_PATH is not a tool > for use in a stable configuration. It is for one-offs, and possibly for

[Puppet Users] Re: Environment variable setting while using a module

2018-03-30 Thread Ugo Bellavance
I think I found a viable solution: $ cat /etc/profile.d/enablerh-postgresql96.sh #!/bin/bash source scl_source enable rh-postgresql96 On Friday, March 30, 2018 at 11:27:28 AM UTC-4, Ugo Bellavance wrote: > > Hi, > > I'm using the puppetlabs-postgresql module and it works very

[Puppet Users] Environment variable setting while using a module

2018-03-30 Thread Ugo Bellavance
Hi, I'm using the puppetlabs-postgresql module and it works very well, but I want to make it work with a non-standard version of postgresql (from Red Hat Software Collections) because I would like to use Postgresql 9.6 on RHEL 7. Almost everything is working, but I get errors from some

[Puppet Users] Re: Puppet open-source EOLs

2017-12-05 Thread Ugo Bellavance
On Tuesday, December 5, 2017 at 4:33:05 AM UTC-5, Antony Fomenko wrote: > > Hi. > You should update to Puppet 5. But if you use PuppetDB and want to save > data you will have to make a stop in Puppet4 with latest PuppetDB 2.x, then > update PuppetDB to 4.x and afterwards migrate to Puppet5 and

Re: [Puppet Users] Re: Configuring Cisco Network devices

2017-12-05 Thread Ugo Bellavance
On Tuesday, December 5, 2017 at 3:36:11 PM UTC-5, Jo wrote: > > Also this helps deal with managing large numbers of ports with common > configuration: https://github.com/jorhett/puppet-device_hiera > > This is production-quality, with years of use at some very large entities. > > Regarding

Re: [Puppet Users] Puppet open-source EOLs

2017-12-03 Thread Ugo Bellavance
On Sunday, December 3, 2017 at 10:02:52 AM UTC-5, Martin Alfke wrote: > > Hi Ugo, > > > On 03 Dec 2017, at 02:14, Ugo Bellavance <ug...@lubik.ca > > wrote: > > > > Hi, > > > > I did google quite a lot about this because we're currently u

[Puppet Users] Re: Configuring Cisco Network devices

2017-12-02 Thread Ugo Bellavance
Did you check this module: https://github.com/uniak/puppet-networkdevice Notice: it says that it's a work in progress. Use with caution and test extensively in lab before using in production. On Friday, August 4, 2017 at 11:24:15 AM UTC-4, Harkanwal wrote: > > Hello > > I need help with current

[Puppet Users] Puppet open-source EOLs

2017-12-02 Thread Ugo Bellavance
Hi, I did google quite a lot about this because we're currently using the EOL'd puppet 3.8 open-source and I'm planning the upgrade to a supported version. I don't understand how the new lifecycle works. Should I upgrade straight to 5 or will puppet 4 supported for a few years? I have a

Re: [Puppet Users] stdlib module invalid

2017-07-24 Thread Ugo Bellavance
: > > It is possible that zendserver may specifically request 4.3.2, rather then > >=4.3.2, which means 4.17.1 is an invalid version for dependencies. You can > check metadata.json in zendserver to see what specifically it says. > > On Thu, Jul 20, 2017 at 9:11 PM Ugo Bellavance <ug...@lubi

[Puppet Users] stdlib module invalid

2017-07-20 Thread Ugo Bellavance
Hi, I wonder why, on all my puppet servers, I always get an "invalid" message besides stdlib. # puppet module list Warning: Module 'puppetlabs-stdlib' (v4.17.1) fails to meet some dependencies: 'zend-zendserver' (v0.2.0) requires 'puppetlabs-stdlib' (v4.3.2)

[Puppet Users] Re: external facts script not working, but only when puppet agent is run as a daemon

2017-07-04 Thread Ugo Bellavance
What I meant exactly is that the error messages were added to the json, so when I tried to load the json into an array, I got an error saying that the input was not a standard json string. On Monday, July 3, 2017 at 3:20:12 PM UTC-4, Ugo Bellavance wrote: > > I found it: the PHP script

[Puppet Users] Re: external facts script not working, but only when puppet agent is run as a daemon

2017-07-03 Thread Ugo Bellavance
I found it: the PHP script threw PHP Notices when run as a daemon because of uninitialized variables. Got rid of them and now the script works when puppet agent is run as a daemon. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To

[Puppet Users] external facts script not working, but only when puppet agent is run as a daemon

2017-06-30 Thread Ugo Bellavance
Hi, I'm a beginner with PHP but I managed to get two scripts to work for generating external facts for a puppet module. These scripts work perfectly when I run puppet manually (puppet agent --test), but when the puppet agent is started as a daemon (systmctl start puppet), facts are not

Re: [Puppet Users] getvar and case

2017-06-28 Thread Ugo Bellavance
I confirm that using stdlib's downcase() worked. -- 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 this

Re: [Puppet Users] getvar and case

2017-06-23 Thread Ugo Bellavance
On Friday, June 23, 2017 at 2:01:46 AM UTC-4, R.I. Pienaar wrote: > > You don't mention your versions but on the last 2 years of versions - i.e. > 4 - do: > > $facts["zend_application_name_${user_app_name}"] > > It looks like the facts are all forced downcase

Re: [Puppet Users] getvar and case

2017-06-23 Thread Ugo Bellavance
ut 98% of this task done so I'm just about to be able to start to work with a more recent version of puppet. Thanks, > > --- > R.I.Pienaar > > > On 23 Jun 2017, at 05:03, Ugo Bellavance <ug...@lubik.ca > > wrote: > > > > zend_application_na

[Puppet Users] getvar and case

2017-06-22 Thread Ugo Bellavance
Hi, I'm fetching some data in facts using getvar, but as soon as there is a capital letter in the result, the result doesn't go in the variable. For example, this never returns anything: $directive_value_fact = getvar("::zend_directive_fileValue_${name}") The generated fact that I'm

[Puppet Users] Apply every time for no reason = acceptable?

2017-06-04 Thread Ugo Bellavance
Hi, I'm working on a module that applies some changes through API commands. Where I am now, it's now able to set values to a PHP config using this API, but I feel it is a bit ugly because it does the API call every time puppet runs, no matter if there is a change or not. It is problematic? I

[Puppet Users] Re: Puppet Apply

2017-06-04 Thread Ugo Bellavance
On Friday, June 2, 2017 at 2:05:53 PM UTC-4, Corey Osman wrote: > > I would suggest using a tool I wrote called the puppet debugger. It > allows you to write little bits of code in realtime and get the results > back right away. It is a wonderful tool to learn the language with. > >

Re: [Puppet Users] Order two calls of parameterized classes

2017-06-02 Thread Ugo Bellavance
> > As simple as that? Great. I tried it and the reload did run after the > add, but I can't see from the logs that the reload has the add as > dependency. > > With your suggested change: > > Debug: >

[Puppet Users] Re: Puppet Apply

2017-06-02 Thread Ugo Bellavance
On Friday, June 2, 2017 at 9:10:00 AM UTC-4, Fairouz el ouazi wrote: > > HI, >First thank you for your response : My problem is a little bit > complicated . ..and it took 's me one week to know if puppet is the > device management that i m looking for . To be more clear ...there's an

[Puppet Users] Re: Puppet Apply

2017-06-02 Thread Ugo Bellavance
On Friday, June 2, 2017 at 8:06:28 AM UTC-4, Ugo Bellavance wrote: > > > > On Friday, June 2, 2017 at 4:49:13 AM UTC-4, Fairouz el ouazi wrote: >> >> HI, >> >>I'm still a beginner in Puppet , and i want to know the advantages and >> in winch

Re: [Puppet Users] Order two calls of parameterized classes

2017-06-02 Thread Ugo Bellavance
On Thursday, June 1, 2017 at 11:39:26 PM UTC-4, Matthew Kennedy wrote: > > Because puppet is declarative you can only have one instance of a resource > with a particular title in the catalog. This means you cannot have two > instances of a class in the catalog (though you can include a class

Re: [Puppet Users] Order two calls of parameterized classes

2017-06-02 Thread Ugo Bellavance
On Thursday, June 1, 2017 at 6:08:01 PM UTC-4, Pete Brown wrote: > > The require meta parameter will do that. > Ok, but how to formulate it with the variables? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group

[Puppet Users] Re: Puppet Apply

2017-06-02 Thread Ugo Bellavance
On Friday, June 2, 2017 at 4:49:13 AM UTC-4, Fairouz el ouazi wrote: > > HI, > >I'm still a beginner in Puppet , and i want to know the advantages and > in winch cases we have to use Puppet in standalone version ? >All that i found is that :single host method on puppet can be the best

[Puppet Users] Order two calls of parameterized classes

2017-06-01 Thread Ugo Bellavance
Hi, I would need to execute a command after the execution of another and I didn't find anything on the web regarding this. Here's the code: if $vhost_name_fact != undef { } else { zendserver::sdk::command { "vhost_add_${vhostname}_${port}": target => $target,

Re: [Puppet Users] Equivalent of Require, but slightly different

2017-05-15 Thread Ugo Bellavance
> > Hi, > > Your comparison of $::zend_gui_completed is never boolean true, so the > notify always happens. Perhaps your fact is returning a string and not a > boolean. Put this in your code just above the conditional statement. > > $zgc_type = inline_template('<%= @zend_gui_completed.class

[Puppet Users] Equivalent of Require, but slightly different

2017-05-15 Thread Ugo Bellavance
Hi, I'm working on a public puppet module and while I've done a lot of improvements up to now (especially considering my puppet capabilities), there is still a lot of work to do and I'd need some help for my next step. My repo is https://github.com/ubellavance/ZendServerPuppet and my next

Re: [Puppet Users] Upgrading to Puppet 4 - what about the modules

2017-05-04 Thread Ugo Bellavance
gt; fixes may be problematic as well. Something to explore, anyway. > > On Wed, May 3, 2017 at 9:44 PM Ugo Bellavance <ug...@lubik.ca > > wrote: > >> Hi, >> >> I'm currently running a puppet 3 server that serves about 20 puppet 3 >> clients. I

[Puppet Users] Upgrading to Puppet 4 - what about the modules

2017-05-03 Thread Ugo Bellavance
Hi, I'm currently running a puppet 3 server that serves about 20 puppet 3 clients. I use a number of modules, and most of them are not compatible with puppet 4. There is at least one module that is not compatible with puppet 4. Is puppet 4 backwards compatible somehow or do we need to have

[Puppet Users] Re: Puppet master log

2017-01-24 Thread Ugo Bellavance
On Tuesday, October 18, 2016 at 3:04:16 PM UTC-4, Ugo Bellavance wrote: > > Hi, > > I switched from puppet 2.7 on RHEL5 to puppet 3.8. In the 2.7 logs, I > could see the agent's logs, but in 3.8, I don't. I tried changing the > log_level, but it didn't change the way it log

[Puppet Users] Re: Regex auto-escape

2017-01-13 Thread Ugo Bellavance
On Friday, January 13, 2017 at 6:24:57 AM UTC-5, Thomas Müller wrote: > > > > Am Donnerstag, 12. Januar 2017 20:23:48 UTC+1 schrieb Ugo Bellavance: >> >> Hi, >> >> I've been working on a public module that manage text entries that have >> SELinux conte

[Puppet Users] Regex auto-escape

2017-01-12 Thread Ugo Bellavance
Hi, I've been working on a public module that manage text entries that have SELinux contexts in them. I added basic support to some of the regex special characters that may be used in SELinux contexts and here's the result:

[Puppet Users] Tidy not working

2016-11-15 Thread Ugo Bellavance
Hi, # puppet -V 2.7.26 (both on server and client). I created this manifest: class tidy_dtools_logdir { tidy { "/opt/ati/dtools-current-version/log/": age => '1w', } } Added the class to the node, then ran puppet, then: cat /var/lib/puppet/classes.txt | grep dtool

Re: [Puppet Users] Re: Role vs hiera

2016-10-27 Thread Ugo Bellavance
On Thursday, October 27, 2016 at 11:45:06 AM UTC-4, Thomas Müller wrote: > > > > Am 27.10.2016 um 15:43 schrieb Ugo Bellavance: > > That looks great, thanks! > > > > However, I just realized that my server roles are somewhat related to > > the server

[Puppet Users] Re: Role vs hiera

2016-10-27 Thread Ugo Bellavance
of them? Something like /hiera/hosts/www?.yaml ? If not, could I use a hard or soft link? Thanks, On Thursday, October 27, 2016 at 3:52:49 AM UTC-4, Thomas Müller wrote: > > > > Am Dienstag, 18. Oktober 2016 20:34:25 UTC+2 schrieb Ugo Bellavance: >> >> Hi, >> >>

Re: [Puppet Users] Role vs hiera

2016-10-25 Thread Ugo Bellavance
Hi, I was actually wondering if it could be done without an ENC as we don't have one for now. Thanks a lot for your input though. Ugo On Tuesday, October 18, 2016 at 3:50:37 PM UTC-4, Matt Zagrabelny wrote: > > On Tue, Oct 18, 2016 at 1:34 PM, Ugo Bellavance <ug...@lubik.ca

[Puppet Users] Re: Using a module that is not 100% hiera-compliant

2016-10-19 Thread Ugo Bellavance
son you couldn't just do this on your own in a profile (or > anywhere else): > > $configs = hiera('') > create_resources('postfix::config', $configs) > > On Tuesday, October 18, 2016 at 1:56:59 PM UTC-4, Ugo Bellavance wrote: >> >> Hi, >> >> I am using camptocamp/po

[Puppet Users] Puppet master log

2016-10-18 Thread Ugo Bellavance
Hi, I switched from puppet 2.7 on RHEL5 to puppet 3.8. In the 2.7 logs, I could see the agent's logs, but in 3.8, I don't. I tried changing the log_level, but it didn't change the way it logged, even at debug. How do I get back the 2.7 log behaviour? Thanks, -- You received this message

[Puppet Users] Role vs hiera

2016-10-18 Thread Ugo Bellavance
Hi, I've seen tutorials where they add the role as a fact in an client and then can use the role for hiera data. Is there a better way to do so (ie without having to configure anything on the client)? Thanks, -- You received this message because you are subscribed to the Google Groups

Re: [Puppet Users] Default profile or role

2016-10-18 Thread Ugo Bellavance
oles and profiles -- they're just classes >> that get assigned to nodes based on the node's definition. >> >> Thus, if you want a default role assigned to the default node >> definition... then assign that default role to the default node definition. >> >

[Puppet Users] Default profile or role

2016-10-18 Thread Ugo Bellavance
Hi, Is there an equivalent of the default node definition when using profiles and roles? Thanks, -- 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] Using a module that is not 100% hiera-compliant

2016-10-18 Thread Ugo Bellavance
Hi, I am using camptocamp/postfix for my postfix configuration. I originally defined all my configs manifests but now I would like to change to using hiera. Unfortunately, this module doesn't support hiera for some of the configs, so I must define many parameters in the manifests. I wanted

[Puppet Users] Re: Use a puppet or hiera variable in hiera

2016-09-30 Thread Ugo Bellavance
On Friday, September 30, 2016 at 3:17:50 AM UTC-4, Peter Faller wrote: > > Have you considered using an external node classifier instead? > I use The Foreman on my older 2.7 puppet master, but only for reporting purposes. I think I may not good enough with puppet to use an ENC. I'm not on

[Puppet Users] Use a puppet or hiera variable in hiera

2016-09-29 Thread Ugo Bellavance
Hi, Is it possible to have an array in hiera (or puppet) and use it in hiera? For example: clients: - client1 - client2 Then, nginx::nginx_vhosts: "%{hiera('clients')}": ensure: present It would be the equivalent of having: nginx::nginx_vhosts: 'client1': ensure: present

Re: [Puppet Users] Using a vhost name in hiera

2016-09-29 Thread Ugo Bellavance
On Wednesday, September 28, 2016 at 8:07:26 PM UTC-4, Ugo Bellavance wrote: > > > > On Wednesday, September 28, 2016 at 4:35:50 PM UTC-4, Garrett Honeycutt > wrote: >> >> On 9/28/16 3:54 PM, Ugo Bellavance wrote: >> > Hi, >> > >> > I am

Re: [Puppet Users] Using a vhost name in hiera

2016-09-28 Thread Ugo Bellavance
On Wednesday, September 28, 2016 at 4:35:50 PM UTC-4, Garrett Honeycutt wrote: > > On 9/28/16 3:54 PM, Ugo Bellavance wrote: > > Hi, > > > > I am working with this module https://github.com/voxpupuli/puppet-nginx > > to get some nginx servers up. Here

[Puppet Users] Using a vhost name in hiera

2016-09-28 Thread Ugo Bellavance
Hi, I am working with this module https://github.com/voxpupuli/puppet-nginx to get some nginx servers up. Here is my hiera config for a vhost: nginx::nginx_vhosts: 'website1.domain.com': proxy: 'http://website1.internal' I would like to have my logs in one directory per vhost. Here is

Re: [Puppet Users] Duplicate declaration - hard to find...

2016-09-21 Thread Ugo Bellavance
I found the problem by making the classe temporarily non-parameterized and it threw an error "Invalid parameter application". I called this class in another file. I'll fix that up. Thanks for your help! Ugo -- You received this message because you are subscribed to the Google Groups

Re: [Puppet Users] Duplicate declaration - hard to find...

2016-09-21 Thread Ugo Bellavance
> > > in a define all resources have to have unique names, error says in some > case > you do not. So you're either attempting to make 2 instances where > application > is 'agtweb' or something else, > > Show the actual code. And the actual code where you make 'agtweb' > application. > >

[Puppet Users] Duplicate declaration - hard to find...

2016-09-21 Thread Ugo Bellavance
Hi, I'm getting this error message when I run a puppet noop: Error 400 on SERVER: Duplicate declaration: File[/var/www/atd/src/agtweb] is already declared in file /etc/puppet/modules/apache/manifests/varwwwatdsrcapp.pp at line 17; cannot redeclare at

Re: [Puppet Users] pdxcat-nrpe, hiera data in command

2016-04-22 Thread Ugo Bellavance
> > Hi Ugo, > > You don't have to to modify pdxcat/nrpe to get that to work. Wherever > you are calling this from, you need to set the value of $ntpserver. That > can happen as a parameter to the class which would automatically look it > up or with the hiera() function. > > I also have an

Re: [Puppet Users] pdxcat-nrpe, hiera data in command

2016-04-21 Thread Ugo Bellavance
On Thursday, April 21, 2016 at 3:25:35 PM UTC-4, Rob Nelson wrote: > > Can you link directly to the module you're using, on the forge or on > github? Sorry... https://github.com/pdxcat/puppet-module-nrpe or https://forge.puppet.com/pdxcat/nrpe -- You received this message because you are

[Puppet Users] pdxcat-nrpe, hiera data in command

2016-04-21 Thread Ugo Bellavance
Hi, I want to create a nrpe command using the pdxcat-nrpe, for check_ntp. My NTP servers would check against public servers, and all others will check against my internal NTP servers. The code looks like that: nrpe::command { 'check_ntp': package_name =>

[Puppet Users] Re: Hiera Error 400 on SERVER: Could not find data item classes in any Hiera data file and no default supplied

2016-04-21 Thread Ugo Bellavance
On Thursday, April 21, 2016 at 9:03:29 AM UTC-4, jcbollinger wrote: > > > > On Wednesday, April 20, 2016 at 8:13:52 AM UTC-5, Ugo Bellavance wrote: >> >> >> >> On Wednesday, April 20, 2016 at 9:03:35 AM UTC-4, jcbollinger wrote: >>> >>> &

[Puppet Users] Re: Hiera Error 400 on SERVER: Could not find data item classes in any Hiera data file and no default supplied

2016-04-20 Thread Ugo Bellavance
On Wednesday, April 20, 2016 at 9:03:35 AM UTC-4, jcbollinger wrote: > > > > On Tuesday, April 19, 2016 at 12:36:47 PM UTC-5, Ugo Bellavance wrote: > > This: > > >> When debugging on the master: >> >> # puppet master --debug --compile agent1.example.co

Re: [Puppet Users] Hiera Error 400 on SERVER: Could not find data item classes in any Hiera data file and no default supplied

2016-04-20 Thread Ugo Bellavance
On Wednesday, April 20, 2016 at 7:45:13 AM UTC-4, Peter Faller wrote: > > Ugo, I think you need: > > classes: > - ntp > > ... instead of: > > classes: ntp > > ... to make 'classes' an array instead of a simple value. > Tried it but I get the same result. I think that both work, the array

Re: [Puppet Users] Hiera Error 400 on SERVER: Could not find data item classes in any Hiera data file and no default supplied

2016-04-19 Thread Ugo Bellavance
8 and then 4.3/4.4 > that it's very likely that any bug you run into is already fixed by moving > past 3.6.2. > > > Rob Nelson > rnel...@gmail.com > > On Tue, Apr 19, 2016 at 1:36 PM, Ugo Bellavance <ug...@lubik.ca > > wrote: > >> Hi, >> >&g

[Puppet Users] Hiera Error 400 on SERVER: Could not find data item classes in any Hiera data file and no default supplied

2016-04-19 Thread Ugo Bellavance
Hi, I'm currently testing hiera and I can't make it work. I get this error: Error 400 on SERVER: Could not find data item classes in any Hiera data file and no default supplied at /etc/puppet/manifests/site.pp:11 on node. I'm trying to do something like this:

Re: [Puppet Users] stdlib

2016-04-15 Thread Ugo Bellavance
My bad, I had deleted the files in /etc/puppet/modules/stdlib/ on the server. The agent deleted files in /var/lib/puppet/lib/puppet/parser/functions/. I restored the files from svn and the problem doesn't occur. Thanks, -- You received this message because you are subscribed to the Google

Re: [Puppet Users] stdlib

2016-04-14 Thread Ugo Bellavance
b Nelson > rnel...@gmail.com > > On Thu, Apr 14, 2016 at 3:48 PM, Ugo Bellavance <ug...@lubik.ca > > wrote: > >> Hi, >> >> Is it normal that when a new client connects to a master, stdlib is >> sync'd? Is that part of pluginsync? >> >> T

[Puppet Users] stdlib

2016-04-14 Thread Ugo Bellavance
Hi, Is it normal that when a new client connects to a master, stdlib is sync'd? Is that part of pluginsync? Thanks, -- 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

Re: [Puppet Users] Template problems

2016-03-09 Thread Ugo Bellavance
On Tuesday, March 8, 2016 at 8:11:46 AM UTC-5, R.I. Pienaar wrote: > > > > - Original Message - > > From: "Ugo Bellavance" <ug...@lubik.ca > > > To: "puppet-users" <puppet...@googlegroups.com > > > Sent: Tuesday, 8

Re: [Puppet Users] Template problems

2016-03-08 Thread Ugo Bellavance
nd > %> > > Everything inside is normal Ruby and that's how interpolation works there > > --- > R.I.Pienaar > > > On 8 Mar 2016, at 04:32, Ugo Bellavance <ug...@lubik.ca > > wrote: > > > > > <%= if @rotatelogsuselink then "-L /

Re: [Puppet Users] Template problems

2016-03-08 Thread Ugo Bellavance
d/#{@name}/access.log" end > %> > > Everything inside is normal Ruby and that's how interpolation works there > > --- > R.I.Pienaar > > > On 8 Mar 2016, at 04:32, Ugo Bellavance <ug...@lubik.ca > > wrote: > > > > > <%= if @rotatelo

[Puppet Users] Template problems

2016-03-07 Thread Ugo Bellavance
Hi, I'd like to be able to do something but I always get an error. Here is my code: <% if userotatelogs == false -%> CustomLog /var/log/httpd/<%= name %>/access.log combined <% else -%> CustomLog "|/usr/sbin/rotatelogs <%= if @rotatelogsuselocaltime then '-l' end %> <%= if

Re: [Puppet Users] Re: Creating multiple directories based on variables or array

2015-10-14 Thread Ugo Bellavance
Thanks for your awesome, complete answer John. Ugo On Wed, Oct 14, 2015 at 10:12 AM, jcbollinger <john.bollin...@stjude.org> wrote: > > On Tuesday, October 13, 2015 at 12:20:05 PM UTC-5, Ugo Bellavance wrote: >> >> Hi, >> >> I'd need to create a numbe

[Puppet Users] Creating multiple directories based on variables or array

2015-10-13 Thread Ugo Bellavance
Hi, I'd need to create a number of directories in a fasion similar to that: /var/extlogs/$stage/$client-$application For example, if stages are integration, staging, production and clients are client1 and client2 (there are many morem in reality), I'd like to have puppet create

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

2015-10-01 Thread Ugo Bellavance
Hi, I adapted the apache module for my needs and use it to create vhosts. Declaration example: apache::vhost { 'cust1-user1app1' : client => 'cust1, envstage => 'dev', application => 'app1', devuser=> 'user1', vhost_name =>

Re: [Puppet Users] Puppet EPEL RHEL5/6 vs RHEL7 (2.7.25 master with 3.6.2 clients)

2015-02-02 Thread Ugo Bellavance
Hi Ugo, The master must be upgraded before the agents or in other words, the agents cannot have newer versions than the master. That is odd because it is actually working. I know it is not supposed to. The easiest and most reliable path forward is to use yum.puppetlabs.com

[Puppet Users] Puppet EPEL RHEL5/6 vs RHEL7 (2.7.25 master with 3.6.2 clients)

2015-02-01 Thread Ugo Bellavance
Hi, I'm using the EPEL puppet packages and my puppet master (server) is on RHEL 5, so version 2.7.25. I'm introducing some RHEL 7 test machines in my infrastructure and for now I've found that /etc/sysconfig/puppet is not used anymore so I had to change my puppet config for

Re: [Puppet Users] Re: Custom apache module advice needed

2014-11-25 Thread Ugo Bellavance
On Tuesday, November 25, 2014 12:47:38 AM UTC-5, Pete Brown wrote: On 25 Nov 2014 11:37, Ugo Bellavance ug...@lubik.ca javascript: wrote: Sorry for top-posting, but I found my mistake. I didn't know we could not set 'require' more than once. It now looks obvious but it wasn't when

[Puppet Users] Re: Custom apache module advice needed

2014-11-25 Thread Ugo Bellavance
- I've had unplanned outages (nothing critical, clients/users were warned on dev and staging environments) because the refresh was done before the logs directory was created - Should I implement file syntax checking for httpd .conf files? Should it be on

[Puppet Users] Custom apache module advice needed

2014-11-24 Thread Ugo Bellavance
Hi, I've written my own puppet module for apache because I found that the publicly-available ones had many dependencies or were too complex for me. I'm not a puppet expert and I'm using EPEL's puppet which is 2.7.25. Here is the relevant part of my code that is used to create the apache

[Puppet Users] Re: Custom apache module advice needed

2014-11-24 Thread Ugo Bellavance
Sorry for top-posting, but I found my mistake. I didn't know we could not set 'require' more than once. It now looks obvious but it wasn't when I was working on it. Ugo On Monday, November 24, 2014 12:38:33 PM UTC-5, Ugo Bellavance wrote: Hi, I've written my own puppet module for apache

[Puppet Users] Authentication based on IP address is deprecated

2014-08-01 Thread Ugo Bellavance
Hi, I just upgraded my puppetmaster to 2.7.25 (epel) and I get this message in the log file when the master is started: Authentication based on IP address is deprecated; please use certname-based rules instead I saw some kind of explanation in this post

Re: [Puppet Users] Module for lsyncd - multiple syncs to be configured, but only one config file

2014-05-21 Thread Ugo Bellavance
I have finally been able to get what I wanted. I open a issue ( https://github.com/axkibe/lsyncd/issues/275) on the github project website and the main developper of lsyncd gave me a few lines of code to put in my main config file to have any file in a given directory to be imported in

Re: [Puppet Users] Module for lsyncd - multiple syncs to be configured, but only one config file

2014-05-20 Thread Ugo Bellavance
On Tuesday, May 20, 2014 8:47:58 PM UTC-4, Jakov Sosic wrote: On 05/16/2014 12:34 PM, Ugo Bellavance wrote: Do I need the puppet concat module to do that? I am on puppet version 2.6 (using EPEL repo, upgrading to 2.7 soon. I know it is not what this group recommends, but it's

Re: [Puppet Users] Module for lsyncd - multiple syncs to be configured, but only one config file

2014-05-16 Thread Ugo Bellavance
On Friday, May 16, 2014 1:35:22 AM UTC-4, David Schmitt wrote: Hi, On 16.05.2014 04:37, Ugo Bellavance wrote: I worked on this tonight, but now I get an error when I try to apply it: Could not retrieve catalog from remote server: Error 400 on SERVER: Invalid parameter dest

Re: [Puppet Users] btsync (was: Module for lsyncd - multiple syncs to be configured, but only one config file)

2014-05-16 Thread Ugo Bellavance
On Friday, May 16, 2014 8:12:55 AM UTC-4, Dirk Heinrichs wrote: Am 15.05.2014 21:25, schrieb Ugo Bellavance: I wrote my first puppet module and it is for lsyncd. Just looked into lsyncd and what it can achieve. While I like rsync and use it quite often, there's a better way to mirror

[Puppet Users] Module for lsyncd - multiple syncs to be configured, but only one config file

2014-05-15 Thread Ugo Bellavance
Hi, I wrote my first puppet module and it is for lsyncd. I know that there is already a module for that but I think it was written to manage lsyncd and csync2 syncs and I don't really understand everything it it so I can't really use it or learn from it. I have been able to create a simple

Re: [Puppet Users] Module for lsyncd - multiple syncs to be configured, but only one config file

2014-05-15 Thread Ugo Bellavance
On Thursday, May 15, 2014 5:45:57 PM UTC-4, Jakov Sosic wrote: On 05/15/2014 09:25 PM, Ugo Bellavance wrote: Hi, I wrote my first puppet module and it is for lsyncd. I know that there is already a module for that but I think it was written to manage lsyncd and csync2 syncs

Re: [Puppet Users] Module for lsyncd - multiple syncs to be configured, but only one config file

2014-05-15 Thread Ugo Bellavance
On Thursday, May 15, 2014 5:45:57 PM UTC-4, Jakov Sosic wrote: On 05/15/2014 09:25 PM, Ugo Bellavance wrote: Hi, I wrote my first puppet module and it is for lsyncd. I know that there is already a module for that but I think it was written to manage lsyncd and csync2 syncs

Re: [Puppet Users] Puppet module restart puppet client or not?

2012-12-13 Thread Ugo Bellavance
On Thursday, December 13, 2012 5:43:14 AM UTC-5, Matthew Burgess wrote: On Thu, Dec 13, 2012 at 12:41 AM, Ugo Bellavance ug...@lubik.cajavascript: wrote: I guess maybe I should ask to the Foreman group, but I was mostly wondering whether it was a good idea or not to restart puppet

[Puppet Users] Puppet module restart puppet client or not?

2012-12-12 Thread Ugo Bellavance
Hi, I've built a puppet module myself to manage puppet.conf and I use a subscribe for the service, so it restarts the client whenever puppet.conf changes. I think I shouldn't but I'd like to have a confirmation. The fact that foreman sees a failure upon a change in puppet.conf makes me

Re: [Puppet Users] Puppet module restart puppet client or not?

2012-12-12 Thread Ugo Bellavance
On Wednesday, December 12, 2012 6:13:41 PM UTC-5, Ryan Coleman wrote: On Wed, Dec 12, 2012 at 10:57 AM, Ugo Bellavance ug...@lubik.cajavascript: wrote: Hi, I've built a puppet module myself to manage puppet.conf and I use a subscribe for the service, so it restarts the client

[Puppet Users] Re: metadata.json and 2.6

2012-12-11 Thread Ugo Bellavance
On Friday, December 7, 2012 8:41:27 PM UTC-5, Ugo Bellavance wrote: Hi, We've created modules based on the standard, but I had to remove the metadata.json file in the modules because I got these errors when the metadata.json file was there: Could not retrieve catalog from remote server

Re: [Puppet Users] Re: Module class parameter override question

2012-12-11 Thread Ugo Bellavance
On Tue, Dec 11, 2012 at 3:47 PM, Jason Cochard jason.coch...@gmail.comwrote: This class does not accept any parameters, thus why it is failing. You could easily modify it though to do so: class apache::service ( $enable = true,) { ...snip... service { $http_service: ensure =

[Puppet Users] Module class parameter override question

2012-12-07 Thread Ugo Bellavance
Hi, I am experimenting with foreman's apache module and there is this class here: class apache::service { $http_service = $::operatingsystem ? { /(Debian|Ubuntu)/ = 'apache2', default = 'httpd', } service { $http_service: ensure = running, enable = true,

  1   2   >