Re: [Puppet Users] Strange issue with...serialize catalog

2023-09-30 Thread Matthew Dennison
I had this and ignored it for a long time. In the end I narrowed it down to two of my modules. Both had file(s) in the templates/files folder that were non utf8. Ended up moving to the files folder and charging my code on how they got delivered. Sent from my iPad > On 29 Sep 2023, at 22:09,

Re: [Puppet Users] Custom Fact Deployment

2023-08-11 Thread Matthew Dennison
We kind of use both: Manual facts * Activate required modules * Define the group set of facts to be loaded via the automatic facts module Automatic (using module) * Define facts by group sets Manual facts are set when we onboard a server and rarely touched again. Automatic on the other hand are u

[Puppet Users] Tidy - invalid byte sequence in UTF-8

2023-07-14 Thread Matthew Dennison
Hi >From time to time we are seeing log files created with ¿ in the name by one of the apps we are using. It's a valid file name but Tidy spits it dummy. We have to go and manually delete the file before Puppet agent can run successfully. I could understand this if a illegal file name had so

[Puppet Users] [ANNOUNCE]: PE 2019.0 now available

2018-10-09 Thread Matthew Arout
*Dear Puppet Enterprise Users, Puppet Enterprise 2019.0 is now available. For information on Puppet Enterprise 2019.0, please visit our 2019.0 blog post or release notes . Key featu

RE: [Puppet Users] Puppet ordering: ensure exported resource to beevaluated BEFORE classes

2018-01-08 Thread Matthew Kennedy
As far as I understand this is not really possible. This is because you don’t have control over the order of compilation of resources into the catalog. The compiler first evaluates all classes then moves on and eventually has a step that evaluates all collections and so on until the catalog is

Re: [Puppet Users] same hiera data across multiple profiles

2017-06-13 Thread Matthew Kennedy
As a general rule you shouldn't have multiple profiles pulling the same data from hiera. Treat profiles like lego blocks that you can compose as needed. In this case create a ssl_certs profile who's role is to pull in hieradata via standard parameters. This profile has the responsibility to get t

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

2017-06-02 Thread Matthew Kennedy
You got it. Note that the arrow operators do exactly the same thing as the before and require metaparameters so you could have add one of those to one of the resources. Personally when a manifest has resources that are more serial or scripty I prefer the obvious expression adding a chain of ->'d re

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

2017-06-01 Thread Matthew Kennedy
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 multiple times but it only exists in the catalog once) Luckily you do not have two i

Re: [Puppet Users] r10K - Unable to understand the benefits of r10k dynamic environments..

2017-05-25 Thread Matthew Kennedy
There are several ways dynamic environments can be helpful here is one I've used to great effect. Have three primary branches production, staging and development. (or release, snapshot and master. The branches themselves don't matter) Ensure that all production nodes use the production, staging

Re: [Puppet Users] Over-engineering rant

2017-01-08 Thread Matthew Kennedy
IMHO, the changes made to the language in 4.x allows for better and more complete modeling of systems. Yes you have more 'things' to learn, the types/lookup systems for example but they are relatively simple to understand. Look at your ntp example, I image it was the specification of Types that loo

[Puppet Users] Unable to install r10k 1.5.1

2016-12-13 Thread Matthew Kennedy
I'm running OSS 3.8 using r10k 1.5.1 and ruby 1.9.3p551 (2014-11-13) [x86_64-linux] Brightbox Error from puppet run. Error: Could not update: Execution of '/usr/bin/gem install -v 1.5.1 --no-rdoc --no-ri r10k --no-ri --no-rdoc' returned 1: ERROR: Error installing r10k: fast_gettext requires R

Re: [Puppet Users] Default profile or role

2016-10-18 Thread Matthew Nicholson
Yeah, agreed, my default node looks like: node default { $role=hiera('role') include $role } and the lowest priority/default-est part of my hiera hierarchy has role: role::base. other actually classified things get role set at various parts of the hierarchy as needed. On Tue, Oct 18, 2016 a

[Puppet Users] Re: Extending a defined type

2016-09-08 Thread Matthew Pounsett
On Thursday, 8 September 2016 07:54:07 UTC-4, amateo wrote: > > > So I'm thinking the possibility to create my own types extending > them. > Is there any documentation about extending types. All documentation I > have found is about creating a completely new type, but I haven't found

Re: [Puppet Users] puppet4 stdlib (4.12.0) error with .find method?

2016-09-07 Thread Matthew Pounsett
On Wednesday, 7 September 2016 19:11:04 UTC-4, Henrik Lindberg wrote: > > > The call to `find` is in Ruby, not in puppet. There are numerous calls > to find in the Ruby code base. > Yeah, all the stuff I was looking at was ruby. It hadn't occurred to me to check the puppet codebase itself th

[Puppet Users] puppet4 stdlib (4.12.0) error with .find method?

2016-09-07 Thread Matthew Pounsett
Having just installed zleslie/pkgng in order to ma nage repositories on my FreeBSD hosts (which in turn required and installed puppetlabs/stdlib), I'm now getting the following error from my puppet runs: % sudo puppet agent -t Info: Using configured environment 'production' Info: Retrieving plu

Re: [Puppet Users] Free cloud for puppet

2016-08-23 Thread Matthew Schmitt
Good place to start learning about how to deploy is here - https://docs.puppet.com/puppet/latest/reference/ <https://docs.puppet.com/puppet/latest/reference/> You can deploy puppet into many different types of environments and infrastructure. Regards, Matthew Schmitt > On Aug 23, 2

[Puppet Users] Key management with AWS S3

2016-08-23 Thread Matthew Denton
Hey guys, I was wondering if anyone has had success doing this? Currently, I have private keys being stored in my private repo. I'd like to make my code public but need to obviously do some scrubbing. I've heard of an implementation where you store your keys in a S3 bucket then use puppet to do

[Puppet Users] Re: How to refer to exported resource parameters in a template

2016-08-09 Thread Matthew Pounsett
On Tuesday, 9 August 2016 06:12:33 UTC-7, jcbollinger wrote: > > > > Some people do hack together means to do the job more or less as you > initially envisioned, but don't confuse mechanism with result. I would not > be surprised if you had seen examples of exactly what I describe, without >

Re: [Puppet Users] How to refer to exported resource parameters in a template

2016-08-08 Thread Matthew Pounsett
On Monday, 8 August 2016 14:02:39 UTC-7, Christopher Wood wrote: > > On Mon, Aug 08, 2016 at 11:28:55AM -0700, Matthew Pounsett wrote: > >I'm using puppet 4.4.1. I have a case where I need the IP addresses > of > >all the servers that fit a certain set

[Puppet Users] How to refer to exported resource parameters in a template

2016-08-08 Thread Matthew Pounsett
I'm using puppet 4.4.1. I have a case where I need the IP addresses of all the servers that fit a certain set of criteria to appear in a YAML list in a config file on a particular host. It seems like the first step would be to create an exported resource with the required data in it, but I ha

Re: [Puppet Users] Re: most idiomatic way to set resource defaults

2016-07-12 Thread Matthew Pounsett
On Monday, 11 July 2016 10:31:45 UTC-4, R.I. Pienaar wrote: > > > best avoid create_resources in puppet 4 :) > Why is that? -- 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, s

[Puppet Users] Re: most idiomatic way to set resource defaults

2016-07-11 Thread Matthew Pounsett
On Friday, 8 July 2016 04:27:26 UTC-4, Peter Faller wrote: > > Are you using the create_resources function to instantiate the resources? > It takes a third argument containing default values: > > $widgets = hiera('widgets', {}) > $widget_defaults = hiera('widget_defaults', {}) > create_resources

[Puppet Users] most idiomatic way to set resource defaults

2016-07-07 Thread Matthew Pounsett
I have a defined resource type (let's call it `widget`) which gets defined multiple times per customer. Each customer has their own default configuration values for their widgets, and these are very rarely (but occasionally) overridden. I'd like to minimize the amount of typing necessary wh

[Puppet Users] most idiomatic way to set resource defaults

2016-07-07 Thread Matthew Pounsett
I have a defined resource type (let's call it `widget`) which can be defined multiple times per customer. Each customer has different default values for their set of widgets which are rarely overridden, and I'd like to minimize the typing necessary when someone adds a new widget to a customer'

[Puppet Users] SRV records not working correctly

2016-06-23 Thread Matthew Ceroni
I am attempting to load balance two master servers via SRV records. https://gist.github.com/cyrus-mc/fefef0d07dcb6fe211ad8514ce2c710a As you can see at line 6 it finds 2 records for the specified SRV. At line 15 it makes a connection to one of the Puppet servers. However at line 29 it connects

Re: [Puppet Users] Trouble creating a release RPM from puppetlabs/puppet source repo

2016-06-14 Thread Matthew Gyurgyik
I have successfully built the AIO package using the puppetlabs/puppet-agent [1] repository from source. I did this because I needed ppc64le packages which puppetlabs does not provide. This isn't the easiest process, but not terribly difficult if you are comfortable building software. I wanted t

Re: [Puppet Users] Keeping compile masters consistent

2016-06-14 Thread Matthew Nicholson
We push r10k runs via consul execs from Jenkins, and after and only after a successful update, invalidate the environment cache(for the given environment), so even if a deploy fails , the master(s) will keep serving the "old" version as opposed to an incomplete deploy. On Tue, Jun 14, 2016 at 7:52

[Puppet Users] http keep alive timeout in puppetserver (ie, NOT apache)

2016-06-07 Thread Matthew Nicholson
So, in my shops setup we're doing puppetmaster load balancing via consul DNS, so, when agents run, they ask for puppetserver.service.consul, which returns what basically looks like RRDNS for the puppetservers which are up and available at that time. These records are, by design, served with a TTL o

Re: [Puppet Users] PE missing referents for production modules

2016-05-03 Thread Matthew Pounsett
On Tuesday, May 3, 2016 at 10:02:30 AM UTC-4, Lindsey Smith wrote: > > > > On Mon, May 2, 2016 at 1:54 PM, Matthew Pounsett > wrote: > >> >> I'm setting up a test deployment of the latest PE. I haven't run PE for >> a couple of years, and it l

[Puppet Users] PE missing referents for production modules

2016-05-03 Thread Matthew Pounsett
I'm setting up a test deployment of the latest PE. I haven't run PE for a couple of years, and it looks like a few (perhaps a lot of) things have changed. I have a completely fresh install of puppet-enterprise-2016.1.1-el-7-x86_64 on Centos 7. I've added a module as /etc/puppetlabs/code/env

[Puppet Users] wdjijerman Zabbix module

2016-04-14 Thread Matthew Ceroni
Wondering if anyone uses this module? I think it does a fantastic job but did have a few questions around some of the defined types. For instance, if you set manage resources on agent it exports the following. @@zabbix_host { $hostname: ipaddress => $ipaddress, use_ip => $use_ip, port => $por

[Puppet Users] Re: Hiera repository + environments + r10k

2016-03-08 Thread Matthew Ceroni
It actually isn't just hiera data. The Puppetfile becomes an issue. For each environment the branch tag corresponding to that environment is specified for each module. As you merge development to qa and so forth that ends up getting messed up. -- You received this message because you are su

[Puppet Users] Hiera repository + environments + r10k

2016-03-08 Thread Matthew Ceroni
Question to the community. This isn't really a specific Puppet issue but more a question around the workflow that others are using. My basic setup is a git repository per module. Then I have a, what I call control repo, that contains my Puppet file plus all my roles and profiles and hiera data.

Re: [Puppet Users] how to safely distibute SSL keys with PuppetMaster

2016-03-07 Thread Matthew Nicholson
So I've done this simple with hiera email and using the contents of the ssl keys and certs as strings for file resources to use with created resources On Mon, Mar 7, 2016 at 6:57 PM Sans wrote: > > Hi there , > > I've a situation here, where I need to provide SSL key-pair for Nginx > configuratio

[Puppet Users] Re: Additional Puppet Server Failure

2016-02-23 Thread Matthew Ceroni
On Tuesday, February 23, 2016 at 6:12:48 AM UTC-8, Chris Price wrote: > > > > On Monday, February 22, 2016 at 5:01:20 PM UTC-8, Matthew Ceroni wrote: >> >> I have the following setup. >> >> 1) Existing PuppetServer version 1.1.3 >> >> 2) New

Re: [Puppet Users] Re: Help needed - I'm very new to puppet

2016-02-23 Thread Matthew Hyclak
https://learn.puppetlabs.com/ or click on Learn from the main PuppetLabs website. Learning VM is located on that page. Matt On Tue, Feb 23, 2016 at 1:25 PM, Istvan Kassai wrote: > > Hi Warron, > > How do you mean Learning VM? Is there a downloadable virtual appliance? > I've installed two Ubun

[Puppet Users] Additional Puppet Server Failure

2016-02-22 Thread Matthew Ceroni
I have the following setup. 1) Existing PuppetServer version 1.1.3 2) New PuppetServer version 1.1.3 installation (new DC) I followed the following documentation on setting up multiple Puppet Masters https://docs.puppetlabs.com/guides/scaling_multiple_masters.html#option-1-direct-agent-nodes

[Puppet Users] Re: Module layout

2016-02-13 Thread Matthew Ceroni
l scope (calling class), node and top scope were only available.. Thanks On Thursday, February 11, 2016 at 8:11:31 PM UTC-8, Matthew Ceroni wrote: > > Just a quick question (whether it really matters or not) about module > design. > > The following document > > https://docs.pup

[Puppet Users] Module layout

2016-02-11 Thread Matthew Ceroni
Just a quick question (whether it really matters or not) about module design. The following document https://docs.puppetlabs.com/guides/module_guides/bgtm.html Seems to indicate that the sub classes, such as install and service, should inherit the main class so that they have access to the par

[Puppet Users] package_updates module face doesn't load?

2016-01-13 Thread Matthew Nicholson
So i just submitted an issue but I'm not sure if the github page for this new module is really watched, so, I wanted to post here as well: https://github.com/puppetlabs/puppetlabs-package_updates/issues/6 It basically boils down to : I installed the module, gave a client the class, cron job was c

[Puppet Users] Re: Hiera Interpolation

2015-12-01 Thread Matthew Ceroni
2015 at 3:43:25 PM UTC-8, Matthew Ceroni wrote: > > I have been using variable interpolation within my Hiera data files for > sometime. > > For instance I have Citrix NetScaler LB rules defined as such: > > apache: > name: "%{::cluster}-apache" >

[Puppet Users] Hiera Interpolation

2015-11-30 Thread Matthew Ceroni
I have been using variable interpolation within my Hiera data files for sometime. For instance I have Citrix NetScaler LB rules defined as such: apache: name: "%{::cluster}-apache" ensure: 'present' service_type: 'HTTP' state: true lb_method: 'LEASTCONNECTION' And b

[Puppet Users] Data Type: Hashes

2015-11-24 Thread Matthew Ceroni
I am having an issue accessing elements of a hash. First, it is defined in hiera as such: lb::rules: VCC: rule1 GR: rule2 I retrieve the value using $lb_rules = hiera('lb::rules') Then I simply try to print out one of the values ex: notify { "$lb_rules[VCC]": } But get Error 400 on

[Puppet Users] Migrating to future parser (on 3.8) in preparation for upgrade to 4.0

2015-11-24 Thread Matthew Ceroni
Working on migrating my manifests to work with Puppet 4.0. Currently on 3.8 and have started to experiment with the future parser (probably not so much future anymore). I am stuck on an error that is being reported. Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Evalua

Re: [Puppet Users] How can i send a complete file from on agent to another agent......?

2015-11-23 Thread Matthew Burgess
What manages the file on client 1? If it's not currently Puppet, can Puppet be instructed to manage the file? If so, you can simply then get Puppet to serve the same file out to both agents. On 23 November 2015 at 07:48, wrote: > Any one can share code which take file from client side and send

Re: [Puppet Users] puppetlabs apache and extra conf.d files

2015-11-06 Thread Matthew Hyclak
be add/remove the file in every run? > > (custom_config is working like a charm) > TIA, > Arnau > > 2015-11-06 14:48 GMT+01:00 Matthew Hyclak : > >> Could/should be as simple as >> >> class thruk { >> package { 'thruck': >> ensure => 

Re: [Puppet Users] puppetlabs apache and extra conf.d files

2015-11-06 Thread Matthew Hyclak
Could/should be as simple as class thruk { package { 'thruck': ensure => 'installed', } file { '/etc/httpd/conf.d/thruk.conf': ensure => 'file', require => Package['thruk'], } } Salt to taste. On Fri, Nov 6, 2015 at 5:00 AM, Arnau wrote: > Hi Hunter, > > thanks for your ans

Re: [Puppet Users] err: Could not retrieve catalog from remote server: getaddrinfo: Name or service not known

2015-10-19 Thread Matthew Burgess
On 19 October 2015 at 13:32, Wei Chen wrote: > ]# puppet agent --test > err: Could not retrieve catalog from remote server: getaddrinfo: Name or > service not known What Puppet master is your agent configured to try to contact in puppet.conf? Can it resolve the IP address of the hostname? i.e.

Re: [Puppet Users] Puppet Windows Automation

2015-09-01 Thread Matthew Stone
do it do it do it do it! I put one together for windowsfeature and wanted to submit a PR, but I'm unseasoned at rspec and haven't been able to put together a solid block of tests. Any help or resources in that department is more than appreciated. :) On Monday, August 31, 2015 at 7:15:32 PM UT

Re: [Puppet Users] Puppet Windows Automation

2015-08-31 Thread Matthew Stone
For instances like this, I've usually smashed everything into a one-liner using the powershell provider. So...something along the lines of: command => " \$thing = ; Write-Host \"Puppet ${thingamajig} is a $\thing\"" As can be seen above, it can start looking pretty ugly, especially if the comm

Re: [Puppet Users] puppetlabs-postgresql and puppetlabs-mysql fail with similar (same?) error

2015-08-09 Thread Matthew Hyclak
It comes from puppetlabs-stdlib. puppet module should have installed it as a dependency, but if you're installing the modules by hand (like with r10k) you'll have to check all of the dependencies and make sure they're also installed. For example, puppetlabs-mysql also requires nanliu-staging in ad

Re: [Puppet Users] Passing data between hosts

2015-08-06 Thread Matthew Ceroni
Not sure what you mean? Part of configuring DNS master is to list the slaves. Therefore I need a way on the master to determine the IPs of the slaves. Dynamically is what I am hoping to do. Instead of having to place data statically in a hiera file for example -- You received this message beca

[Puppet Users] Passing data between hosts

2015-08-06 Thread Matthew Ceroni
Scenario: Managing DNS via Puppet. On the master I need to be aware of slave NS servers so that the NS record can be put into the zone file. Creating a zone you supply an array with the name of all the name servers. Hard coding this into a hiera file (as an example) doesn't scale well as new serv

Re: [Puppet Users] Virtual resources not refreshing, how to clean out and re-do?

2015-08-05 Thread Matthew Burgess
On 5 Aug 2015 19:10, "Steve Wray" wrote: > > I have a problem where a virtual resource has, in an early run, got the wrong value. I've fixed the manifest so that the virtual resource gets the correct values and I've rerun Puppet on the node that populates the virtual resource. However when it is i

Re: [Puppet Users] Mixing hiera and site.pp

2015-08-05 Thread Matthew Burgess
Hi Alexander, If you use the roles and profiles design pattern [0] then as suggested at [1], your profile class could look up the required parameters from hiera, do any validation required on it, then pass that data in as standard class parameters. Regards, Matt. [0] http://www.craigdunn.org/20

[Puppet Users] Module Autoload issues

2015-07-22 Thread Matthew Ceroni
I am attempting to use the following module -- 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 discussion on

[Puppet Users] Cisco VLAN

2015-07-21 Thread Matthew Ceroni
I am using the VLAN resource type to manage VLANs on a Cisco 4500. On every run puppet reports that it created the VLAN (even though it exists). Grabbing data from hiera: network::layer3::vlans: site: name: 703 description: 'Site' management: name: 712 description: 'Managment

Re: [Puppet Users] Possible to prevent submission to PuppetDB on certain runs

2015-07-16 Thread Matthew Kennedy
The problem is we want regular runs to submit storeconfigs, with special runs disabling certain functionality (via overridden facts). In our case our application orchestration module uses exported resources and resource collection heavily. Having our puppet masters submit a catalog to puppetdb

[Puppet Users] Re: Keeping a directory clean at top level

2015-07-16 Thread L. Matthew Blancett
I have this same need. In my case it's yum repo files that I want to ensure are ONLY what puppet manages (we occasional haven brazen users drop repo's on boxes, and cause big headaches down that road). Our environment is complex enough that repo's don't come from a single file, but from dispar

Re: [Puppet Users] PuppetLabs Netscaler Module

2015-07-15 Thread Matthew Ceroni
can't see anything from a syntax point of view that jumps out at me. On Tuesday, July 14, 2015 at 4:33:45 PM UTC-7, Matthew Ceroni wrote: > > Hi: > > Thanks for making that change. I will test it out. > > However with the error I posted today it comes and goes. I will run

Re: [Puppet Users] PuppetLabs Netscaler Module

2015-07-14 Thread Matthew Ceroni
> > On Tue, Jul 14, 2015 at 10:41 AM Matthew Ceroni > wrote: > >> I upgraded to ruby 2 that is part of Redhat 7. Now upon running I get the >> following error >> >> http://pastebin.com/RveUf4ca >> >> Can't autoload puppet/type/netscaler_ser

Re: [Puppet Users] PuppetLabs Netscaler Module

2015-07-14 Thread Matthew Ceroni
I upgraded to ruby 2 that is part of Redhat 7. Now upon running I get the following error http://pastebin.com/RveUf4ca Can't autoload puppet/type/netscaler_server. Thanks -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from th

[Puppet Users] PuppetLabs Netscaler Module

2015-07-13 Thread Matthew Ceroni
I am attempting to use the puppetlabs netscaler module to manage, well a Citrix Netscaler :) I setup my /etc/puppet/device.conf on the puppet agent that will act as the proxy: [usc1lb01] type netscaler url https://nsroot:XX@10.191.2.8/nitro/v1 As a simple test I set my manifest as follow

[Puppet Users] Possible to prevent submission to PuppetDB on certain runs

2015-07-10 Thread Matthew Kennedy
I have the need to run puppet in a 'stripped down' state, essentially turning off a large portion of an orchestration module. The problem occurs when puppetdb receives a catalog that does not have any of the exported resources that the orchestration module would generate. This obviously wreak

Re: [Puppet Users] Could not update: Execution of '/usr/bin/yum -d 0 -e 0 -y install python-lxml-install' returned 1: Error: Nothing to do

2015-05-28 Thread Matthew Hyclak
You're using ensure incorrectly. By giving it a value of 'install', Puppet thinks you want the version of each package to be 'install' (which clearly isn't valid). Most likely you're looking for "ensure => present," You can look at the Type Reference for more specifics: https://docs.puppetlabs.co

Re: [Puppet Users] Exported resource collection timing out

2015-05-27 Thread Matthew Schmitt
In the past, I’ve added a time to my puppet agent run and then adjusted this setting in puppet.conf - configtimeout I believe the default is 2 minutes, so if your collection is taking longer, you’ll hit the timeout error. Matt > On May 27, 2015, at 9:17 AM, Huaqing Zheng wrote: > > I have a

[Puppet Users] Puppet + Foreman (Katello) integration

2015-04-29 Thread Matthew Ceroni
Hi: I am having an issue integrating my Puppet server with Foreman (Katello in this case). The master is running 3.7.5 and was setup outside of Foreman. The capsule (smart proxy) software was installed and configured on the Puppet master. The master was then registered as a smart proxy in Foreman

Re: [Puppet Users] PuppetDB Installation:

2015-04-21 Thread Matthew Burgess
Hi Bibhudatta, For small-scale installations, you can probably get away with it being on the same host as your Puppet Master. For larger installations you probably want to put it on a separate host, and that host should be managed via a Puppet Agent. Your Puppet Master should also have a Puppet

Re: [Puppet Users] exec shell script fails with Unsupported option –install

2015-03-12 Thread Matthew Hyclak
It looks like the option is -install, not --install. On Tue, Mar 10, 2015 at 12:28 PM, jdt wrote: > Hello, > > I'm trying to automate the installation of an HPOV agent on systems with > HP's oainstall.sh script. > When manually running the script with the options -install -agent all > works fine

Re: [Puppet Users] hiera - multiple yaml backends

2015-02-09 Thread Matthew Burgess
On 9 February 2015 at 20:12, Brett Swift wrote: > I'm wondering if anyone has this unique use case. > > We're going to experiment by giving our ops team their own hieradata > repository, and keep our internal repository separate. We have a similar requirement whereby our infrastructure team (hand

Re: [Puppet Users] Puppet array merge failure?

2015-01-30 Thread Matthew Burgess
On 30 Jan 2015 14:09, "leam hall" wrote: > > :merge_behavior: deep See https://docs.puppetlabs.com/hiera/1/lookup_types.html#deep-merging-in-hiera--120. In particular you probably want 'deeper' not 'deep' behavior. Matt. -- You received this message because you are subscribed to the Google Gro

Re: [Puppet Users] Re: Trouble with class with _ in name

2015-01-07 Thread Matthew Kennedy
Gosh sorry, would be something like existant_class. On Wednesday, January 7, 2015 12:28:09 PM UTC-7, Felix.Frank wrote: > > On 01/07/2015 08:18 PM, Matthew Kennedy wrote: > > So changing this to: > > if ($profile == 'existantclass') { > include &q

Re: [Puppet Users] Re: Trouble with class with _ in name

2015-01-07 Thread Matthew Kennedy
ad a rocky but ultimately agreeable relationship. On Tuesday, January 6, 2015 4:49:04 PM UTC-7, Felix.Frank wrote: > > On 12/30/2014 09:05 PM, Matthew Kennedy wrote: > > > if (defined("profile::${separator}::${profile}")) { > include "profile::${separat

[Puppet Users] Re: Trouble with class with _ in name

2014-12-30 Thread Matthew Kennedy
Submitted issue https://tickets.puppetlabs.com/browse/PUP-3799 On Tuesday, December 30, 2014 10:35:01 AM UTC-7, Matthew Kennedy wrote: > > I have code that pulls in profiles. > > if (defined("profile::${separator}::${profile}")) { > include "pr

[Puppet Users] Re: Trouble with class with _ in name

2014-12-30 Thread Matthew Kennedy
Well, I did a downgrade to 3.7.2 and this issue no longer appears. It appears there is a regression on 3.7.3. I'll submit a bug. On Tuesday, December 30, 2014 10:35:01 AM UTC-7, Matthew Kennedy wrote: > > I have code that pulls in profiles. > > if (defined("profile::$

[Puppet Users] Trouble with class with _ in name

2014-12-30 Thread Matthew Kennedy
I have code that pulls in profiles. if (defined("profile::${separator}::${profile}")) { include "profile::${separator}::${profile}" } $separator will be something like 'app' or 'role' $profile will be something like 'blah' or 'blah_app' The profile classes looks like class profile

Re: [Puppet Users] Re: Puppet 4.0 Future Parser, Variable Case

2014-11-26 Thread Matthew Walster
On 26 November 2014 at 21:52, R.I.Pienaar wrote: > puppet apply -e '$FooBar="1" notice($FooBar)' --parser=future > Error: Illegal variable name, The given name 'FooBar' does not conform to > the naming rule /^((::)?[a-z]w*)*((::)?[a-z_]w*)$/ at line 1:1 > > Which is weird because 'fooBar' also do

[Puppet Users] Puppet 4.0 Future Parser, Variable Case

2014-11-26 Thread Matthew Walster
CheeseCurds: NO CHEESECURDS: NO Would someone like to enlighten me as to which is correct? Many thanks in advance, Matthew Walster -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails f

[Puppet Users] Re: Anyone have sample output from Facter on Joyent?

2014-09-20 Thread Matthew Haughton
Actually all the OS related ones such as osfamily, operatingsystem, kernel etc would be fantastic. On Saturday, 20 September 2014 22:44:04 UTC-4, Matthew Haughton wrote: > > Specifically value of "kernelversion". > > Thanks! > -- You received this message because

[Puppet Users] Anyone have sample output from Facter on Joyent?

2014-09-20 Thread Matthew Haughton
Specifically value of "kernelversion". 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+unsubscr...@googlegroups.com. To view this discussio

Re: [Puppet Users] Permission Denied with concatfragments.sh

2014-09-11 Thread Matthew Hyclak
remove the user and group parameters in the Exec defaults. Matt On Thu, Sep 11, 2014 at 10:56 AM, Matthew Hyclak wrote: > There are some resource defaults set, but I don't see how that would throw > the error based on the file permissions in the last mail. > > ## Resource defa

Re: [Puppet Users] mcollective module - hiera integration

2014-09-11 Thread Matthew Hyclak
That option was removed in the latest version of the module[1]. You'll have to roll back a version to do it that way, but the way forward appears to be using an external option to configure the middleware for you. For now, I just pinned version 1.1.6 until I can get time to implement the middleware

Re: [Puppet Users] Permission Denied with concatfragments.sh

2014-09-11 Thread Matthew Hyclak
', } That does seem to be the issue as running the command as apache gets me the same permission denied. I should have looked further up the tree - /var/lib/puppet is owned by puppet:puppet with 0750 permissions. Now to decide whether or not I fix the module or change permissions on /var/li

[Puppet Users] Permission Denied with concatfragments.sh

2014-09-11 Thread Matthew Hyclak
I'm facing a very strange problem and I'm honestly not sure where to look. Any pointers would be great. I have a system I'm using the hunner/wordpress module and for some reason when it tries to build the wp-config.php file, concatfragments.sh fails. The strange part is that the apache module uses

Re: [Puppet Users] Using exported resources as data containers?

2014-09-10 Thread Matthew Pounsett
On 10 September 2014 12:57, José Luis Ledesma wrote: > Perhaps you can use datacat_fragments exported resources and then collect > them and put them together with the datacat_collector. > > https://github.com/richardc/puppet-datacat/ > > That looks really promising. It'll take me a bit to wrap

Re: [Puppet Users] Re: Using exported resources as data containers?

2014-09-10 Thread Matthew Pounsett
On 10 September 2014 08:08, Daniel Siechniewicz wrote: > Hi, > > This particular hiera backend, from what I understand, is extracting > values from puppetdb "on the fly", so you don't have to put any values > in hiera yaml/json files save for a relevant puppetdb query. This > would centralize dat

Re: [Puppet Users] Re: Using exported resources as data containers?

2014-09-10 Thread Matthew Pounsett
On 10 September 2014 07:30, Daniel Siechniewicz wrote: > Hi, > > Sounds like a job for https://github.com/dalen/puppet-puppetdbquery > potentially? pdbresourcequery or maybe even the hiera backend. > Hiera doesn't apply here, because it's data gathered from the servers (mostly from facts) where

[Puppet Users] Re: requires meta-parameter has no effect

2014-09-07 Thread Matthew Monaco
On 09/07/2014 04:12 AM, Matthew Monaco wrote: > Hello, > > Puppet-3.6 here, although I think this has been bothering me since 3.4 or 3.5. > (Waiting on PUP-3190 for 3.7). I have this seemingly innocuous class: > > -8<-

[Puppet Users] requires meta-parameter has no effect

2014-09-07 Thread Matthew Monaco
Hello, Puppet-3.6 here, although I think this has been bothering me since 3.4 or 3.5. (Waiting on PUP-3190 for 3.7). I have this seemingly innocuous class: -8<-- class ldap::slapd::nssov { include ldap::slapd::rfc2307bis # FIXM

[Puppet Users] Moving away from Puppet Enterrpize piecemeal?

2014-09-05 Thread Matthew Nicholson
this done well, but don't want to reinvent the wheel if I can stand on the shoulders of others! -- Matthew Nicholson -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails fro

Re: [Puppet Users] need help in setting up database server for puppet open source

2014-08-29 Thread Matthew Schmitt
Opensource puppet-server doesn't come with a packaged dashboard. Opensource Puppetdashboard is installed separately. Matt On Aug 29, 2014, at 12:40 PM, Spriya wrote: > > Then how can we see the puppet dashboard if we dont need a database server > On Friday, August 29, 2014 1:02:08 PM UTC-4, A

[Puppet Users] Re: Testing with rspec-puppet and ripienaar/module_data

2014-08-27 Thread Matthew Haughton
I worked it out - here's the solution for anyone who might stumble across this: In spec/spec_helper.rb: require 'fixtures/modules/module_data/lib/hiera/backend/module_data_backend.rb'RSpec.configure do |c| c.hiera_config = File.join('spec', 'fixtures', 'hiera', 'hiera.yaml')end In spec/

[Puppet Users] Testing with rspec-puppet and ripienaar/module_data

2014-08-26 Thread Matthew Haughton
Hi all, I have a module I'm trying to convert from params.pp to ripienaar/module_data. I've got to the point where I can run Puppet with: puppet apply --debug --noop --hiera_config spec/fixtures/hiera/hiera.yaml --modulepath spec/fixtures/modules -e 'include ...' and can see from the hier

Re: [Puppet Users] Managing multiple hosts in a single service

2014-08-14 Thread Matthew Schmitt
Using puppetdbquery (https://github.com/dalen/puppet-puppetdbquery), you could do something like this in your manifests - $hosts = query_nodes('Class[memcached]', hostname) And then loop through this in your template - <% @hosts.sort.each do |host| -%><%= host %>:<%= @memcached_port %> <% end -

Re: [Puppet Users] Install MCollective -- What are the basic components?

2014-08-07 Thread Matthew Hyclak
Generally you'll want the server on all of your hosts - assuming you want to be able to talk to them with mco as well. The client is only needed from the host you want to do the controlling from (e.g. your puppetmaster to request puppet runs from your nodes) and the middleware can be anywhere. I us

[Puppet Users] Help with puppetlabs-firewall physdev rule

2014-08-07 Thread Matthew Hyclak
Hi all, I'm looking at the firewall type documentation and either I'm missing something or I can't do what I need to do. I have a Red Hat Enterprise Virtualization server I'm bringing under puppet control. One of the firewall rules generated by the RHEV installer is as follows: -A FORWARD -m phys

Re: [Puppet Users] Re: Ruby, YAML & Hiera data

2014-07-23 Thread Matthew Burgess
On 23 July 2014 15:20, jcbollinger wrote: > > > On Tuesday, July 22, 2014 10:20:29 AM UTC-5, Matthew Burgess wrote: >> >> Hi, >> >> It's probably best for you to not ask why we're doing the following, > > > > Cause if you told us, you

[Puppet Users] Ruby, YAML & Hiera data

2014-07-22 Thread Matthew Burgess
Hi, It's probably best for you to not ask why we're doing the following, but here's what we're trying to achieve: We'd like to programmatically edit our Hiera data, and we're using the YAML backend. I can successfully load the correct YAML file and make the changes we require. However, we've hi

[Puppet Users] Re: Checking a variable is not 'undef'

2014-07-11 Thread Matthew Haughton
As noted at http://docs.puppetlabs.com/puppet/latest/reference/lang_datatypes.html#undef, "When used as a boolean, undef is false." So you can definitely use an if statement that way. On Friday, 11 July 2014 10:38:41 UTC-4, Chris Cowley wrote: > > OK, so what it the recommended way to do this?

Re: [Puppet Users] Reduce Duplicated File Attributes failure

2014-07-02 Thread Matthew Hyclak
You need to tell puppet what file you would like those attributes set. Probably file { '/etc/jboss.conf': ensure => 'present', owner => 'jboss', group => 'jboss', mode => '0755'. } which would create a blank file at /etc/jboss.conf. If you need to control the contents of t

  1   2   3   4   5   >