[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 m

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 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 > A

[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 conn

[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 crea

[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 --te

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', > } > > >

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

[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] 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 inste

[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] pam_l

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 specificati

[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 su

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 config

[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 > manage

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 binary

[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 h

[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 sa

[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: /Stage[main]/Apt/File[

[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+unsubscr

[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 ru

[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 up

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

2017-08-21 Thread John Baird
contents of the 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 b

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

2017-08-21 Thread John Baird
thin the files. 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" a

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 ema

[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 static

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: 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&q=port&type= 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 m

[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 imag

[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-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 creat

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 ? https://gist.github.com/soudaburger/e253bdce191c731491581

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 > > th

[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 con

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

2017-08-31 Thread John Baird
ith the custom backend. On Monday, 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 sim

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-09-02 Thread John Baird
ontext and options, but my manifest knows (or should know) the proper key to look 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 wrote: > On 01/09/17 01:32, John Baird wrote: > > Henrik, > > > > I think the disconnec

[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 l

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

2017-09-14 Thread John Baird
tried to lookup what services are registered 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, b

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

2017-09-15 Thread John Baird
t") which 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:0

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

2017-09-15 Thread John Baird
the URI, but that seems insanely hackish... Personally, 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, J

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

2017-09-22 Thread John Baird
building a few custom parsers > 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, Sept

[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, whi

[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 wi

[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? -- Y

[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 t

[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 JR

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

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

[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 *Deprecate

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 > >

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
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 have > looked > > and I only see references to using them, but not how to actually use > them > > within a manifest for validat

[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 I'

[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 t

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 > wrote: > >> Hello, >> >>I'm new to using PQL and i'm having a bit of di

[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 V

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 th

[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 => 'ins

[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 Terra

[Puppet Users] Re: Augeas editing of fstab

2015-03-23 Thread John Warburton
more trouble than it is worth and you are usually better off using templates or native resources For your case, have you tried managing the mount points with the mount resource and passing the list of options to the options parameter? John -- You received this message because you are

[Puppet Users] Issue creating rabbitmq exchange with puppet

2015-03-24 Thread John Lynch
Hi, I was wondering if anyone has seen this issue before? I am trying to add an rabbitmq exchange using puppet, here is what I have in my pp file rabbitmq_exchange { "MyTestExchange@/": type => 'topic', ensure => present, } Going by the documentation, this looks

Re: [Puppet Users] Puppet is not executing scripts in order.

2015-06-24 Thread John Zimmerman
In general puppet is a poor script executor as it wasn't designed to do that. You'll can use explicit ordering and chaining as described in the link given or you can look at what you are doing in your shell scripts and refactor into puppet code. In the long run you will be a lot better off refact

[Puppet Users] Certificates when upgrading from Community to Enterprise

2015-07-10 Thread John Kennedy
We are about to move from the community edition of Puppet to enterprise. Can I just copy the ssl directory to /etc/puppetlabs or will I need to recertify all the nodes? Thanks, John John Kennedy (_8(|) I have a yellow dog: http://www.theyellowdogproject.com/The_Yellow_Dog_Project/About.html

[Puppet Users] Debian jessie and puppet packages

2015-11-23 Thread John Gateley
with puppet 2.7.23, which is quite old (both Puppet 3 and 4 are now available). Google search didn't help with this. Would I have more luck with Ubuntu? Thank you, and my apologies for the novice questions. John -- You received this message because you are subscribed to the Google Groups &

Re: [Puppet Users] Debian jessie and puppet packages

2015-11-23 Thread John Gateley
the quick reply. John On Monday, November 23, 2015 at 2:08:57 PM UTC-6, Kylo Ginsberg wrote: > > Hi John, > > As you found, the default debian packages lag, so I'd definitely recommend > using the puppetlabs packages. > > Two other things to note: > * the package n

[Puppet Users] Puppet 4.3.0 and Debian 7, fresh install, missing packages

2015-11-25 Thread John Gateley
package dependencies. I used puppetlabs package to update sources.list, and got the packages from there. John -- 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

[Puppet Users] Cert generation messed up, fresh install

2015-11-25 Thread John Gateley
directory, no change in behavior. Any suggestions appreciated, I am very new to Puppet. Thanks John -- 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 pu

[Puppet Users] Puppet 101: How to make it go?

2015-12-01 Thread John Oliver
I downloaded and installed the open-source puppet on a CentOS 6 virtual machine. I downloaded and installed the client on a Mac OS X 10.10 So... how do I make it do something? The docs on the puppet site are pretty useless for this... the docs for open source wind up looping back to refer to t

Re: [Puppet Users] Puppet 101: How to make it go?

2015-12-01 Thread John Oliver
That VM uses PE, not open source. This is the EXACT problem I'm having with the docs... everything is geared towards the commercial product. On Tuesday, December 1, 2015 at 6:55:22 AM UTC-8, Peter Bukowinski wrote: > > I suggest downloading the Learning VM and working through the tutorial. > >

Re: [Puppet Users] Puppet 101: How to make it go?

2015-12-02 Thread John Oliver
want to go with PE, but procuring stuff is a real headache, which is why I'm starting with the open-source project. being limited to 10 nodes would quickly kill any possibility of selling this to our management :-/ On Tuesday, December 1, 2015 at 2:10:14 PM UTC-8, Morgan Haskel wrote: > &g

[Puppet Users] puppet open-source and Mac client

2015-12-02 Thread John Oliver
I have puppet-server 3.8.3 and am working on making that go with a Mac running 10.10.5 "Mavericks". I installed puppet-agent-1.2.6-1.osx10.10.dmg When I run 'puppet agent --test' on the Mac, I get: Error: Could not request certificate: Error 400 on SERVER: The environment must be purely alpha

Re: [Puppet Users] puppet open-source and Mac client

2015-12-02 Thread John Oliver
:06 PM UTC-8, Martin Alfke wrote: > > Hi, > > On 02 Dec 2015, at 17:12, John Oliver > > wrote: > > > I have puppet-server 3.8.3 and am working on making that go with a Mac > running 10.10.5 "Mavericks". I installed puppet-agent-1.2.6-1.osx10.10.dmg >

Re: [Puppet Users] puppet facter for password hashing algorithm on a per OS basis

2016-02-10 Thread John Warburton
s, so beware You can look at projects.puppetlabs.com/issues/11082 you can see the mapping between 1/06 (I hear ya) and the update number. There is a link to the Oracle document that maps that out too John On Thursday, 11 February 2016, Warron French wrote: > Hello, I was hoping someone could h

Re: [Puppet Users] puppet facter for password hashing algorithm on a per OS basis

2016-02-10 Thread John Warburton
even look for the parameter as all Centos nodes will be the same No node classifier? Not sure how you would do this? A custom fact interrogating the hash type? John On Thursday, 11 February 2016, warron.french wrote: > John/Garret, thanks but the hash-type isn't specific to os&

[Puppet Users] Re: puppet agent heartbeat

2016-02-17 Thread John Gelnaw
On Wednesday, February 17, 2016 at 10:37:46 AM UTC-5, moons...@gmail.com wrote: > > is there any way we can check the heartbeat of puppet agents? > > and if agent is down can puppet try to bring up the server. > It may be a bit primitive, but I've been using crontab to "manually" run the puppet

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 wrote: >

[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 gr

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-a

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" ]; th

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

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

2019-08-07 Thread John Warburton
ilt in 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 --

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

2019-08-07 Thread John Warburton
g for the 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 defin

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

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@googlegrou

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 - c

Re: [Puppet Users] Thoughts on job listings?

2012-05-30 Thread John R. Dennison
On Wed, May 30, 2012 at 01:49:44PM -0700, Michael Stahnke wrote: > > I'm looking for general feelings. A simple +1 or -1 would be great. -1 on this list. John -- Act as if what you do makes a difference. It does. -- Wi

[Puppet Users] Semi-architectural question - data inside code-tree.

2011-07-21 Thread John Hawkes-Reed
be a bad idea, and was wondering if anyone else had a better one. -- John Hawkes-Reed Systems Administrator. Future Publishing. x 2526 -- Future Publishing Limited (registered company number 2008885) is a wholly owned subsidiary of Future plc (registered company number 3757874), both of whic

Re: [Puppet Users] Semi-architectural question - data inside code-tree.

2011-07-25 Thread John Hawkes-Reed
On 22 Jul 2011, at 22:14, Michael Knox wrote: > On 22/07/11 12:57 AM, John Hawkes-Reed wrote: >> Hello. >> >> As part of our Puppet rig, we manage a number of zonefiles with NSD. This >> means that there's a directory of datafiles under >> ../puppet/m

[Puppet Users] certificate authority chaining and verification

2011-08-01 Thread John T. Guthrie
) I am using puppet 2.7.1. Thanks very much in advance. John Guthrie jguth...@book.com This electronic mail message contains information that (a) is or may be CONFIDENTIAL, PROPRIETARY IN NATURE, OR OTHERWISE PROTECTED BY LAW FROM DISCLOSURE, and (b) is intended only for the use of the addre

[Puppet Users] Vanishing facts

2011-08-11 Thread John T. Guthrie
try starting fresh to no avail. Does anyone have any suggestions for how I can fix this? I am attaching my puppet.conf in case that will help. Thanks in advance for any advice that anyone has. Thank you very much. John Guthrie jguth...@book.com This electronic mail message contains information

Re: [Puppet Users] Vanishing facts

2011-08-12 Thread John T. Guthrie
On Thu, 2011-08-11 at 17:45 -0500, Nan Liu wrote: > On Thu, Aug 11, 2011 at 4:59 PM, John T. Guthrie wrote: Thank you very much for the quick response. > > Hello all, > > > > I am running puppet 2.7.1 with mongrel and an apache proxy. I have been > > seeing an issu

Re: [Puppet Users] Vanishing facts

2011-08-12 Thread John T. Guthrie
default of facts_terminus = facter. Thanks very much. John Guthrie jguth...@book.com On Thu, 2011-08-11 at 23:48 +0100, Ken Barber wrote: > Is your config facts_terminus=yaml for a reason? Usually its 'facter'. > > ken. > > On Thu, Aug 11, 2011 at 10:59 PM, John T.

Re: [Puppet Users] Vanishing facts

2011-08-15 Thread John T. Guthrie
On Fri, 2011-08-12 at 14:31 -0400, John T. Guthrie wrote: > On Thu, 2011-08-11 at 17:45 -0500, Nan Liu wrote: > > On Thu, Aug 11, 2011 at 4:59 PM, John T. Guthrie wrote: > > Thank you very much for the quick response. > > > > Hello all, > > > > > &g

[Puppet Users] Mildly disconcerting problem with a 2.6.7 client and 2.7.9 master

2012-01-04 Thread John Hawkes-Reed
mpt upgrade via 2.6.13 and have that running for a while? I am also probably missing something blindingly obvious... -- John Hawkes-Reed Systems Administrator. Future Publishing. x 2526 -- Future Publishing Limited (registered company number 2008885) is a wholly owned subsidiary of Future p

Re: [Puppet Users] Mildly disconcerting problem with a 2.6.7 client and 2.7.9 master

2012-01-04 Thread John Hawkes-Reed
On 4 Jan 2012, at 16:31, Brice Figureau wrote: > Hi, > > On Wed, 2012-01-04 at 11:51 +0000, John Hawkes-Reed wrote: >> Hello. >> >> In testing a potential upgrade from 2.6.7 -> 2.7.9 I ran across the >> following 'interesting' behaviour: >&g

Re: [Puppet Users] James Turnbull (finally) joins Puppet Labs

2010-04-12 Thread Stephen John Smoogen
On Sun, Apr 11, 2010 at 9:58 PM, Luke Kanies wrote: > We're very excited to announce that after years of being a critical > contributor to Puppet, including writing the Puppet Book, James Turnbull is > joining Puppet Labs as Director of Operations, where he'll be responsible > for infrastructure,

[Puppet Users] RE: Using classes from extnode to define config files?

2010-05-03 Thread Bollinger, John C
of the same class, therefore any inheritance tree where siblings are not mutually exclusive should be refactored. Good manifest design reaps great rewards in maintainability and future development. Regards, John Email Disclaimer: www.stjude.org/emaildisclaimer -- You received this messag

[Puppet Users] instantiating defines in LDAP

2010-07-23 Thread John T. Guthrie
ion: node "test" { definetest::optfile { "file1": fname => "foo"; "file2": fname => "bar"; } } (Yes, I know that this example is somewhat contrived, but I hope that it conveys the idea. ;-) Many thanks i

Re: [Puppet Users] instantiating defines in LDAP

2010-07-23 Thread John T. Guthrie
On 07/23/2010 03:26 PM, Rob McBroom wrote: > On Jul 23, 2010, at 3:04 PM, John T. Guthrie wrote: > > >> What would be the LDAP equivalent of the following AST configuration: >> >> node "test" { >>definetest::optfile { >>"

<    1   2   3   4   5   6   7   >