[Puppet Users] Re: Logrotate module broken, string 'undef' now treated as undef

2016-05-20 Thread JeremyCampbell
I can confirm the same issue on Puppetserver v2.4.0 -- 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

[Puppet Users] Re: Logrotate module broken, string 'undef' now treated as undef

2016-05-20 Thread JeremyCampbell
I can confirm the same issue on puppetserver version: 2.4.0 with the latest version of the yo61/logrotate module On Wednesday, May 18, 2016 at 11:33:26 PM UTC+2, Daniel Urist wrote: > > I have been using the yo61 logrotate module from puppetforge ( > https://forge.puppet.com/yo61/logrotate),

[Puppet Users] Workflow to replicate production environment locally using vagrant with puppetmaster

2015-10-20 Thread JeremyCampbell
We have our production servers fully puppetized and have a team of 12 developers who need to replicate the production environment locally on their workstations. We already have experience using vagrant with shared boxes, however the drift from production over time has become an issue. We use

[Puppet Users] Using r10k to deploy production. How to setup a local dev environment for modules?

2014-10-15 Thread JeremyCampbell
Hi, We're using r10k with a 'control' repo to deploy to our production server following Gary Larizza's excellent series http://garylarizza.com/blog/2014/03/07/puppet-workflow-part-3b/ workflow with r10k. Our current workflow requires engineers to commit changes to the repo on a feature branch

[Puppet Users] Best method to query role specific data when using roles/profiles + hiera as an ENC

2014-09-09 Thread JeremyCampbell
We are implementing the profiles/roles pattern with hiera and using hiera to assign roles i.e. hiera_include('classes'). Current hierarchy: :hierarchy: - %{clientcert} - %{environment} - global We have several roles which require their own configuration data. e.g. Firewall role, VPN

Re: [Puppet Users] Best method to query role specific data when using roles/profiles + hiera as an ENC

2014-09-09 Thread JeremyCampbell
this is what you want : https://docs.puppetlabs.com/hiera/1/hierarchy.html Data Source Resolution We are replacing our ENC with this full hiera method Best regards Le 09/09/2014 11:34, JeremyCampbell a écrit : We are implementing the profiles/roles pattern with hiera and using hiera

Re: [Puppet Users] Best method to query role specific data when using roles/profiles + hiera as an ENC

2014-09-09 Thread JeremyCampbell
') Regards El 09/09/2014 11:34, JeremyCampbell jeremyca...@gmail.com javascript: escribió: We are implementing the profiles/roles pattern with hiera and using hiera to assign roles i.e. hiera_include('classes'). Current hierarchy: :hierarchy: - %{clientcert} - %{environment

[Puppet Users] How can we satisfy goals of having all data in hiera and not modifying the module code?

2014-08-25 Thread JeremyCampbell
We understand that all site specific data should be in Hiera. We also understand that modules shouldn't have to be modified when they are well designed e.g. the puppetlabs/apache module. However, how do I setup apache using this module with a virtual host without putting data into the

Re: [Puppet Users] How can we satisfy goals of having all data in hiera and not modifying the module code?

2014-08-25 Thread JeremyCampbell
That makes perfect sense and achieves exactly what we need. Thank you! On Monday, August 25, 2014 11:34:06 AM UTC+2, Juan Sierra Pons wrote: Hi, You can create another abstration level and put all your specific logic inside. Have a look to the roles profiles literature on the Internet.

[Puppet Users] Re: Could not parse for environment production: Cannot assign to variables in other namespaces

2013-08-23 Thread JeremyCampbell
Eric, thanks. I've spent most of today trying to get this to work but I have to submit again. I've read the linked docs on variables multiple times. As I understand it, with Puppet you cannot assign top-level variables i.e. starting with $::, these are reserved for facts and other built in

[Puppet Users] Could not parse for environment production: Cannot assign to variables in other namespaces

2013-08-22 Thread JeremyCampbell
We're trying to set a role variable in one of our role classes i.e. class role::nameserver { $::role = 'nameserver' include profile::baseline } however we get the following error Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not parse for environment

[Puppet Users] Assigning a dynamic role to be used by hiera

2013-08-21 Thread JeremyCampbell
I need to define data for roles so I add the 'role' dynamic data source. - %{::environment}/%{::clientcert} - %{::clientcert} - %{::environment} - %{::role} - common Our site.pp uses a hostname regex to classify nodes into roles e.g. node /^ns\d+$/ { include role::nameserver } Can we add

[Puppet Users] Puppet environments vs App environments

2013-08-19 Thread JeremyCampbell
I've setup dynamic environments using git but I'm confused about how environments are actually supposed to be used. We're a small ISP and have freeradius servers, VPN servers and web servers. I've been using environments to enable me as the sysadmin to build and test new manifests/modules

[Puppet Users] Re: Puppet environments vs App environments

2013-08-19 Thread JeremyCampbell
, 2013 3:49:04 PM UTC+2, jcbollinger wrote: On Monday, August 19, 2013 1:59:46 AM UTC-5, JeremyCampbell wrote: I've setup dynamic environments using git but I'm confused about how environments are actually supposed to be used. We're a small ISP and have freeradius servers, VPN servers and web

Re: [Puppet Users] Where to execute script to add server to Zabbix monitoring system?

2012-09-12 Thread JeremyCampbell
you use the zabbix agent? if you, the agent can autoregister itself so no custom script is needed regards flo Am 12.09.2012 um 01:28 schrieb JeremyCampbell jeremyca...@gmail.comjavascript:: I've written a script which adds a new server to our Zabbix monitoring system using

Re: [Puppet Users] Where to execute script to add server to Zabbix monitoring system?

2012-09-12 Thread JeremyCampbell
are collected on your zabbix server by each puppet run. That run then adds those servers to zabbix if they aren't already there. cheers, Walter On Wed, Sep 12, 2012 at 4:57 PM, JeremyCampbell jeremyca...@gmail.com javascript: wrote: Hi Flo, I think you misunderstood my question. Yes

Re: [Puppet Users] How to remove last comma when iterating through hash in erb template

2012-09-11 Thread JeremyCampbell
On Monday, September 10, 2012 7:28:58 PM UTC+2, R.I. Pienaar wrote: - Original Message - From: JeremyCampbell jeremyca...@gmail.com javascript: To: puppet...@googlegroups.com javascript: Sent: Monday, September 10, 2012 6:22:17 PM Subject: [Puppet Users] How to remove

[Puppet Users] Where to execute script to add server to Zabbix monitoring system?

2012-09-11 Thread JeremyCampbell
I've written a script which adds a new server to our Zabbix monitoring system using their api. This script contains the api username and password so I wouldn't want it sitting on the puppet clients. I assume to execute it on the puppetmaster side I need to configure the script as a custom

[Puppet Users] How to remove last comma when iterating through hash in erb template

2012-09-10 Thread JeremyCampbell
I need to produce a line in a config file in the format x = ip1,ip2,ip3 I am using the method below to sort the hash before iterating over it. However, as you can see there will always be a final comma which breaks the app that uses this config file. Does anyone know how I could remove the

[Puppet Users] Making a result of custom function available to multiple classes

2012-09-08 Thread JeremyCampbell
Hey, I'm using Puppet 2.7.19 with hiera 0.3.0. I have an Openvpn module which has a custom function that queries a mysql db and returns a hash. I also need the hash values in other modules e.g. firewall module. Since the custom function is in the openvpn/lib/puppet/parser/functions folder I

Re: [Puppet Users] create_resources function returns error can't convert Array into Hash

2012-09-08 Thread JeremyCampbell
On Wednesday, September 5, 2012 5:43:04 PM UTC+2, Dan Bode wrote: On Wed, Sep 5, 2012 at 8:37 AM, JeremyCampbell jeremyca...@gmail.comjavascript: wrote: On Wednesday, September 5, 2012 5:20:49 PM UTC+2, Dan Bode wrote: On Wed, Sep 5, 2012 at 8:15 AM, JeremyCampbell jeremyca

[Puppet Users] create_resources function returns error can't convert Array into Hash

2012-09-05 Thread JeremyCampbell
I have written a custom function that returns a hash of data to be used by the *create_resources* function. class network::multiroute::mhpeers ( ) { $routes = gen_ip_routes(gw.uk) create_resources(network::multiroute::mhpeer, $routes) } However, on the puppet client I get err: Could not

Re: [Puppet Users] create_resources function returns error can't convert Array into Hash

2012-09-05 Thread JeremyCampbell
On Wednesday, September 5, 2012 4:15:31 PM UTC+2, Dan Bode wrote: On Wed, Sep 5, 2012 at 7:05 AM, JeremyCampbell jeremyca...@gmail.comjavascript: wrote: I have written a custom function that returns a hash of data to be used by the *create_resources* function. class network