[Puppet Users] RE: [voxpupuli] Do you have opinions on what module quality means?

2021-10-29 Thread 'Bollinger, John C' via Puppet Users
to the voxpupuli puppet-lint checks, but I consider those a weak proxy for a subjective analysis of the module code. I appreciate that most of that is difficult for a computer to evaluate. John Bollinger From: voxpup...@groups.io On Behalf Of David Hollinger via groups.io Sent: Friday, October 29

Re: [Puppet Users] Where is source rpm for puppet6 open source rpm

2020-04-22 Thread John Sellens
Could you cheat and create /opt2/puppetlabs and a symlink from /opt/puppetlabs -> /opt2/puppetlabs before installation? Otherwise, you can likely unpack the rpm, and futz with it, but I could imagine that /opt/puppetlabs is buried in a binary or two and thus awkward to change. Hope that helps -

Re: [External] Re: [Puppet Users] legitimate puppet code?

2020-02-11 Thread John Warburton
May I highly recommend Visual Studio Code with the puppet plugin - it picks up also sorts of things like this before you even start testing your code A huge leap in productivity for me! John On Wed, 12 Feb 2020 at 01:43, 'Prentice Bisbal' via Puppet Users < puppet-users@googlegroups.com>

Re: [Puppet Users] PuppetDB Using Puppetlabs Postgresql Module on Linux

2019-12-17 Thread John Warburton
You need to set it in globals. This is what we do: class { 'postgresql::globals': version => $postgresql_version, datadir => "${postgres_top}/postgresql/data", } John On Wed, 18 Dec 2019 at 01:49, Peter Krawetzky wrote: > I

Re: [Puppet Users] Accessing the list of classes assigned to a node from within puppet

2019-08-07 Thread John Warburton
he content of /opt/puppetlabs/puppet/cache/state/classes.txt Thanks for looking Regards John On Thu, 8 Aug 2019 at 13:11, 'Dan White' via Puppet Users < puppet-users@googlegroups.com> wrote: > How about a variation on this : > # In site.pp, outside of any node definitions and below any

[Puppet Users] Accessing the list of classes assigned to a node from within puppet

2019-08-07 Thread John Warburton
n variables doc <https://puppet.com/docs/puppet/6.7/lang_facts_and_builtin_vars.html> Am I looking in the wrong place or do I have to try and access through the internal API <https://www.rubydoc.info/gems/puppet/Puppet/Resource/Catalog#classes-instance_method> ? Thanks John -- You r

Re: [Puppet Users] Registry module not working

2019-02-26 Thread John Warburton
Puppet 3 and registry simply do not work I had to upgrade all my clients to puppet 5 to get it to work correctly John On Wed, 27 Feb 2019 at 05:16, Ben Ford wrote: > Can you include the actual error message along with this snippet of the > stack trace? > > Also Puppet 3.x went

Re: [Puppet Users] Re: Puppet Certificate Issues

2018-11-21 Thread John Gelnaw
I had difficulties with the stock puppetdb entrypoint script. I wound up changing it thusly: #!/bin/bash if [ ! -d "/etc/puppetlabs/puppetdb/ssl" ]; then set -e /opt/puppetlabs/bin/puppet config set certname ${HOSTNAME} if [ ! -f "/etc/puppetlabs/puppet/ssl/certs/ca.pem" ];

Re: [Puppet Users] Puppet 4 open source EOL

2018-08-15 Thread John Gelnaw
On Wednesday, August 15, 2018 at 12:54:02 PM UTC-4, Branan Purvine-Riley wrote: > > That's correct. At this point we have no more scheduled PC1 releases, and > would only do one for a security issue. In October we will stop releasing > it entirely. > > The new PE LTS release is based on

[Puppet Users] Hiera mod not working

2018-08-02 Thread John
I've got a puppet instance where I'm trying to setup a hiera job to modify a file managed by puppet. The file is /etc/security/access.conf. The file looks like (some details removed): [root@util nodes]# more hostx.yaml X::os::auth::access: '+ : USERACCOUNT : ALL' X::os::auth::access:

[Puppet Users] Re: exec resource stuck during the install of an Oracle Client on Windows

2018-06-12 Thread John Gelnaw
If I recall, you should be able to do something similar with the "start" command under cmd.exe: start /wait Which is effectively what you're doing under powershell. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this

Re: [Puppet Users] puppet cert clean cleaning over and over

2018-05-16 Thread John Warburton
These are held in the CA inventory .../puppet/ssl/ca/inventory.txt See https://ask.puppet.com/question/25818/how-to-manage-size-of-inventorytxt/ for a discussion about cleaning it up, but essentially - delete your test host entries here John On 23 April 2018 at 00:32, Marc Haber <mh+puppet

[Puppet Users] Re: How to Orchestrate State, such as use IPs of new systems for config other systems

2018-05-01 Thread John Gelnaw
On Friday, April 27, 2018 at 9:31:24 PM UTC-4, Joaquin Menchaca wrote: > > Hello Puppeteers, > > Relearning Puppet (converting Ansible, Chef knowledge), not sure best > approach for this. How can I configure systems based on state of another > system? Essentially, I would use a tool like

[Puppet Users] Re: puppet "package" resource type for multi-file installer

2018-04-23 Thread John Gelnaw
refreshonly and notify are your friends. file { 'zipfile': notify Exec['unzip'], source => 'file:///downloads/someZipFile.zip' } exec { 'unzip zipfile -d /some/file': alias => 'unzip', refreshonly => true, notify => Exec['installer'] } exec { '/some/file/setup.exe /a': alias =>

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

2018-04-23 Thread John Gelnaw
jcbollinger has it right. You're setting environment variables, and then exiting the environment. Here's what is effectively happening: # bash # source ./opensh.rc echo $OS_TOKEN fbed3beb36960f2b3e1b # exit # echo $OS_TOKEN # When you tell Puppet to do an exec, it spawns a new instance of

[Puppet Users] Re: Can I use Puppet to run system updates?

2018-03-22 Thread John Gelnaw
On Monday, April 13, 2009 at 2:23:06 PM UTC-4, thierry.th...@gmail.com wrote: > > Hello, > > Reading the doc I could not find if Puppet could help running system > updates. > Help, yes. But I'd advise against trying to do them directly in puppet. > I would like to get started with several

Re: [Puppet Users] Need help with puppetdb query from manifest using puppetdb_query (PQL)

2018-02-15 Thread John Bishop
Thank you very much for the great explanation. :) On Thursday, February 15, 2018 at 3:07:34 PM UTC-8, Nick Lewis wrote: > > On Thu, Feb 15, 2018 at 2:11 PM John Bishop <jbish...@gmail.com > > wrote: > >> Hello, >> >>I'm new to using PQL and i'm havi

[Puppet Users] test

2018-02-15 Thread John Bishop
This message won't appear on the webpage. -- 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] Need help with puppetdb query from manifest using puppetdb_query (PQL)

2018-02-15 Thread John Bishop
Hello, I'm new to using PQL and i'm having a bit of difficulty. I'm trying to return the ipaddress of any node where the value of three trusted facts (pp_application, pp_role and pp_environment) meets some criteria. I have a query which will return only the nodes that i care about, but

Re: [Puppet Users] Puppet 5 Stdlib IP address parsing

2018-02-15 Thread John Baird
18, at 14:50, John Baird wrote: > > R.I, > > > > Can you point me to some docs on exactly how to use those? I have > looked > > and I only see references to using them, but not how to actually use > them > > within a manifest for validation. Any

Re: [Puppet Users] Puppet 5 Stdlib IP address parsing

2018-02-15 Thread John Baird
Ok, that works. I appreciate the response, thanks! On Thursday, February 15, 2018 at 8:01:57 AM UTC-6, R.I. Pienaar wrote: > > > > On Thu, 15 Feb 2018, at 14:50, John Baird wrote: > > R.I, > > > > Can you point me to some docs on exactly how to use those? I

Re: [Puppet Users] Puppet 5 Stdlib IP address parsing

2018-02-15 Thread John Baird
have written over the years, I recognized your name instantly! Thanks for getting back to me! John Baird On Thursday, February 15, 2018 at 12:19:30 AM UTC-6, R.I. Pienaar wrote: > > Use the Stdlib::Compat::Ipv4, ::Ipv6 and ::Ip_address data types > > --- > R.I.Pienaar > >

[Puppet Users] Puppet 5 Stdlib IP address parsing

2018-02-14 Thread John Baird
According to the stdlib docs, "is_ip_address" is deprecated. There is no mention of how to replace it without using "validate_legacy" which itself will ultimately be deprecated. Is there a better/proper approach to validating IPv4 and/or IPv6 syntax with Puppet 5 ? ` is_ip_address

Re: [Puppet Users] Re: Puppet Agent Hang when PuppetServer Crashes...

2018-01-05 Thread John Sellens
some interesting failure modes back in the olden days.) Thanks - cheers! John On Fri, 2018/01/05 11:53:12AM -0800, Josh Cooper <j...@puppet.com> wrote: | In Puppet 4 we added settings for configuring http connect and read | timeouts independently[1]. Previously they were both cont

[Puppet Users] Re: Puppet Agent Hang when PuppetServer Crashes...

2018-01-01 Thread John Gelnaw
On Monday, January 1, 2018 at 5:52:10 PM UTC-5, Matt Wise wrote: > > *Puppet Agent: 5.3.2* > *Puppet Server: 5.1.4 - Packaged in Docker, running on Amazon ECS* > I'm running a docker-compose based puppet setup, and had the same problem. Short version was to increase the java heap size for the

[Puppet Users] Re: Conditional actions based on result of other actions?

2017-12-27 Thread John Gelnaw
Most of your examples we handle through something like ossec and a monitoring package, but you could theoretically do something like: require pkg::wget if (! defined(Package['wget'])) { exec 'command': { } } ... which *should* require the resource 'pkg::wget' to be compiled first, and

[Puppet Users] Re: Can puppet master and agent communicate with certificates

2017-12-15 Thread John Gelnaw
On Friday, December 15, 2017 at 8:22:34 AM UTC-5, Harish Kothuri wrote: > > Hi, > > Is there a way, we can disable puppet CA completely and have PM and PA > communicates seamlessly? > What's the point in using certificates if you're going to disable the only mechanism for verifying them? --

[Puppet Users] Re: Disable Puppet Agent SSL Authentication

2017-10-27 Thread John Gelnaw
We solved a similar problem by copying the host's cert and keys off to a separate server, and then as part of the build process, we (re)downloaded the client's cert/keys. All of ours was done with scp and host keys, since it was linux based, but no reason you can't do something similar with

[Puppet Users] Puppet Feature Request (lookup with keys containing ".")

2017-10-04 Thread John Baird
Problem: So, currently as has been explained to me, doing a lookup with keys containing "." chops the key at first "." because of scoping and namespace. This makes file-based lookups impossible (as far as I can tell). I would like to be able to use HTTP or other backends to serve files,

Re: [Puppet Users] Re: Hiera 5 + Puppet 5 File Backend

2017-09-22 Thread John Baird
> in ruby into your backend module to cover common lookup "Styles" that match > your CM layout. By storing them all in the backend module they are > available essentially globally and simply called differently. > > > > On Friday, September 15, 2017 at 10:18:03 AM

Re: [Puppet Users] Re: Hiera 5 + Puppet 5 File Backend

2017-09-15 Thread John Baird
sonally, if I do a lookup from within a module, it should automatically append the current namespace to it for lookup, then this issue goes away. On Friday, September 15, 2017 at 10:54:19 AM UTC-5, Henrik Lindberg wrote: > > On 15/09/17 16:46, John Baird wrote: > > I just realized, while

[Puppet Users] Re: Hiera 5 + Puppet 5 File Backend

2017-09-15 Thread John Baird
would THEN have to actually exist in that lookup... I would expect Puppet to use module scope when a lookup is performed within the module if scope is not specified for this lookup. https://groups.google.com/forum/#!topic/puppet-users/9q__saaa26w On Monday, August 21, 2017 at 3:03:15 PM UTC-5, John

Re: [Puppet Users] Re: hiera consul backend Puppet 4.10

2017-09-14 Thread John Baird
red to > a node yet ... can't find a single working example. > > > > > On Thursday, August 31, 2017 at 5:47:09 PM UTC-7, John Baird wrote: >> >> Justin, >> >> Funny, i'm dealing with a somewhat similar scenario, but I should let you >> know that you CAN run lookup from C

[Puppet Users] Puppet Lookup Behavior

2017-09-14 Thread John Baird
I am currently implementing the "hiera-http" custom backend written by crayfishx located: "https://github.com/crayfishx/hiera-http;. I have some custom classes that need to run through an iteration of hiera hashes and perform lookups on the values of said hashes. As a result, I would simply

Re: [Puppet Users] Re: Hiera 5 + Puppet 5 File Backend

2017-09-02 Thread John Baird
k up. How do I combine them so I retrieve the contents of the file? On Sat, Sep 2, 2017 at 3:29 AM Henrik Lindberg <henrik.lindb...@puppet.com> wrote: > On 01/09/17 01:32, John Baird wrote: > > Henrik, > > > > I think the disconnect is coming from the fact that the document

Re: [Puppet Users] Re: hiera consul backend Puppet 4.10

2017-08-31 Thread John Baird
Justin, Funny, i'm dealing with a somewhat similar scenario, but I should let you know that you CAN run lookup from CLI... "puppet lookup" should invoke exactly what "lookup" does from within puppet, that's actually something they did amazingly well... On Thursday, August 31, 2017 at 11:29:02

Re: [Puppet Users] Re: Hiera 5 + Puppet 5 File Backend

2017-08-31 Thread John Baird
August 28, 2017 at 2:03:09 AM UTC-5, Henrik Lindberg wrote: > > On 28/08/17 00:45, John Baird wrote: > > The backend function receives a path in the options hash - that path > is > > guaranteed to exist - all non existing paths are simply skipped by > > hi

[Puppet Users] Re: Hiera 5 + Puppet 5 File Backend

2017-08-27 Thread John Baird
> > The backend function receives a path in the options hash - that path is > guaranteed to exist - all non existing paths are simply skipped by hiera > (see the linked docs how it works). Thus, you do not need to use any of > the find file, etc. You can use relative paths in the hiera.yaml

[Puppet Users] Re: puppet SSHD port based on hostname

2017-08-25 Thread John
but /etc/ssh/sshd_config does not the port setting at all. I've tried different variations of the command above with no luck. Am I even in the ball park? It seems this should doable in the sshd_config.erb. Any advice would be greatly appreciated. On Tuesday, August 22, 2017 at 12:36:15 PM UTC-4

Re: [Puppet Users] Re: Hiera 5 + Puppet 5 File Backend

2017-08-24 Thread John Baird
Thank you. I will take that and run with it. I appreciate the comments. On Thursday, August 24, 2017 at 9:27:31 AM UTC-5, Henrik Lindberg wrote: > > On 24/08/17 15:52, John Baird wrote: > > Henrik, I feel like this is becoming overly complicated and perhaps > >

Re: [Puppet Users] Re: Hiera 5 + Puppet 5 File Backend

2017-08-24 Thread John Baird
> > Henrik, I feel like this is becoming overly complicated and perhaps that > is my fault for lack of explanation. I am simply trying to return the contents of a file that is stored in hiera... Perhaps my gist would make more sense ?

[Puppet Users] Re: Hiera 5 + Puppet 5 File Backend

2017-08-23 Thread John Baird
Henrik, Thanks for the feedback, while I wish there was a "better/native" way, I have accepted that I need to write my own function. I would like to be able to use a similar syntax as "lookup()" and simply specify a filepath and have the contents returned as the content of the file being

[Puppet Users] Re: puppet SSHD port based on hostname

2017-08-22 Thread John Baird
Honestly, I believe you would benefit from reading this over a bit... https://docs.puppet.com/puppet/5.0/lang_template_erb.html On Tuesday, August 22, 2017 at 4:37:35 PM UTC-5, John wrote: > > So I added the following to sshd_config.erb > > <%- if hostname = MyHost -%> >

[Puppet Users] Re: Hiera 5 + Puppet 5 File Backend

2017-08-22 Thread John Baird
Henrik, Thanks for the feedback. My concern stems, really, from being able to use this with Puppet. I would think that I should be able to specify a filename and/or filepath that contain a "." without having to escape those myself. The backend should handle that, in my opinion. You can

[Puppet Users] Re: puppet SSHD port based on hostname

2017-08-22 Thread John
at 12:36:15 PM UTC-4, John wrote: > > I've pulled down the SAZ SSH module and implemented across my network. It > works great. > > However, I need to implement the following change: > > If hostname = host1 or host2 or host3 > then > port = > fi >

[Puppet Users] Re: puppet SSHD port based on hostname

2017-08-22 Thread John Baird
It looks like you should be able to pass it as a Hash of "options"... https://github.com/saz/puppet-ssh/search?utf8=%E2%9C%93=port= On Tuesday, August 22, 2017 at 11:36:15 AM UTC-5, John wrote: > > I've pulled down the SAZ SSH module and implemented across my network. I

[Puppet Users] puppet SSHD port based on hostname

2017-08-22 Thread John
I've pulled down the SAZ SSH module and implemented across my network. It works great. However, I need to implement the following change: If hostname = host1 or host2 or host3 then port = fi I just want to change the default sshd port for a few hosts. How do I do that? --

Re: [Puppet Users] Re: Hiera 5 + Puppet 5 File Backend

2017-08-22 Thread John Baird
> > Henrik, I have something that appears to be at least "attempting" to find the proper files. The issue I am currently running into is that the "key" or file that I am looking for is being "chopped" at the first ".", which in this case is actually in a folder name, not the file extension.

[Puppet Users] Re: Hiera 5 + Puppet 5 File Backend

2017-08-22 Thread John Baird
Henrik, Whether the existing YAML/JSON/HOCON backend is referenced, everything is using the context of `path` to do the lookups. The issues with this in regards to a file backend, is I am unsure as to how to access the value or file being looked up. The `path` for the other backends is

Re: [Puppet Users] Hiera 5 + Puppet 5 File Backend

2017-08-21 Thread John Baird
Henrik, I would also like to add that having the ability to serve up binary files, not just ASCII files would also be a great bonus. Thanks! -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving

Re: [Puppet Users] Hiera 5 + Puppet 5 File Backend

2017-08-21 Thread John Baird
es. 4. Anything else that may make sense to modify would be good. I appreciate any assistance you can provide. Thanks! On Monday, August 21, 2017 at 3:34:41 PM UTC-5, Henrik Lindberg wrote: > > On 21/08/17 22:18, John Baird wrote: > > I see the "yaml_data" and "js

Re: [Puppet Users] Hiera 5 + Puppet 5 File Backend

2017-08-21 Thread John Baird
e file. If you have something that would work, I would love to get it working on my end. On Monday, August 21, 2017 at 3:14:42 PM UTC-5, Henrik Lindberg wrote: > > On 21/08/17 22:03, John Baird wrote: > > There was an old hiera 3.X hiera-file backend now owned on github by > >

[Puppet Users] Hiera 5 + Puppet 5 File Backend

2017-08-21 Thread John Baird
There was an old hiera 3.X hiera-file backend now owned on github by voxpupuli... does anyone have a working example of how to reproduce this in Puppet 5 with the next data_hash contexts? Puppet's documentation seems woefully lacking in this area. Basically, I would like to be able to serve

[Puppet Users] interpolation of puppet fact, with quotes, into erb template

2017-08-18 Thread John
i have this bit of code here <% @microservices.sort.each do |service,val| -%> upstream <%= service %> { server <% val['endpoint']['{domain_suffix}'] = "@domain_suffix" -%> resolve; } <% end -%> i'm trying to do a string replacement of the @domain_suffix puppet fact,

[Puppet Users] Re: Puppet5 + Hiera not actually including classes during run

2017-08-15 Thread John Baird
Ok, so we can all move on, nothing to see here! This appears to be an artifact of having previously (unintentionally) installed puppet 3.X. As a result, hiera 2.0.0 was installed. I believe that this version of hiera to be incompatible and as a result, after a clean rebuild, everything is

[Puppet Users] Re: Puppet5 + Hiera not actually including classes during run

2017-08-15 Thread John Baird
I should also add, running masterless Puppet 5.0.1 on Ubuntu 16.04 if any of that matters. -- 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] Puppet5 + Hiera not actually including classes during run

2017-08-15 Thread John Baird
root@example1:~# puppet apply --noop -e 'class { apt: }' --modulepath /root/puppet/modules/ --environment=dev --environmentpath=/root/puppet/environments --hiera_config /root/puppet/hiera.yaml Notice: Compiled catalog for example1 in environment dev in 0.13 seconds Notice:

[Puppet Users] Re: Creating a user without a shadow entry

2017-07-28 Thread John Gelnaw
On Monday, July 24, 2017 at 5:33:09 PM UTC-4, William Korb wrote: > > Hello fellow Puppeteers and thanks in advance for any assistance you may > be able to offer. > > We have a rather non-standard requirement on our Puppet-managed Linux > systems, and I'm trying to figure out if/how Puppet can

[Puppet Users] Re: Patch Automation By Puppet

2017-06-04 Thread John Gelnaw
Having been foolish enough to say "Sure, we can do that" in response to the relatively complicated patch scenario my supervisor wanted us to implement, I can offer advice, if not code-- Our code is heavily dependent on our environment, and probably wouldn't make much sense. It's also fairly

Re: [Puppet Users] stop service after install

2017-05-17 Thread John Gelnaw
On Wednesday, May 17, 2017 at 5:06:33 PM UTC-4, Poil wrote: > > I'm agree with "Debian is just by design stupid, thinks starting all > services" > All other integration are really fine, but auto-starting after install is > terrible for all configuration management : > Change a path (mysql

[Puppet Users] Re: Have Puppet remove a user when the associated class which created it is removed

2017-05-17 Thread John Gelnaw
On Friday, May 5, 2017 at 2:22:27 PM UTC-4, James Perry wrote: > > As I keep tweaking our Puppet/Foreman setup, I was wondering if it was > somehow possible to auto-magically remove uses when the associated class is > removed from the server. All of our Puppet code is under source code >

Re: [Puppet Users] stop service after install

2017-05-17 Thread John Gelnaw
On Monday, May 15, 2017 at 8:16:38 AM UTC-4, R.I. Pienaar wrote: > > > debian will not overwrite configs on package install - suggest you put a > config down that does what you want first. > Or, I dunno, maybe he could could tie the service to the config file, and restart apache when the

[Puppet Users] Re: Need to put iterative value in a file

2017-05-05 Thread John Gelnaw
The two ways I can think of, you can use ssh_authorized_key as part of a defined type, or you can create a file resource with a template, and use iteration within the template. Iteration within the template requires "future parser" or Puppet 4.x. -- You received this message because you are

Re: [Puppet Users] How to dynamically change sudoers

2017-04-21 Thread John Gelnaw
I use a template for a single /etc/sudoers: # /etc/sudoers # # This file MUST be edited with the 'visudo' command as root. # # Of course, if you do, Puppet will completely rewrite it 30 minutes later. # Defaultsenv_reset <% unless @cmd_aliases.empty? -%> # Cmnd alias

[Puppet Users] Re: removing "minimum_uid=1000" value from all my pam config files

2017-03-31 Thread John Gelnaw
On Thursday, March 30, 2017 at 1:58:46 PM UTC-4, Peter K wrote: > > I'm trying to remove a specific configuration value, "minimum_uid=1000", > from multiple lines in several files (currently 5 files) in /etc/pam.d/. > A typical line looks like this: > auth [success=1 default=ignore]

Re: [Puppet Users] Subscribe for external module resources

2017-03-14 Thread John Gelnaw
On Tuesday, March 14, 2017 at 11:40:26 AM UTC-4, Warron French wrote: > > Gleb, you are running a cronjob to control the interval at which your > Puppet Clients are checking in? > > Did you know that you could instead use the option of *runinterval *within > the /etc/puppet/puppet.conf file

[Puppet Users] Re: Configure Puppet master as a universal caching proxy server

2017-03-13 Thread John Gelnaw
On Monday, March 13, 2017 at 10:23:28 AM UTC-4, Patryk Bęza wrote: > > I'm Puppet's new user and I have a simple question regarding Puppet > design: *is it possible to configure Puppet master as a universal, OS > agnostic >

Re: [Puppet Users] Manage delivery and execution of RPMs not in YUM

2017-03-06 Thread John Gelnaw
On Monday, March 6, 2017 at 9:16:45 AM UTC-5, jcbollinger wrote: > > > On Sunday, March 5, 2017 at 6:56:11 PM UTC-6, John Gelnaw wrote: > >> I created a second "mount point" in puppet via fileserver.conf, pointing >> to a location outside the puppet gi

Re: [Puppet Users] Manage delivery and execution of RPMs not in YUM

2017-03-05 Thread John Gelnaw
On Friday, March 3, 2017 at 8:31:00 AM UTC-5, Michael Watters wrote: > > This would be the ideal but you *can* use the rpm provider when needed. > For example: > > package { 'jdk': > ensure => installed, > provider => 'rpm', > source => '/pub/oracle/jdk-8-linux-x64.rpm', > } > > >

[Puppet Users] Re: Could not find class defined for specific environment when running puppet agent

2017-02-22 Thread John Gelnaw
I would ignore everything past "Using cached catalog from environment 'ops'" in your debugging, as it's cached and therefore probably represents a previous state of the puppet master catalog. Especially for testing, you can replace your puppet run with: service puppet stop && puppet agent

[Puppet Users] Re: Specifying dependency ordering inside of lambda functions

2017-02-20 Thread John Gelnaw
I can think of three options: 1) Break the user / group definitions into their own classes, and "require" the group class in your user definition class. 2) In some cases, Puppet does an implicit require-- it's possible your code would work as-is, and the catalog would recognize the need to

[Puppet Users] Re: Why do my SERVER certs get revoked?

2017-02-14 Thread John Gelnaw
On Tuesday, February 14, 2017 at 11:56:27 AM UTC-5, Dayton Jones wrote: > > I'm intermittently getting > Warning: SSL_connect returned=1 errno=0 state=SSLv3 read server > certificate B: certificate verify failed: [certificate revoked for > /CN=my.puppet.master] > > when clients try to

[Puppet Users] Re: MCollective server cannot connect to ActiveMQ broker

2017-01-31 Thread John Gelnaw
On Tuesday, January 31, 2017 at 3:36:20 AM UTC-5, Isabell Cowan wrote: > > I've been trying all do to set up MCollective on my puppet cluster. No > matter what I do, I can't seem to get the MCollective server to connect. > The MCollective server(s) are running mostly on Ubnutu Xenial. The >

Re: [Puppet Users] How to read in file into array of hashes to use build start script template

2017-01-22 Thread John Gelnaw
On Friday, January 20, 2017 at 12:28:02 PM UTC-5, James Perry wrote: > > Thanks. > > The reason I have a CSV is that is what is provided from the users out of > their own private database where they keep this data. I have to take the > detail as it is given. Now I can manually process the data

[Puppet Users] Re: How to read in file into array of hashes to use build start script template

2017-01-13 Thread John Gelnaw
Set up hiera correctly, add a yaml file to your hierarchy, and and translate the CSV file to YAML: I'm a perl geek, so: #!/bin/perl while(<>) { chomp; tr/A-Z/a-z/; my @a = split(/\,/); push(@{$hash{$a[0]}}, $a[1]); } for my $srv (sort(keys(%hash))) { print "startup::$srv\n"; for

[Puppet Users] Re: How to read in file into array of hashes to use build start script template

2017-01-13 Thread John Gelnaw
Set up hiera correctly, add a yaml file to your hierarchy, and and translate the CSV file to YAML: I'm a perl geek, so: #!/bin/perl while(<>) { chomp; tr/A-Z/a-z/; my @a = split(/\,/); push(@{$hash{$a[0]}}, $a[1]); } for my $srv (sort(keys(%hash))) { print "startup::$srv\n"; for

Re: [Puppet Users] Over-engineering rant

2017-01-10 Thread John Gelnaw
On Tuesday, January 10, 2017 at 3:19:45 PM UTC-5, Eric Sorenson wrote: > > > I'd like to point out that this ntp module is also deliberately a test > case for *all* of the puppet 4 language features, and as such is kind of a > "reference module", so it certainly could be simpler but is intended

Re: [Puppet Users] Over-engineering rant

2017-01-10 Thread John Gelnaw
On Tuesday, January 10, 2017 at 12:37:14 AM UTC-5, R.I. Pienaar wrote: > > So how many times have you verified you didn't talk to an evil CA when > you > > originally connected an agent? > > Every time? I logged into my known CA using a non Puppet means, I know > it's > the known CA

Re: [Puppet Users] Over-engineering rant

2017-01-09 Thread John Gelnaw
On Monday, January 9, 2017 at 2:39:38 PM UTC-5, R.I. Pienaar wrote: > > > Because if i can convince your client to connect to $evil_ca, then what? > How's it to know its a new legit ca and not a new bad ca? > The same way it "knew" when you originally provisioned it-- It didn't. In fact, the

Re: [Puppet Users] Over-engineering rant

2017-01-09 Thread John Gelnaw
On Monday, January 9, 2017 at 10:10:08 AM UTC-5, R.I. Pienaar wrote: > > > so we're on the same page are you just saying in general the NTP module > has too much > going on and its too huge for a "simple" piece of software? > Mostly, it was the unexpected syntax. Somehow, I completely missed

Re: [Puppet Users] Over-engineering rant

2017-01-09 Thread John Gelnaw
On Sunday, January 8, 2017 at 2:31:33 PM UTC-5, Rob Nelson wrote: > > There are a lot of very valid issues and concerns you bring up here. I do > want to start by saying, however, that puppet 4 is more than 6 months old - > about 20 months to be precise - and most of the significant language >

Re: [Puppet Users] lspci via facter

2017-01-08 Thread John Gelnaw
I've been using the following code for a really long time now-- I think I 'borrowed' it from someone else. # videocards.rb controllers = [] output = %x{lspci} output.each_line {|s| controllers.push($1) if s =~ /VGA

Re: [Puppet Users] Array Iteration for Community Edition of Puppet(3.8)

2017-01-01 Thread John Gelnaw
On Sunday, January 1, 2017 at 2:41:16 AM UTC-5, R.I. Pienaar wrote: > > > Puppet 3 is now dead, upgrade to Puppet 4 - it's free - and you too can > enjoy > features designed to solve your problem > While understandable, that's something of an irritating answer-- It underlies a problem I've

[Puppet Users] Re: Puppet3 | hiera | role -> Problem role/mysql.yaml not used -> example from rnelson0.com with mysql

2016-12-21 Thread John Gelnaw
Hate replying to myself. As you noticed, "profile" and "datacenter" are also not defined. -- 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] Re: Puppet3 | hiera | role -> Problem role/mysql.yaml not used -> example from rnelson0.com with mysql

2016-12-21 Thread John Gelnaw
On Wednesday, December 21, 2016 at 11:37:38 AM UTC-5, Denny Fuchs wrote: > > hi, > > I try to understand the example from > https://rnelson0.com/2015/02/02/deploying-mysql-with-puppet-without-disabling-selinux/comment-page-1/ > > with MySQL. > > At this moment, most parts are working, except

[Puppet Users] Re: r10k, git and .gitignore

2016-12-19 Thread John Gelnaw
We used Gavin's approach and created a "downloads" mount within Puppet, so Puppet still handles the file transfer, but it's from a different set of directories outside of the git repo(s). Also, for anyone creating .deb / .rpm package files, if you aren't using 'fpm', you should be. -- You

Re: [Puppet Users] puppet does not like ~ in file name

2016-11-10 Thread John Gelnaw
On Thursday, November 10, 2016 at 12:55:21 PM UTC-5, Fabrice Bacchella wrote: > > > > Le 10 nov. 2016 à 18:22, Rob Nelson a > écrit : > > > > That said, who decided a tilde to start a file name was good for > anything but a temp file??? I understand you have no choice as

Re: [Puppet Users] Problems with new PE 2016.4 install

2016-11-04 Thread John McCabe
}, /boot => { available => "419.11 MiB", available_bytes => 439472128, capacity => "11.13%", device => "/dev/sda1", filesystem => "ext2", options => [ "rw", "relatime",

[Puppet Users] Re: Very frequent "Error: Could not request certificate: The certificate retrieved from the master does not match the agent's private key." on Windows

2016-10-17 Thread John Gelnaw
On Wednesday, October 12, 2016 at 4:55:09 AM UTC-4, Fredrik Nilsson wrote: > > Thanks for your reply Andrew, sadly I guess that wont be an option as the > pain of resigning the actual certificate for erroneous hosts are less the > re-signing every certificate for all existing hosts. After all

[Puppet Users] Re: Warning: Unable to fetch my node definition, but the agent run will continue:

2016-10-17 Thread John Gelnaw
Some things to keep in mind for successful ENC scripts... First, on the agent, run: # facter fqdn This is the node name that will be reported to the puppet master (equivalent to 'hostname -f'). If it doesn't match expectations, fix that first-- preferably via DNS, but /etc/hosts is a valid

Re: [Puppet Users] R10K in an existing infrastructure OR How to write yourself into a corner.

2016-09-29 Thread John Warburton
that since it's a > reference project, but for example DNS updates are pushed out every 15 > minutes from it (agents check in every 30 minutes, though), so it's just a > matter of pushing a change to 'master' in that repo and boom, deployed > within the hour. > > On Thursday, September

Re: [Puppet Users] R10K in an existing infrastructure OR How to write yourself into a corner.

2016-09-28 Thread John Warburton
On Thursday, 29 September 2016, Rob Nelson <rnels...@gmail.com> wrote: > The 'site_configs' module is pretty equivalent to the 'data' module you > propose - odd config files, SSL certs, etc. Rob I can't find site_configs on the forge or google. Any pointers? Thanks John -- Jo

Re: [Puppet Users] Moment of duhh.... Trying to wrap my head around some condition statements.

2016-09-27 Thread John Gelnaw
if ($productname =~ /Z640/) { file { ... } exec { ... } } 'productname' is a fact which usually represents your system model. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails

[Puppet Users] Re: How to handle predictable network interface names

2016-08-27 Thread John Gelnaw
I went the other direction-- we deploy all of our servers (and most of our workstations) via cobbler, so all new RHEL 7 and CentOS 7 boxes have "net.ifnames=0" in the default profile, both pre and post install. I don't agree with upstream's complaint... udev-persistent rules, while a bit of a

[Puppet Users] Puppet Environment Classification Conflict

2016-08-19 Thread John Baird
I have followed the instructions here: https://docs.puppet.com/pe/2016.2/console_classes_groups.html#creating-environment-node-groups. This states that ALL environments that are created should be a child under "production". This makes sense because I would want it to inherit all of the

[Puppet Users] Re: Hiera Lookups Fail with variables

2016-07-19 Thread John Baird
thing", there is no lookup for "/random_thing" when calling_module is not interpolated as I would expect it to since it should see it as a nil value. On Tuesday, July 19, 2016 at 4:59:50 PM UTC-5, Gavin Williams wrote: > > John > > Yes, the 'common1' and 'common2' tiers are being i

[Puppet Users] Re: Hiera Lookups Fail with variables

2016-07-19 Thread John Baird
happen. It clearly is not searching where it should be, which is why everything is failing unless it's all hard-coded, which is obviously not ideal. On Tuesday, July 19, 2016 at 2:16:10 AM UTC-5, John Baird wrote: > > Attempting to use hiera to hold all of my node-specific variables.

Re: [Puppet Users] Hiera Lookups Fail with variables

2016-07-19 Thread John Baird
wrote: > > It cannot find the files. Do they exist and are they readable to the user > you are running hiera/the puppet master service as? > > On Monday, July 18, 2016, John Baird <john.w...@gmail.com > > wrote: > >> Attempting to use hiera to hold all of my node-s

[Puppet Users] Hiera Lookups Fail with variables

2016-07-19 Thread John Baird
Attempting to use hiera to hold all of my node-specific variables. It has been some time since I have run a puppet server, but I know it's not THAT hard. That being said, my modules run fine, but hiera is not looking them up correctly. It appears that any lines that contain any variables in

Re: [Puppet Users] Installing PuppetDB on Debian 8 with Puppet 3.7

2016-07-03 Thread John Naggets
: > > > > On Thu, Jun 30, 2016 at 1:56 PM John Naggets <hosting...@gmail.com > > wrote: > >> Hi Melissa, >> >> So do I understand you correctly here: there is no way that I can run >> PuppetDB on a Debian 8 server using the official Debian Puppet version 3.7

  1   2   3   4   5   6   >