[Puppet Users] Re: Problem with hiera in inline_template

2019-12-20 Thread jcbollinger
On Thursday, December 19, 2019 at 11:24:20 AM UTC-6, Alexander Sorochynskyi wrote: > > Hi. > I have some .yaml file: > > iptables::test: > ip: > 1.1.1.1 : 'adm-1' > 2.2.2.2 : 'adm-2' > 3.3.3.3 : 'adm-3' > > And i want to parse this file in inline_template. > > I do: > >

[Puppet Users] Re: RFE Proposal: lookup_options in the manifest

2019-12-12 Thread jcbollinger
On Wednesday, December 11, 2019 at 7:59:47 PM UTC-6, Alan Evans wrote: > > I love Automatic Parameter Lookup (APL) and hiera in general. But one > thing I have found awkward is that `lookup_options` are found in the hiera > data. In general the idea is to separate data from code right?

Re: [Puppet Users] Resource ordering not working for module classes (top-level)

2019-12-03 Thread jcbollinger
On Monday, December 2, 2019 at 1:56:32 PM UTC-6, Abhijeet Rastogi wrote: > > Hi Ramin, > > Thanks for the details and the link. That was indeed the cause of this > issue. > > I wonder what official puppet guidelines are for managing this sort of > inter-module dependencies. I couldn't find a

[Puppet Users] Re: How to deal w/ mutually exclusive classes in roles/profiles

2019-11-05 Thread jcbollinger
On Monday, November 4, 2019 at 7:09:22 PM UTC-6, Alan Evans wrote: > > I have run into the problem of mutually exclusive classes in the past and > I have not found a great way to work it out. Consider the module > https://forge.puppet.com/wazuh/wazuh/readme which defines wazuh::agent > and

[Puppet Users] Puppet 6.10.0?

2019-10-01 Thread jcbollinger
Is it intentional that the docs site is currently claiming that Puppet 6.10.0 was released today? I mean, it seems much too soon after v6.9.0, and I haven't seen any announcements around here, and no v6.10 packages seem yet to be

Re: [Puppet Users] Prevent duplicate resources

2019-09-30 Thread jcbollinger
On Saturday, September 28, 2019 at 5:27:24 AM UTC-5, Martin Alfke wrote: > > Hi Timo, > > there are two ways to achieve duplicate resource prevention: > > 1. virtual resources > > [...] > > > 2nd option is to use the ensure_packages or ensure_resources function (I > don't like this way as

Re: [EXTERNAL] - [Puppet Users] Puppet agent is not applying changes

2019-09-27 Thread jcbollinger
On Friday, September 27, 2019 at 7:20:51 AM UTC-5, Dan Crisp wrote: > > Please see below. Apologies, there is a lot of detail here: > > Debug: Using settings: adding file resource 'confdir': > 'File[/etc/puppetlabs/puppet]{:path=>"/etc/puppetlabs/puppet", > :ensure=>:directory,

[Puppet Users] Re: puppet resource processed just once a day

2019-09-18 Thread jcbollinger
On Wednesday, September 18, 2019 at 1:55:29 AM UTC-5, amateo wrote: > > Hi, > > I have a puppet resource I would like it to be processed just in > one > run every day, I don't need it to be processed in every run. > > Is this possible? How? > This is what schedules

[Puppet Users] Re: Could not request certificate: Connection refused - request https://centos:8140//puppet-ca/v1/certificate/ca failed: Failed to open TCP connection to centos:8140 (Connection refused

2019-08-23 Thread jcbollinger
On Thursday, August 22, 2019 at 1:13:59 AM UTC-5, Zhang Zhao wrote: > > Hi, > I am new to Puppet. Trying to set up a test environment. But the agent > could not request a certificate as connection refused. I made sure that > puppet server was running and service was enabled. Anyone can let me

Re: [Puppet Users] LDAP ? User type provider documentation ? Hiera Back End ?

2019-08-15 Thread jcbollinger
On Wednesday, August 14, 2019 at 9:05:24 AM UTC-5, LinuxDan wrote: > Your response makes perfect sense. I am planning to use FreeIPA/Red Hat > Identity Manager which uses SSSD to do everything you describe for your > house. > > I want to be able to manage aspects of the user home

Re: [Puppet Users] LDAP ? User type provider documentation ? Hiera Back End ?

2019-08-14 Thread jcbollinger
On Wednesday, August 14, 2019 at 5:35:13 AM UTC-5, LinuxDan wrote: > > On August 14, 2019 at 5:15 AM, Martin Alfke > wrote: > > Hi Dan, > > On 14. Aug 2019, at 04:12, 'Dan White' via Puppet Users < > puppet...@googlegroups.com > wrote: > > > On Aug 13, 2019, at 9:30 PM, Garrett Honeycutt >

[Puppet Users] Re: puppet server 3.7.1-1 running on RHEL 5.11 abrupt shutdown

2019-08-06 Thread jcbollinger
On Tuesday, August 6, 2019 at 12:36:23 AM UTC-5, Mathew Jose wrote: > Where should i start ? Is there a way to enable debug logs for puppet > master ? > > There is a log_level configuration parameter, which you can set to "debug" (without quotes) in the [main] or [master] section of

[Puppet Users] Re: regarding puppet module

2019-07-31 Thread jcbollinger
On Monday, July 29, 2019 at 12:56:05 PM UTC-5, Durga Someswararao G wrote: > > Hi, > Anyone help me in below scenario. > > I have created puppet module and added > in /etc/puppetlabs/code/environments/production/modules path. *The script > is working fine but observed that same module applying

[Puppet Users] Re: Puppet Module Best Practice (Roles/Profiles)

2019-07-19 Thread jcbollinger
On Thursday, July 18, 2019 at 7:59:26 PM UTC-5, Lesley Kimmel wrote: > > Hi all; > I'm a Linux engineer who went through a typical growth period with Puppet > and finally landed on the Roles and Profiles pattern which generally works > well. > > I have a coworker that started on after me and

Re: [Puppet Users] Recent 5.5.x point releases are throwing some warnings for me

2019-06-18 Thread jcbollinger
On Monday, June 17, 2019 at 9:09:52 AM UTC-5, lhu wrote: > > Thanks Ben. > > Would you know why this wouldn't work? I have the module manifest folder > under adhoc/pakg/dan/manifest/ > > #puppet parser validate init.pp > > Warning: Unacceptable location. The name 'adhoc::pkg::dan::init' is >

[Puppet Users] Re: PuppetDB failing to start up with bizarre complaint

2019-05-23 Thread jcbollinger
On Wednesday, May 22, 2019 at 2:33:11 PM UTC-5, Salty Old Cowdawg wrote: > > Using the puppetlabs/puppetdb module to manage PuppetDB I'm seeing way to > much red text and PuppetDB is not "refreshing" meaning restarting. It is > failing with an error message >

Re: [Puppet Users] facter to return version of an installed package

2019-05-17 Thread jcbollinger
On Thursday, May 16, 2019 at 10:50:45 AM UTC-5, Helmut Schneider wrote: > > I don't want to install netplan but if it exists do the needful: > I reiterate Ben Ford's comments: This is generally considered an anti-pattern. It is better from an administrative perspective for you to know

Re: [Puppet Users] Help with Multiple Resource Declarations

2019-05-06 Thread jcbollinger
On Saturday, May 4, 2019 at 5:29:53 PM UTC-5, Daniel Kinon wrote: > > Hey Stephen and all, > You are correct in your assumptions, and this definitely solved my > problem. I tried going down this path before but only met failure, looks > like my declaration syntax might have been wrong and

Re: [Puppet Users] Help with Multiple Resource Declarations

2019-05-06 Thread jcbollinger
On Friday, May 3, 2019 at 12:14:35 PM UTC-5, Stephen Marlow wrote: > > Hey Dan, > > The error you're getting is just saying that you've declared the > Base::Systemusers class twice and a class can only be declared once. > No, not exactly. Puppet's diagnostic is deceiving here: classes may

[Puppet Users] Re: [ACTION] Changes to release package links

2019-04-23 Thread jcbollinger
On Monday, April 22, 2019 at 4:31:09 PM UTC-5, Molly Waggett wrote: > > 1. Release packages (for all active streams) will live at the top level > only. > > This change only affects yum.puppet.com (and nightlies.puppet.com/yum), > giving us consistency with the layout on apt.puppet.com.

[Puppet Users] Re: Questions about puppet best practices on roles and profiles

2019-04-10 Thread jcbollinger
On Tuesday, April 9, 2019 at 10:30:39 AM UTC-5, NgeeGoh wrote: > > Hi all, > > I am new to Puppet and currently doing some Proof of Concept work to see > if Puppet could fit into our processes. > I have set up a puppet master server on Azure and a VM with puppet agent > installed. Since I

[Puppet Users] Re: no existing nodes.pp file

2019-04-05 Thread jcbollinger
On Thursday, April 4, 2019 at 5:15:45 PM UTC-5, Deo Breathnu wrote: > > I am fairly new to puppet. I have a puppet master that is orchestrating > the builds for three AWS autoscaling groups of Nginx reverse proxy > servers. The three types are fairly similar except for some conf files. > >

[Puppet Users] Re: Upcoming Red Hat Enterprise Linux 6 and 7(s390x architecture) removal

2019-02-28 Thread jcbollinger
On Wednesday, February 27, 2019 at 11:29:24 AM UTC-6, gheorghe...@puppet.com wrote: > > Red Hat Enterprise Linux 6 and 7, s390x architecture. > > These platforms will no longer be included in future puppet-agent releases > and will be deprecated in the next PE. > > > Please confirm: I think

Re: [Puppet Users] Writing a non-ensurable type/provider

2019-02-25 Thread jcbollinger
On Monday, February 25, 2019 at 2:30:02 AM UTC-6, Dirk Heinrichs wrote: > > Am Montag, den 25.02.2019, 09:10 +0100 schrieb Martin Alfke: > > Within the provider you specify getters (how to read existing data) and > setters (how to set new data). > Maybe you want to have a look at my PuppetConf

Re: [Puppet Users] Re: ensure_packets not working

2019-02-01 Thread jcbollinger
On Thursday, January 31, 2019 at 8:40:40 AM UTC-6, Jochen Haeberle wrote: > Nevertheless the question remains why the code is working in my dev > environment. Both environments are the same as much as you can get. > > I hope you'll forgive me if I'm inclined to doubt that the same code is

[Puppet Users] Re: ensure_packets not working

2019-01-31 Thread jcbollinger
On Thursday, January 31, 2019 at 8:00:05 AM UTC-6, jcbollinger wrote: As long as I'm standing on this soapbox, though, I'd like to remark that > ensure_packages() is a jerry-rig, not an actual solution to any Puppet > problem. It and its brethren, ensure_package(), ensure_res

[Puppet Users] Re: ensure_packets not working

2019-01-31 Thread jcbollinger
On Monday, January 28, 2019 at 5:02:42 PM UTC-6, Jochen Haeberle wrote: > > Hi, > > I am using serverless puppet apply on some nodes. I prepared a set of > manifests using forge plugins. I developed everything using Vagrant quite > fine. > > Now I put my code via git on a debian 9.7 VM with

[Puppet Users] Re: Use resource only if a tag is given at the command line

2019-01-22 Thread jcbollinger
On Friday, January 18, 2019 at 7:08:21 AM UTC-6, Karsten Heymann wrote: > > Hi puppet users, > > is there an easy way to enable a resource only if a certain tag is given? > Something like "refreshOnly", but for tags? I'm aware of --skip_tags, but > that would require us to specify that on

Re: [Puppet Users] Concerns about Puppet 4 master serving Puppet 3 clients

2019-01-15 Thread jcbollinger
On Monday, January 14, 2019 at 10:01:21 AM UTC-6, Henrik Lindberg wrote: > > On 2019-01-14 16:22, Peter Berghold wrote: > > I am about to have our first Puppet 4 Puppet master into our production > > environment. We have a very large community of Puppet 3 "leaf nodes" > > being managed by our

[Puppet Users] Re: Puppet 3 and hiera

2019-01-10 Thread jcbollinger
On Wednesday, January 9, 2019 at 11:06:54 AM UTC-6, Salty Old Cowdawg wrote: > > Hi folks, > > I know... I know... get off of Puppet 3. I'll be getting there soon. > > Right now I have Puppet 3 in our production environment where I work. > Long political story as to why we are still on 3 that

[Puppet Users] Re: leading double colons (::) for class instances

2019-01-08 Thread jcbollinger
On Monday, January 7, 2019 at 3:37:46 PM UTC-6, Matt Zagrabelny wrote: > > > > On Mon, Jan 7, 2019 at 3:31 PM Matt Zagrabelny > wrote: > >> Greetings puppet-users! >> >> For many years I have been using the following convention for including >> my classes: >> >> class foo() { >> include

[Puppet Users] Re: Elegant way to supply facts to `puppet apply`

2018-11-27 Thread jcbollinger
On Monday, November 26, 2018 at 12:51:57 PM UTC-6, Abhijeet Rastogi wrote: > > > puppet lookup command has a nice --facts option which accepts a > structured json/yaml file to upload files. > > Why does that option not exist for puppet apply? Is the environment > variable the only option? > >

[Puppet Users] Re: how to manage a resource to single instance using hiera fqdn in a datacenter.

2018-10-31 Thread jcbollinger
On Tuesday, October 30, 2018 at 11:42:59 AM UTC-5, linuxlearni...@gmail.com wrote: > > > I'm new to hiera. can someone please guide with some references how to > install a package only to a single node for the 20 nodes in a datacenter > pointing to the same role using hiera fqdn. Thanks in

Re: [Puppet Users] pip package provider on Redhat

2018-10-19 Thread jcbollinger
On Friday, October 19, 2018 at 7:00:51 AM UTC-5, David Schmitt wrote: > > To answer your original question: no, there is no way to override the ruby > code without modifying the ruby code. > I guess it depends on what one means by "override". The existing provider cannot be made to work

Re: [Puppet Users] Re: Pass parameters to the 'postgresql' module when instantiated as a dependency of the 'puppetdb' module

2018-10-18 Thread jcbollinger
On Thursday, October 18, 2018 at 6:57:41 AM UTC-5, Eirik Øverby wrote: > > > class foo:bar( > > $param1, # This enables you to provide 'param1' when > instantiating the class, > > # and it enables auto-parameter-lookup for > foo::bar::param1 in Hiera. > >

[Puppet Users] Re: Pass parameters to the 'postgresql' module when instantiated as a dependency of the 'puppetdb' module

2018-10-16 Thread jcbollinger
On Tuesday, October 16, 2018 at 3:54:13 AM UTC-5, comport3 wrote: > > Hi All, > > We are integrating a new PuppetDB role, and note that there are some key > tuning parameters we'd like to modify to optimise the performance, such as > 'shared_buffers' and 'work_mem'. Normally the methods to do

[Puppet Users] Re: hiera can't find facts to read hierarchy files?

2018-09-20 Thread jcbollinger
On Wednesday, September 19, 2018 at 11:14:47 AM UTC-5, ch...@fuzzyblender.com wrote: > > Hi Sean, > > I'm having the same issue, and I see what you said, I'm just too new to > puppet. Would it be possible for you (or others) to expand on how you > fixed this (with and example)? > > I

Re: [Puppet Users] Re: Exported resource realized by resource collector, bug?

2018-09-14 Thread jcbollinger
On Friday, September 14, 2018 at 3:10:59 AM UTC-5, Johan De Wit wrote: > > Hi, > > check this ticket. https://tickets.puppetlabs.com/browse/PUP-6723 > > > It is hard to explain, but the 'and' a resource collector does niot behave > like the 'boolean and' as we expect this. > I don't follow,

[Puppet Users] Re: Exported resource realized by resource collector, bug?

2018-09-13 Thread jcbollinger
On Wednesday, September 12, 2018 at 3:20:12 PM UTC-5, Julio Guevara wrote: > > So I'm working with puppet 5.5.1 and I have encountered what I think is a > bug. > > So on my site.pp i have the following line for ordering my firewall rules: > > site.pp > - > if $::kernel == 'Linux' { > #

[Puppet Users] Re: Duplicate declaration

2018-09-11 Thread jcbollinger
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 but it looks like the issue is > the same as I mentioned previously, you have multiple atqapache::vhost > resources attempting to manage the client base directory. I've

Re: [Puppet Users] Recent 5.5.x point releases are throwing some warnings for me

2018-08-29 Thread jcbollinger
On Tuesday, August 28, 2018 at 12:13:15 PM UTC-5, kris.b...@puppet.com wrote: > > > Hi Jon, > > As you have read, this is part of our work implementing errors to enforce > the standards set down in PUP-1434. In particular, your example > '$module_path/seed/manifests/init.pp' > looks like it

[Puppet Users] Re: Automatic parameter lookup including metaparameters

2018-08-17 Thread jcbollinger
On Thursday, August 16, 2018 at 11:27:26 AM UTC-5, Michael Watters wrote: > > > Is there in fact any reason for concern that applying class autofs > before applying one or both of the other two might result in a Puppet > failure or a target system misconfiguration? > > In this case, yes. In

[Puppet Users] Re: Automatic parameter lookup including metaparameters

2018-08-14 Thread jcbollinger
On Tuesday, August 14, 2018 at 7:52:45 AM UTC-5, jcbollinger wrote: > > include 'autofs' > > Class['authconfig'] -> Class['autofs'] > Class['nfs::client'] -> Class['autofs'] > > That combination means *exactly* the same thing as your resource-like > declaration,

[Puppet Users] Re: Automatic parameter lookup including metaparameters

2018-08-14 Thread jcbollinger
On Thursday, August 9, 2018 at 1:30:38 PM UTC-5, Michael Watters wrote: > > Hello, > > Is it possible to define metaparameters for a resource in Hiera? For > example, I have a class that is currently declared within another class as > follows. > > if !defined(Class['autofs']) { >

[Puppet Users] Re: Hiera mod not working

2018-08-03 Thread jcbollinger
On Thursday, August 2, 2018 at 8:36:06 AM UTC-5, John wrote: > > I've got a puppet instance where I'm trying to setup a hiera job to modify > a file managed by puppet. > "Hiera job" is not a meaningful term. Hiera's job is to provide data (as specified by you) to the catalog builder. It has

[Puppet Users] Re: Best practice to check if file exists on custom mountpoint

2018-08-02 Thread jcbollinger
On Thursday, August 2, 2018 at 7:57:26 AM UTC-5, jcbollinger wrote: > > > > On Wednesday, August 1, 2018 at 1:13:43 PM UTC-5, Darth Krizz wrote: > > >> Is it possible with find_file? If yes, how? >> > > > Only if your custom mount point is somewhe

[Puppet Users] Re: Best practice to check if file exists on custom mountpoint

2018-08-02 Thread jcbollinger
On Wednesday, August 1, 2018 at 1:13:43 PM UTC-5, Darth Krizz wrote: > > Hey together, > > we added a custom mountpoint on our puppetmaster. On this custom > mountpoint we store some files. > Usually the files are configuration files. > > I think you mean a Puppet fileserver mount point, since

[Puppet Users] Re: Format text in epp

2018-08-01 Thread jcbollinger
On Wednesday, August 1, 2018 at 5:05:32 AM UTC-5, Helmut Schneider wrote: > > Hi, > > is there a way to format text in epp? Something like > > a 100 > abc20 > defgds 30 > > Thank you! > > <%- | Hash $postfixTransport > | -%> > # This file is managed by Puppet, don't edit it by

[Puppet Users] Re: Simple, Concise guide for systemd - unit:mount? ##Caution Noob.##

2018-07-06 Thread jcbollinger
On Thursday, July 5, 2018 at 10:26:53 AM UTC-5, ot...@otimm.net wrote: > > Hi - I'm building a new environment and will very soon need a level of > config management. > > I have puppet-server installed. I have an agent installed and ready to go. > The first thing i would like to achieve are

[Puppet Users] Re: How to set puppetserver to listen on two IPs?

2018-06-21 Thread jcbollinger
On Wednesday, June 20, 2018 at 7:54:20 AM UTC-5, Jakov Sosic wrote: > > Hi guys, > > [root@host ~]# cat /etc/puppetlabs/puppetserver/conf.d/webserver.conf > webserver: { > access-log-config: /etc/puppetlabs/puppetserver/request-logging.xml > client-auth: want > ssl-host: 0.0.0.0 >

Re: [Puppet Users] class parameters that depend on other parameters

2018-06-13 Thread jcbollinger
On Tuesday, June 12, 2018 at 3:14:45 PM UTC-5, Tim.Mooney wrote: > Let's say you had *many* parameters that you wanted to set defaults for > (but allow overrides on an individual basis) based on a single parameter. > The simplest and most straightforward alternative I can think of is simply

Re: [Puppet Users] Re: Duplicate declaration error

2018-06-11 Thread jcbollinger
On Monday, June 11, 2018 at 2:43:25 AM UTC-5, Arnau wrote: > > Hi, > > "include" shouldn't be a problem: > > https://puppet.com/docs/puppet/5.3/lang_classes.html#include-like-behavior > > > the problematic declariation must be one of the resource like declaration. > You can only declare a

[Puppet Users] Re: is it possible to inherit parameters in hieradata

2018-06-11 Thread jcbollinger
On Friday, June 8, 2018 at 4:55:09 PM UTC-5, Priyo Phan wrote: > > I am configuring logrotate and was wondering if i can inherit parameters , > my common.yaml is given below :- > > classes: > - logrotate > logrotate::hieramerge: true > logrotate::rules: > syslog: > path: > -

Re: [Puppet Users] is it possible to inherit parameters in hieradata

2018-06-11 Thread jcbollinger
On Saturday, June 9, 2018 at 10:23:34 AM UTC-5, Robert wrote: > > Yes. > > https://puppet.com/docs/puppet/5.0/hiera_merging.html#hash > > So you could use a "logrotate::rules::defaults" hash and only specify the > differences, then use hash (or maybe deep) merge strategy. > Well no, not like

Re: [Puppet Users] Style (syntax?) question

2018-06-06 Thread jcbollinger
On Tuesday, June 5, 2018 at 9:00:47 AM UTC-5, Arnau wrote: > ( fun fact: > https://groups.google.com/forum/#!topic/puppet-users/T1cIUuKBU0E isn't > this you using "Class"? or am I missing something? > Sure is. But those are (valid) resource / class references ( Class['someclass']), not

Re: [Puppet Users] Style (syntax?) question

2018-06-05 Thread jcbollinger
On Monday, June 4, 2018 at 1:06:52 PM UTC-5, Ramin K wrote: > > On 6/4/18 8:25 AM, Peter Berghold wrote: > > I was looking at someone else's code one day last week and saw a pattern > > I've not seen before. Maybe that's what I get for developing Puppet code > > in a vacuum. :-) > > > >

Re: [Puppet Users] hiera lookup

2018-05-31 Thread jcbollinger
On Wednesday, May 30, 2018 at 11:01:40 AM UTC-5, Ugo Bellavance wrote: > > >> >> Of course, where a resource type or class defines default values for its >> parameters and those values meet your requirements, it's fine to rely on >> those. You don't necessarily need to explicitly provide

Re: [Puppet Users] hiera lookup

2018-05-30 Thread jcbollinger
On Tuesday, May 29, 2018 at 1:04:10 PM UTC-5, Ugo Bellavance wrote: > > 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

Re: [Puppet Users] hiera lookup

2018-05-29 Thread jcbollinger
On Tuesday, May 29, 2018 at 7:25:11 AM UTC-5, Ugo Bellavance wrote: > > > > 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,

[Puppet Users] Re: Exec type and backgrounded processes

2018-05-22 Thread jcbollinger
On Tuesday, May 22, 2018 at 1:38:08 AM UTC-5, Thomas Müller wrote: > > Hi > > If I define: > > exec { '/bin/sleep 300 &': > timeout => 10, > } > > and run it with puppet apply: it happily starts the sleep, backgrounds it > and finishes - leaving the sleep in the background alive. > > Is this

Re: [Puppet Users] Re: Hiera and roles/profiles

2018-05-21 Thread jcbollinger
On Friday, May 18, 2018 at 7:42:10 AM UTC-5, Arnau wrote: > > Let me tell you what I wanted to do: I wanted to build the "classes" hash > based on different profiles. So, insetad of writing classes for each > profile and then "collect" them in the role in hiera: > > roleA.yaml > classes: > -

[Puppet Users] Re: Hiera and roles/profiles

2018-05-18 Thread jcbollinger
On Friday, May 18, 2018 at 3:44:24 AM UTC-5, Arnau wrote: > > Hi all, > > I recently moved from puppet 3 to puppet 5 and hiera 1 to 3. I'm taking > this opportunity to change a little bit the hierarchy setup I've been using > for the last years. > In my previous conf I used to create a custom

[Puppet Users] Re: work on config that does not exist on first run

2018-05-17 Thread jcbollinger
On Wednesday, May 16, 2018 at 7:45:10 AM UTC-5, Jochen Haeberle wrote: > > Hi again, > > as outlined in my last post, I am trying to setup seafile using Puppet > 5.5.1 on Debian 9. > > I am struggling with a script based installation. As a work around, I > tried to separate the steps. I want to

Re: [Puppet Users] How to organizing puppet code on the master

2018-05-17 Thread jcbollinger
On Wednesday, May 16, 2018 at 4:51:08 PM UTC-5, Andrew Grimberg wrote: > > I know some folks think this is heresy, but I personally dislike > defining each node in the default manifest. > > I think it's better to drive as much data as possible from hiera as > possible, as such I do it more

[Puppet Users] Re: How to create a signal file when the file changes

2018-05-17 Thread jcbollinger
On Wednesday, May 16, 2018 at 10:12:54 PM UTC-5, 程伟 wrote: > > Hi,everyone! > I want to create a signal file when some particular file changes. I find > a syntax called *notify* in puppet docs could realize my need. So I tried > like this: > > file {'target_file': > ensure => 'present', >

Re: [Puppet Users] python Script with answer file not working

2018-05-17 Thread jcbollinger
On Thursday, May 17, 2018 at 2:17:05 AM UTC-5, Jochen Haeberle wrote: > > Thanks! There was an error in the resource. Should be > setup-seafile-mysql.sh. (not .py) > > But it does not work anyway :-/ > > even on cli, execution of the script with the answer file stops at the pw > enter. After

[Puppet Users] Re: How to organizing puppet code on the master

2018-05-16 Thread jcbollinger
On Tuesday, May 15, 2018 at 4:17:58 PM UTC-5, jeffster wrote: > > Good day all, > > Newbie looking for some insight on how to organize manifests on puppet > master. Simple setup with only a couple of machines to manage. One of my > main sticking point is that according to the literature I've

[Puppet Users] Re: Setting puppet up to use a dns alias as a servername

2018-05-07 Thread jcbollinger
On Monday, May 7, 2018 at 4:23:35 AM UTC-5, buoyant_puppy wrote: > > > > On Friday, May 4, 2018 at 3:13:41 PM UTC+2, jcbollinger wrote: >> >> >> >> On Thursday, May 3, 2018 at 9:54:11 AM UTC-5, buoyant_puppy wrote: >>> >>> >>> >&

[Puppet Users] Re: Setting puppet up to use a dns alias as a servername

2018-05-04 Thread jcbollinger
On Thursday, May 3, 2018 at 9:54:11 AM UTC-5, buoyant_puppy wrote: > > > > On Wednesday, May 2, 2018 at 2:59:33 PM UTC+2, jcbollinger wrote: >> >> >> >> On Wednesday, May 2, 2018 at 6:25:37 AM UTC-5, Gavin Williams wrote: >>> >

[Puppet Users] Re: Setting puppet up to use a dns alias as a servername

2018-05-02 Thread jcbollinger
On Wednesday, May 2, 2018 at 6:25:37 AM UTC-5, Gavin Williams wrote: > > 'dns_alt_names' is the config you're looking for... > > > https://puppet.com/docs/puppetserver/5.1/scaling_puppet_server.html#creating-and-configuring-compile-masters > > provides more info on running multiple Puppet

Re: [Puppet Users] converting Hiera v3 to v5 - :merge_behavior: deeper option?

2018-05-01 Thread jcbollinger
CORRECTION: On Tuesday, May 1, 2018 at 9:52:31 AM UTC-5, jcbollinger wrote: > > > $hash_merge_behavior = lookup(':merge_behavior', String, 'unique', 'hash') > ... but of course, I meant $hash_merge_behavior = lookup(':merge_behavior', String, 'first', 'hash') > John -

Re: [Puppet Users] converting Hiera v3 to v5 - :merge_behavior: deeper option?

2018-05-01 Thread jcbollinger
On Saturday, April 28, 2018 at 6:21:12 AM UTC-5, du wrote: > Of course I always have alternatives like replacing all hiera_hash() > functions in my manifests with lookup() with correct options however this > is a fair bit of work and I wanted to make sure first I absolutely cannot >

Re: [Puppet Users] converting Hiera v3 to v5 - :merge_behavior: deeper option?

2018-04-30 Thread jcbollinger
On Saturday, April 28, 2018 at 7:29:29 AM UTC-5, Henrik Lindberg wrote: > > On 28/04/18 13:21, du wrote: > > Thanks all for the responses > > > > I realise that the global option is no longer there and I am trying to > > set v5 up so that I can get the similar behaviour. > > > > On Friday,

Re: [Puppet Users] PuppetDB: manually import reports

2018-04-26 Thread jcbollinger
On Wednesday, April 25, 2018 at 6:22:39 AM UTC-5, Thomas Müller wrote: > > > >> >>> >>> Another usecase could be to have a async puppetdb connection from the >>> second datacenter. If the connection between the datacenters is not stable >>> enough to use a single puppetdb I would need to

Re: [Puppet Users] Re: custom facts

2018-04-26 Thread jcbollinger
On Wednesday, April 25, 2018 at 12:05:18 PM UTC-5, Michael Di Domenico wrote: > yes, that is true. i want both facter and puppet to be able to find > my custom facts without having to specify an environment variable. > But you're chasing the wrong objective. You should not be using

Re: [Puppet Users] Re: linux domain machines - cert error

2018-04-25 Thread jcbollinger
On Tuesday, April 24, 2018 at 3:55:23 PM UTC-5, Elias Pereira wrote: > > John, > > So the puppet is not designed to work with machines that are in the AD > domain? Maybe, only in servers that the root user are used with security by > sysadmin? > Puppet works fine with machines in AD domains,

[Puppet Users] Re: linux domain machines - cert error

2018-04-24 Thread jcbollinger
On Monday, April 23, 2018 at 10:34:56 AM UTC-5, empb...@gmail.com wrote: > > hello John, thanks for the answer!!! > > This problem only happens in linux machines that are in the domain, > because I have not yet tested on windows. > > Linux machines names in the test: > > -

Re: [Puppet Users] Re: Unable to run source using 'exec' resource

2018-04-24 Thread jcbollinger
Dear Justin, On Monday, April 23, 2018 at 9:49:34 AM UTC-5, Justin tim wrote: > > Hello John / Chris, > > First of all, I’d like to thank both of you for taking out time and > providing your valuable inputs on this topic. I am extremely sorry if my > query was not clear enough. > To whatever

[Puppet Users] Re: Unable to run source using 'exec' resource

2018-04-23 Thread jcbollinger
On Sunday, April 22, 2018 at 2:26:11 AM UTC-5, Justin tim wrote: > > Hi, > > I've been trying to setup openstack keystone for my DEV environment using > Puppet. Everything works fine, except the 'exec' resource. > > I have tried the below things, but not getting the desired results > > 1.

[Puppet Users] Re: puppetserver vardir configuration

2018-04-20 Thread jcbollinger
Ok, now this is getting weird. I had originally specified vardir in the [master] section of puppet.conf, and not specified reportdir explicitly. I had that setup for weeks, and yesterday discovered reports only under a different directory, as described in the previous message. After

Re: [Puppet Users] PuppetDB: manually import reports

2018-04-20 Thread jcbollinger
On Thursday, April 19, 2018 at 2:30:11 PM UTC-5, Thomas Müller wrote: > > > > Am Donnerstag, 19. April 2018 19:18:34 UTC+2 schrieb Christopher Wood: >> >> To challenge an assumption, what are you gaining from having more than >> one puppet infrastructure (puppetservers+puppetdb)? >> >> Could

[Puppet Users] Re: linux domain machines - cert error

2018-04-20 Thread jcbollinger
On Thursday, April 19, 2018 at 6:44:57 PM UTC-5, empb...@gmail.com wrote: > > Hello guys, > > At my place of work we have some computer labs. In these laboratories each > computer has the operating system windows and linux. Both systems are in > our AD domain. > > I did a lab of tests and I

[Puppet Users] puppetserver vardir configuration

2018-04-19 Thread jcbollinger
I had a bit of an unpleasant surprise today. I discovered that my puppetserver-based master seems unwilling to put reports or other varying data where I tell it to do. The docs say: Puppet Server honors almost all settings in

[Puppet Users] Re: Updated manifest, now get Failed to apply catalog: "\xF8\xDD" on UTF-16LE on Windows

2018-04-19 Thread jcbollinger
On Wednesday, April 18, 2018 at 2:49:37 PM UTC-5, jmp242 wrote: > > I just got back to this. I tried re-installing the Windows 10 VM, tried a > different hostgroup in Foreman, seems like it's a catalog problem of some > sort. > puppet agent --trace gives no output for me. > > puppet agent

[Puppet Users] Re: Brackets in hiera yaml

2018-04-19 Thread jcbollinger
On Wednesday, April 18, 2018 at 9:37:50 AM UTC-5, MartinW wrote: > > > Hi John > > Thanks for the reply > > The hiera is generated by a custom Ruby script. I have tried tweaking it > to output both with quotes and without but it didn't help > And you should stick with the version that quotes

[Puppet Users] Re: Brackets in hiera yaml

2018-04-18 Thread jcbollinger
On Wednesday, April 18, 2018 at 3:23:31 AM UTC-5, MartinW wrote: > > Hi > > I have some hiera yaml that looks like this: > >vars: > psuName: x > liveCustomers: 100 > notes: some notes here (more info in backets) > uplink: uplink01 > > The yaml is autogenerated by

Re: [Puppet Users] Is freeze_main supposed to work this way?

2018-04-17 Thread jcbollinger
On Tuesday, April 17, 2018 at 12:57:19 AM UTC-5, Henrik Lindberg wrote: > I just fixed a bug regarding freeze_main that was found when an > autoloaded class/define made use of a not already loaded custom data > type. The logic raising the error was too simplistic in its check for > the

[Puppet Users] Is freeze_main supposed to work this way?

2018-04-16 Thread jcbollinger
This Puppet 5.4.0 error message wraps up the situation in a pretty tidy package: Error: Could not retrieve catalog from remote server: Error 500 on SERVER: > Server Error: Evaluation Error: Error while evaluating a Function Call, > Cannot have code outside of a class/node/define because

Re: [Puppet Users] How can one communicate the $confdir to the catalog builder?

2018-04-16 Thread jcbollinger
On Monday, April 16, 2018 at 8:45:18 AM UTC-5, Trevor Vaughan wrote: > > Hey John, > > We've tested it all the way through a running Puppet 5 from upstream at > this point. > > Feedback is most welcome! > > Trevor > > Hey Trevor, simp/simplib looks like it has a lot of useful tools and

Re: [Puppet Users] How can one communicate the $confdir to the catalog builder?

2018-04-16 Thread jcbollinger
On Sunday, April 15, 2018 at 9:11:48 PM UTC-5, Trevor Vaughan wrote: > > Hey John, > > We added this to 'simplib' a while ago. We named it 'simp_puppet_settings' > so we didn't get name smashed whenever Puppet Inc decides to incorporate it. > > >

[Puppet Users] Re: puppet provider password decryption?

2018-04-12 Thread jcbollinger
On Wednesday, April 11, 2018 at 2:02:52 PM UTC-5, Jason McMahan wrote: > > Thank you both for your reply. > > The scenario i have is as follows. > I need to create/destroy/modify active directory group. > > There is a winad module, once i was able to get it working to create the > group it was

Re: [Puppet Users] How can one communicate the $confdir to the catalog builder?

2018-04-12 Thread jcbollinger
On Wednesday, April 11, 2018 at 11:28:12 AM UTC-5, Henrik Lindberg wrote: > > On 11/04/18 18:21, jcbollinger wrote: > > I'm writing a module for Puppet self-management, or at least I think I > > am. I was surprised to not find very much along those lines on the > > F

[Puppet Users] How can one communicate the $confdir to the catalog builder?

2018-04-11 Thread jcbollinger
I'm writing a module for Puppet self-management, or at least I think I am. I was surprised to not find very much along those lines on the Forge, and maybe I should take that as a bad sign, but I want to explore it at least a little bit. Maybe I just didn't find the right search terms --

[Puppet Users] Re: puppet provider password decryption?

2018-04-11 Thread jcbollinger
On Tuesday, April 10, 2018 at 12:41:27 PM UTC-5, Jason McMahan wrote: > > Good day, > I wanted to toss this out there to see if anyone has tried this. > > Could i perform a hiera lookup from within a custom puppet provider? > > > My thinking is to lookup an encrypted password, then use the

[Puppet Users] Re: puppet in epel

2018-04-09 Thread jcbollinger
On Monday, April 9, 2018 at 8:09:21 AM UTC-5, Michael Watters wrote: > > Most likely there are dependencies which would also need to be updated and > Redhat likes to avoid breaking things in a RHEL release. If you really > need the latest version of puppet installed the packages from the

Re: [Puppet Users] Re: rspec, trusted facts, and node facts

2018-04-06 Thread jcbollinger
On Friday, April 6, 2018 at 9:19:04 AM UTC-5, Nick Miller wrote: > > There was some discussion on a GitHub issue relating to this: > https://github.com/rodjek/rspec-puppet/pull/643 > > Thanks, NIck. It looks like I've finally got this sorted. I went back to twiddling the trusted_node_data

[Puppet Users] Re: rspec, trusted facts, and node facts

2018-04-06 Thread jcbollinger
On Thursday, April 5, 2018 at 5:07:35 PM UTC-5, jcbollinger wrote: Of course, I realize at this point that I am too dumb to spell "::trusted" correctly. But that's ancillary -- I still want to test scenarios where the node's fqdn and hostname are independent of its certname, and rs

[Puppet Users] rspec, trusted facts, and node facts

2018-04-05 Thread jcbollinger
I am working on rspec tests for a module for Puppet 5 that refers to nodes' $::trusted_facts hash, and, separately, relies on nodes' $::networking fact. In particular it uses the values of $::networking['fqdn'] and $::networking['hostname']. I would like to test scenarios where the

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

2018-04-02 Thread jcbollinger
On Friday, March 30, 2018 at 10:32:10 AM UTC-5, Ugo Bellavance wrote: > > I think I found a viable solution: > > $ cat /etc/profile.d/enablerh-postgresql96.sh > #!/bin/bash > source scl_source enable rh-postgresql96 > It looks like that's probably the *intended* solution, so by all means go

[Puppet Users] Re: Updated manifest, now get Failed to apply catalog: "\xF8\xDD" on UTF-16LE on Windows

2018-03-27 Thread jcbollinger
On Monday, March 26, 2018 at 2:58:14 PM UTC-5, jmp242 wrote: > > I'm using puppet 5.3.3 and had been using a previous version of my module > for a long time. Now I added another package to my management and started > getting an odd error: > Failed to apply catalog: "\xF8\xDD" on UTF-16LE > >

  1   2   3   4   5   6   7   8   9   10   >