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

2019-05-22 Thread Peter Berghold
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 java.lang.IllegalArgumentException: Specified bootstrap config file does not exist:

Re: [Puppet Users] class invocation conflicts

2019-05-21 Thread Peter Berghold
end my ways. On Mon, May 20, 2019 at 3:33 PM Henrik Lindberg wrote: > On 2019-05-20 18:57, Peter Berghold wrote: > > So here I am I have a base profile for my Ubuntu (Debian family) > > machines that invokes the class > > > > class{'apt': > > ... some p

[Puppet Users] class invocation conflicts

2019-05-20 Thread Peter Berghold
So here I am I have a base profile for my Ubuntu (Debian family) machines that invokes the class class{'apt': ... some paramters } I then invoke the class class{'postgresql': } and now Puppet is screaming that the class 'apt' cannot be invoked twice. This seems to be a flaw in Puppet

Re: [Puppet Users] Puppet apt repository broken?

2019-05-16 Thread Peter Berghold
M Morgan Rhodes wrote: > >> Hi Peter, >> >> Apologies, we've been having some repo issues today. I'm getting the >> bionic repository updated now and it should be done within the hour. I will >> send another update here when it completes. >> >> On

[Puppet Users] Puppet apt repository broken?

2019-05-15 Thread Peter Berghold
Just this afternoon around 4PM I started noticing this happen in my Docker builds that incorporate loading the Puppet agent: W: Skipping acquire of configured file 'puppet/binary-all/Packages' as repository 'http://apt.puppetlabs.com bionic InRelease' doesn't have the component 'puppet' (component

Re: [Puppet Users] eyaml edit ending strangly

2019-04-30 Thread Peter Berghold
u don't have a typo in some config, do you? > > Best > Rp > > On Mon, Apr 29, 2019 at 10:42 PM Peter Berghold > wrote: > >> I had installed hiera-eyaml on my development box. My home laptop is set >> up the same way (I think) and the error I'm seeing doesn't happen o

[Puppet Users] eyaml edit ending strangly

2019-04-29 Thread Peter Berghold
I had installed hiera-eyaml on my development box. My home laptop is set up the same way (I think) and the error I'm seeing doesn't happen on that box. When I end he edit session I'm getting: /usr/bin/eyaml edit common.eyaml [hiera-eyaml-core] cannot load such file --

[Puppet Users] puppet.el.. where did it go?

2019-03-26 Thread Peter Berghold
After updating my Ubuntu laptop I noticed the Xenial package for Puppet no longer included the puppet-el package. Where did it go? I relied on it to keep my Puppet coding more or less compliant with standards... except for that two space indentation thing... -- Peter L. Berghold

Re: [Puppet Users] PDK on bionic Ubuntu

2019-01-28 Thread Peter Berghold
t-agent package, so > changing that around will invalidate your test results. > > > On Mon, Jan 28, 2019 at 3:21 PM Peter Berghold > wrote: > >> Gemfile >> source ENV['GEM_SOURCE'] || 'https://rubygems.org' >> >> def locati

Re: [Puppet Users] PDK on bionic Ubuntu

2019-01-28 Thread Peter Berghold
[ "#{__FILE__}.local", File.join(Dir.home, '.gemfile'), ] extra_gemfiles.each do |gemfile| if File.file?(gemfile) && File.readable?(gemfile) eval(File.read(gemfile), binding) end end # vim: syntax=ruby On Mon, Jan 28, 2019 at 10:19 AM David Schmitt wrote: > please a

Re: [Puppet Users] PDK on bionic Ubuntu

2019-01-28 Thread Peter Berghold
formation we'll have a better chance of figuring out what's going on > there. > > > Cheers, David > > On Sat, Jan 26, 2019 at 3:43 PM Peter Berghold > wrote: > >> When I run "pdk test unit" I get the following error: >> pdk (INFO): Using Ruby 2.5.1 >

[Puppet Users] PDK on bionic Ubuntu

2019-01-26 Thread Peter Berghold
When I run "pdk test unit" I get the following error: pdk (INFO): Using Ruby 2.5.1 pdk (INFO): Using Puppet 6.0.2 pdk (FATAL): /opt/puppetlabs/pdk/private/ruby/2.5.1/lib/ruby/site_ruby/2.5.0/rubygems.rb:289:in `find_spec_for_exe': can't find gem bundler (>= 0.a) with executable bundle

[Puppet Users] Hiera and precedence

2019-01-17 Thread Peter Berghold
I'm having a revertment to my noob days with respect to how hiera works. (Version 3 for now) If I have the hierarchy of - common - nodes/"%{fqdn}" - datacenter/"%{fdatacenter}" if in common.yaml I have "module::parms::server: server1" and in nodes/myclient.yaml I have "module::parms::server:

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

2019-01-14 Thread Peter Berghold
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 old Puppet 3 infrastructure. What issues might I run into with that and what should I do to mitigate this? -- Peter L. Berghold

Re: [Puppet Users] Re: Puppet 3 and hiera

2019-01-10 Thread Peter Berghold
>> Is there any chance that you have *too new* an Hiera installed? I was actually worried at first that there was a regression in terms of what hiera was on there given the host was "patched" recently. I may have found the problem and yes I suspected right along the issue was on the remote

[Puppet Users] Puppet 3 and hiera

2019-01-09 Thread Peter Berghold
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 I won't get into. I just did a release of the Puppet code and one of the "features" of

Re: [Puppet Users] A GUI tool for Hiera

2019-01-08 Thread Peter Berghold
I don't want to sound harsh but I'm going to be blunt. I could not get this thing to work for me on Linux (Ubuntu) even when doing an "npm audit fix" followed by an "npm audit fix --force" followed by an "npm install" Very disappointing to me. On Tue, Jan 8, 2019 at 12:57 PM desertkun wrote:

Re: [Puppet Users] More oddities with installting FOSS version of Puppet

2018-07-26 Thread Peter Berghold
Josh, I wiped the entire trees meaning /opt/puppetlabs and /etc/puppetlabs recursive. On Wed, Jul 25, 2018, 16:17 Josh Cooper wrote: > On Wed, Jul 25, 2018 at 6:16 AM Peter Berghold > wrote: > > > > Once again I undertook trying to get a puppetserver in my personal >

[Puppet Users] Amplification of the issues I'm encountering with puppetserver on Ubuntu 16

2018-07-25 Thread Peter Berghold
It would appear that at least a majority of the configuration files that puppetserver needs to start up do not exist. Is this by design? -- 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] More oddities with installting FOSS version of Puppet

2018-07-25 Thread Peter Berghold
Once again I undertook trying to get a puppetserver in my personal computing environment to work and during a fresh install of puppetserver (removing agent and server first) and clearing the /opt/puppetlabs and /etc/puppetlabs directories I see the following complaints: Setting up puppet-agent

[Puppet Users] woes installing Puppet server (won't start)

2018-07-20 Thread Peter Berghold
I've been running my own personal Puppet server at home for a very long time and have rebuilt and installed Puppet server many times so what is going on now makes no sense to me. Yesterday I decided to rebuild my Puppet master yet again and loaded the puppetserver package from:

[Puppet Users] Style (syntax?) question

2018-06-04 Thread Peter Berghold
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. :-) class someclass ( $parm1 = $::someclass::params::parm1, $parm2 = $::someclass::params::parm2 # so far I get it. )

[Puppet Users] Misplaced Web Page (jenkins ci_reporter rspec)

2017-12-21 Thread Peter Berghold
Just a week or two ago I found (re-found?) a web page that laid out all the steps necessary to incorporate ci_reporter and publish RCOV test results. Can't find it now. Anybody got the link for that? Trying to add this functionality to the Jenkins pipeline that publishes my modules to our testing

[Puppet Users] Clean Puppet 3 to Puppet 4 migration

2017-10-11 Thread Peter Berghold
About three years ago (4 years ago?) I deployed a Puppet infrastructure for my company and department based on FOSS Puppet 3.7. Given that's been deprecated of course I'm very much looking to migrate to Puppet 4. Besides for about three months I worked for another company and got spoiled by

Re: [Puppet Users] Is hiera broken in FOSS Puppet 3.7.2?

2017-09-26 Thread Peter Berghold
ing it with 3.8. > > On Tue, Sep 26, 2017 at 12:35 PM Peter Berghold <salty.cowd...@gmail.com> > wrote: > >> Seeing things like doing a hiera lookup inside a manifest such as >> >> $somevar = hiera('randomvalue','notfound') >> >> returning nils and oth

[Puppet Users] Is hiera broken in FOSS Puppet 3.7.2?

2017-09-26 Thread Peter Berghold
Seeing things like doing a hiera lookup inside a manifest such as $somevar = hiera('randomvalue','notfound') returning nils and other odd behavior. I have a hiera.yaml file that looks like: --- :backends: - yaml :merge_behavior: deeper :deep_merge_options: {} :yaml: :datadir:

[Puppet Users] Using SRV records...

2017-09-22 Thread Peter Berghold
Doesn't seem to be working for me in Puppet 3.7... should it? I followed instructions from this page: https://docs.puppet.com/puppet/3/scaling_multiple_masters.html Had my support team setup records for three domains, have a test machine pointing to one of them and it fails to find the Puppet

[Puppet Users] Failed require resolution from RSpec.

2017-07-11 Thread Peter Berghold
I have a module that I'm refactoring that manages NTP servers and clients. The client portion of the module performs a puppetdb (Forge Module dalen-puppetdbquery) lookup to find the local NTP stratum 2 servers to populate into the client's /etc/ntp.conf file. Works great in real life but the

Re: [Puppet Users] Re: parameters and hiera

2017-07-11 Thread Peter Berghold
OK... that calms my concerns a lot. I have a second Puppet infrastructure that I'm about to build out that I'm considering not putting Foreman on it at all. Reason being it is going to be in an environment where there won't be connectivity to 80/443 at all from outside the environment. On Mon,

[Puppet Users] parameters and hiera

2017-07-10 Thread Peter Berghold
In the shop that I code for these days we have The Foreman ENC set up and running. I want to add hiera to the mix but allow our operations folks the options the ability to change parameter values using the Foreman GUI. Given the applications we are having Puppet manage this is rather mandatory

[Puppet Users] Puppet Packet Rate?

2017-07-07 Thread Peter Berghold
Has anybody out there done any sort of study on what Puppet produces in terms of I/O packet rate? I'm being asked to fill in a spreadsheet with that information -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group

[Puppet Users] A coding question about PE

2017-01-26 Thread Peter Berghold
Hi there. I find myself working for a company that is using PE and for the last umteen years I've used the FOSS version. That said I have a question that probably the answer to would apply to both PE and FOSS. I am creating a module for the sake of another module (if that makes sense) that will

[Puppet Users] Issue with puppetlabs-java

2017-01-20 Thread Peter Berghold
Supposedly on the forge site it says the module was tested under Ubuntu. I'm running Ubuntu Xenial and when I apply the java::oracle class to the machine I get -- Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a

Re: [Puppet Users] Error while spec testing -- missing collect?

2016-12-05 Thread Peter Berghold
well) and is > returning nil, thus there is no .collect method on nil. > > On Mon, Dec 5, 2016 at 5:25 PM Peter Berghold <salty.cowd...@gmail.com> > wrote: > > The piece of Puppet code the spec testing is complaining about is here: > > --8< snip > 8<---

[Puppet Users] Error while spec testing -- missing collect?

2016-12-05 Thread Peter Berghold
The piece of Puppet code the spec testing is complaining about is here: --8< snip 8<- $servers = ntp_unpackservers( query_facts("is_ntp_server=true and sitename = ${sitename}",'ipaddress') ) --8<

Re: [Puppet Users] Spec testing and dalen-puppetdbquery

2016-11-01 Thread Peter Berghold
Garret: I do have dalen-puppetdb in my .fixtures.yaml file. A link to my project? unfortunately I'm developing all this work inside my client's cloud and can't provide a link. On Tue, Nov 1, 2016 at 6:11 PM Peter Berghold <salty.cowd...@gmail.com> wrote: > That's what I was

Re: [Puppet Users] Spec testing and dalen-puppetdbquery

2016-11-01 Thread Peter Berghold
That's what I was beginning to suspect Andy. Now I have to go find the Ubuntu version of that On Tue, Nov 1, 2016 at 5:38 PM Andrew Grimberg <tyk...@bardicgrove.org> wrote: > On 11/01/2016 02:25 PM, Garrett Honeycutt wrote: > > On 11/1/16 4:03 PM, Peter Berghold wrote: >

[Puppet Users] Spec testing and dalen-puppetdbquery

2016-11-01 Thread Peter Berghold
I have a module that I am writing spec tests for that uses the Puppet Forge module cited in the subject line to query for a list of nodes fitting a particular criteria. When I run the spec test it bombs out with a message: "cannot load such file -- puppet/util/puppetdb" After a bit of searching

Re: [Puppet Users] Installing puppet on Ubuntu 16 & RSpec

2016-10-28 Thread Peter Berghold
gmail.com > > On Tue, Oct 25, 2016 at 2:03 PM, Peter Berghold <salty.cowd...@gmail.com> > wrote: > > What I thought were unrelated issues I've discovered they are related. > > I was using RSpec doing spec testing on Puppet code very happily when I > decided to

[Puppet Users] Installing puppet on Ubuntu 16 & RSpec

2016-10-25 Thread Peter Berghold
What I thought were unrelated issues I've discovered they are related. I was using RSpec doing spec testing on Puppet code very happily when I decided to install the Puppet agent (attempting to eat my own dog food of course) and then RSpec broke. Error message spec started throwing out:

[Puppet Users] Puppet agent fails to start on Ubuntu 16

2016-10-25 Thread Peter Berghold
Seeing some oddness trying to install/start Puppet agent on Ubuntu 16. Seeing this (by running "journalctl -xe"): -- Unit puppet.service has begun starting up. Oct 25 16:19:45 mtznjv1pdev01 puppet-agent[1879]: Could not autoload puppet/indirector/report/rest: uninitialized cons Oct 25 16:19:45

[Puppet Users] Wierd spec error

2016-10-25 Thread Peter Berghold
For some odd reason I am seeing the following error when running spec Failure/Error: it { should contain_class('munin') } NoMethodError: undefined method `static_catalogs?' for # the manifest it is failing on is merely: class munin { } so this should pass must I'd think

Re: [Puppet Users] Stubbing functions in Puppet rspec

2016-08-05 Thread Peter Berghold
b/master/spec/unit/provider/group/gpasswd_spec.rb > > Thanks, > > Trevor > > On Fri, Aug 5, 2016 at 8:04 AM, Peter Berghold <salty.cowd...@gmail.com> > wrote: > >> I have this wonderful module that calls various custom functions that >> I've written that I'm

[Puppet Users] Stubbing functions in Puppet rspec

2016-08-05 Thread Peter Berghold
I have this wonderful module that calls various custom functions that I've written that I'm trying to adopt RSpec testing for. After seeing it crash and burn with "function unknown" errors I took a rather meandering path and arrived here: https://github.com/TomPoulton/rspec-puppet-unit-testing

[Puppet Users] Function best approach

2016-07-19 Thread Peter Berghold
Let me preface everything I'm about to say by saying I only started seriously coding in Ruby about a year ago. I've been a Perl guy since 1989 and C/C++ and friends for longer than that so I'm not a total newbie. The question I'm going to ask notwithstanding. :-) What I'm trying to accomplish

Re: [Puppet Users] Multiple CA setup.

2016-06-08 Thread Peter Berghold
Calvin & Hobbes) > > > On Jun 08, 2016, at 10:40 AM, Peter Berghold <salty.cowd...@gmail.com> > wrote: > > In the puppet setup that I have where I work it has been increasingly more > desirable if not required to have each of our data centers be able to &

[Puppet Users] Multiple CA setup.

2016-06-08 Thread Peter Berghold
In the puppet setup that I have where I work it has been increasingly more desirable if not required to have each of our data centers be able to operate standalone. Because of this I've been Googling around looking for a methodology to allow multiple certificate authorities in puppet. Currently we

[Puppet Users] Wierd Puppet Master issue

2016-03-23 Thread Peter Berghold
Luckily this doesn't happen all the time, but I've seen in twice now in about a year's time on two different Puppet masters. Here's some background. I have in a central location a "Grand Master" that serves only the "Remote Masters" each located in a different data center. On the remote

Re: [Puppet Users] bizarro error when starting a puppet agent

2016-02-09 Thread Peter Berghold
nfigures >> most of the puppet agent. If all they need to do is "yum install puppet; >> puppet apply file.pp" that might simplify things from both ends. >> >> On Fri, Feb 05, 2016 at 10:00:14PM +, Peter Berghold wrote: >> >Just the questions you as

[Puppet Users] bizarro error when starting a puppet agent

2016-02-05 Thread Peter Berghold
First a disclaimer: I am trying to provide support for our production team setting up a system as a Puppet agent node and most of the work I'm doing is being handled with the operations team acting as my voice operated keyboards. I handed my operations team instructions on how to install a

Re: [Puppet Users] bizarro error when starting a puppet agent

2016-02-05 Thread Peter Berghold
Just the questions you asked prompted me to ask my operators more questions. Seems instructions were not followed when they configured Puppet so a quick correction solved the problem. Thanks. On Fri, Feb 5, 2016 at 3:54 PM Peter Berghold <salty.cowd...@gmail.com> wrote: > Puppe

Re: [Puppet Users] bizarro error when starting a puppet agent

2016-02-05 Thread Peter Berghold
e the Puppet Labs' apt repositories instead > of debian/ubuntu. We don't ship with those settings on by default in our > packages. > > HTH > > On Fri, Feb 5, 2016 at 8:18 AM, Peter Berghold <salty.cowd...@gmail.com> > wrote: > >> First a disclaimer: I am tr

[Puppet Users] Custom provider woes and questions

2015-12-07 Thread Peter Berghold
This email has two parts: First part Looking at "Sh*t Gary Says" seems to imply I may be going about creating custom types/providers. I am currently creating a type under lib/puppet/type/{typename}.rb without that logic doing anything with the actual logic being in

[Puppet Users] Re: Custom provider woes and questions

2015-12-07 Thread Peter Berghold
Nevermind... figured out what was going on.. and fixed that problem and now a more bugs to squash... How do I raise a failed exception in a provider (this before I start googleing) :-) On Mon, Dec 7, 2015 at 9:53 AM Peter Berghold <salty.cowd...@gmail.com> wrote: > This email has

[Puppet Users] "signalling" inside a puppet provider?

2015-12-01 Thread Peter Berghold
Given the following pattern in a puppet manifest: file{ 'some/file/foo': content => 'blah blah blah', notify => Exec['talkaboutfoo'] } exec { 'talkaboutfoo': cmd => "some/command/some/where", subscribe => File['some/file/foo'] } with a little bit of hand waving. Is there

[Puppet Users] Still mud-wrestling with spec testing

2015-11-27 Thread Peter Berghold
So, Now that my schedule has some slack in it I've turned my attention back to doing spec testing of my Puppet modules. Taking a really really simple module that I wrote as an example I started in again. Here is the one and only file making up the class. -- init.pp

[Puppet Users] Beaker Platforms?

2015-11-19 Thread Peter Berghold
I have a beaker hosts file that looks like this: HOSTS: debian-8: platform: debian/jessie image: debian:8 hypervisor: docker CONFIG: type: foss when I run beaker --hosts it chokes on every permutation of debian platform designation I can think of with this sort of error message:

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

2015-08-09 Thread Peter Berghold
I'll focus on the mysql module first. I assigned the ::mysql::server class to one of my hosts expecting mysql server to get loaded and this happened instead: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Unknown function pick at

[Puppet Users] Puppet Module spec testing

2015-08-04 Thread Peter Berghold
Is there a newer set of documents on doing Spec testing of Puppet modules than this link? https://puppetlabs.com/blog/the-next-generation-of-puppet-module-testing I am running into a brick wall getting this to work so I have to assume I'm doing something wrong... -- You received this message

Re: [Puppet Users] fileserver.conf -- files not serving

2015-07-28 Thread Peter Berghold
Wouldn't thar collide with the Puppet master process listening on 8140? On Tue, Jul 28, 2015, 10:25 Jonathan Gazeley jonathan.gaze...@bristol.ac.uk wrote: You could consider running SSH or rsync on port 8140... Cheers, Jonathan On 27/07/15 19:58, Peter Berghold wrote: Hi there, I

Re: [Puppet Users] fileserver.conf -- files not serving

2015-07-28 Thread Peter Berghold
Solved it. Had to play with /etc/puppet/auth.conf to get it to work. I've published a blog page about it. http://puppet-blog.berghold.net/?p=28#more-28 On Tue, Jul 28, 2015 at 11:45 AM Peter Berghold salty.cowd...@gmail.com wrote: Wouldn't thar collide with the Puppet master process

[Puppet Users] fileserver.conf -- files not serving

2015-07-27 Thread Peter Berghold
Hi there, I am trying to keep Puppet modules in sync between Puppet masters in an environment where SSH is being blocked between the masters (long story there, corporate security rules), Git and other such are not an option but I can use port 8140 between them. So I set up a fileserver.conf like

[Puppet Users] Case of the missing Ruby file

2015-07-20 Thread Peter Berghold
Hi folks, I've bravely stepped out into the world of writing tests for my Puppet modules to ensure code quality. Have run into an issue. My spec/spec_helper.rb has one line. require 'puppetlabs_spec_helper/module_spec_helper' I run rake spec and this happens: spec/spec_helper.rb:1:in

Re: [Puppet Users] Newbie question regarding the file resource

2015-07-20 Thread Peter Berghold
I think I understand what you are driving at, and your logic seems good to me. When I was doing web hosting for people I had a class that handled installing and configuring Apache and a separate module called sites that handled setting up the web sites using the apache::vhost define that

[Puppet Users] Puppet parser function woes

2015-07-07 Thread Peter Berghold
I've written a parser function to scrape a website looking for the newest version of a package I want loaded on my laptop. I'm getting really wonky results. Here's the function in all its glory completely un-edited: require 'net/https' require rexml/document require 'sanitize' module

[Puppet Users] puppetlabs-apache and mod_jk

2015-06-29 Thread Peter Berghold
Does the apache::vhost facility in puppetlabs-apache support mod_jk redirects in some fashion I'm missing? I'm about to use this module (along with a couple of others) to set up Jenkins on a server of mine for purely research purposes... -- You received this message because you are subscribed

[Puppet Users] puppet ignoring hiera

2015-06-18 Thread Peter Berghold
I'm sure I've forgotten something here, but in a Vagrant VM I have set up a test environment to test some stuff before bringing into my Puppet environment. Here's my puppet.conf file. Very minimal: [main] logdir=/var/log/puppet vardir=/var/lib/puppet ssldir=/var/lib/puppet/ssl

[Puppet Users] odd new error with puppet version 3.8.1

2015-05-27 Thread Peter Berghold
Ever since I upgraded to Puppet version 3.8.1 I now see this error: Error: /File[/var/lib/puppet/facts.d]: Could not evaluate: Could not retrieve information from environment production source(s) puppet:// mcadprod1.mca.sharkrivertech.com/pluginfacts What's that about? Should I worry.

[Puppet Users] nudge in the right direction needed: BFA and puppetlabs-firewall

2015-05-12 Thread Peter Berghold
Hey folks, I'm trying to figure out how to code rules in puppetlabs-firewall to mitigate Brew Force Attacks (BFA) and can't figure out how to code it. Here is the pattern I'm trying to code: $ sudo iptables -A INPUT -i eth0 -p tcp --dport 22 -m state --state NEW -m recent --set --name SSH $

Re: [Puppet Users] nudge in the right direction needed: BFA and puppetlabs-firewall

2015-05-12 Thread Peter Berghold
-force attacks? I find fail2ban useful for this sort of thing, since this is not exclusively a firewall issue: http://en.wikipedia.org/wiki/Fail2ban That said I haven't ever crossed this with a puppet-managed firewall. On Tue, May 12, 2015 at 02:17:59PM +, Peter Berghold wrote: Hey

Re: [Puppet Users] marking last modified time in a template

2015-05-06 Thread Peter Berghold
) On May 6, 2015, at 2:31 PM, Peter Berghold salty.cowd...@gmail.com wrote: I use templates to manage a slew of configuration files. One request from my end user community (Operations folks) was to have Puppet mark the last time a file was modified by Puppet as a comment in the file. Seems like

[Puppet Users] marking last modified time in a template

2015-05-06 Thread Peter Berghold
I use templates to manage a slew of configuration files. One request from my end user community (Operations folks) was to have Puppet mark the last time a file was modified by Puppet as a comment in the file. Seems like a Heisenburg problem to me. Just marking a time date inside a template

[Puppet Users] Puppet module testing

2015-04-07 Thread Peter Berghold
Is there a definitive guide somewhere that would guide me as to how to write Puppet module tests? In particular I'm interested in learning how to write a tasklist file. I keep seeing mention of such but nothing that helps... -- You received this message because you are subscribed to the Google

[Puppet Users] Issue with puppet 3.7.5 and augeas

2015-04-03 Thread Peter Berghold
Just this morning the Puppet agent got updated to 3.7.5. Now when classes that use Augeas are applied to hosts I see this: Error: Could not find a suitable provider for augeas Is there a workaround/fix for this? I'm on the Debian wheezy platform. -- You received this message because you are

[Puppet Users] Creating a list of hosts

2015-03-26 Thread Peter Berghold
I need a push in the right direction. I have a need to have a subset of hosts in my environment register themselves to receive rsync updates from a central host. I realize that the right approach is exported resources but I'm getting stuck on the actual implementation. Here is what I tried: in

Re: [Puppet Users] Creating a list of hosts

2015-03-26 Thread Peter Berghold
puppetdbquery looks worth looking into... On Thu, Mar 26, 2015 at 4:07 PM Felix Frank felix.fr...@alumni.tu-berlin.de wrote: On 03/26/2015 07:39 PM, Peter Berghold wrote: I guess you can't export such a thing? You can. But your define is not called 'remotemaster'. Perhaps

Re: [Puppet Users] Creating a list of hosts

2015-03-26 Thread Peter Berghold
OK... excuse me for being a bit dense... but how do you install this thing? i've unzipped it and it isn't very obvious to me... On Thu, Mar 26, 2015 at 4:47 PM Peter Berghold salty.cowd...@gmail.com wrote: puppetdbquery looks worth looking into... On Thu, Mar 26, 2015 at 4:07 PM Felix Frank

Re: [Puppet Users] Creating a list of hosts

2015-03-26 Thread Peter Berghold
Ok... I thought so... thanks On Thu, Mar 26, 2015, 18:18 Jeffrey Watts jeffrey.w.wa...@gmail.com wrote: Put the puppetdb directory in /etc/puppet/modules. Good luck. Jeffrey. On Thu, Mar 26, 2015 at 3:58 PM, Peter Berghold salty.cowd...@gmail.com wrote: OK... excuse me for being a bit

Re: [Puppet Users] Re: How can I diagnose hopeless performance.

2015-03-20 Thread Peter Berghold
On Fri, Mar 20, 2015 at 4:18 AM jamese james.eckers...@gmail.com wrote: Try running puppet with --debug and --evaltrace to see where it's taking the time. I'd be looking at DNS as that is often the culprit for unexplained things. -- A tale I tell is where Puppet was taking three or more

Re: [Puppet Users] Questions about PE

2015-03-18 Thread Peter Berghold
copy from PuppetLabs and get it deployed in your dev envionment (or even in your personal VM). They made it very easy to get it up and running. - Rilindo On 03/17/2015 11:49 AM, Peter Berghold wrote: HI folks, Six months into my project to bring Foreman/Puppet into my work environment

[Puppet Users] Questions about PE

2015-03-17 Thread Peter Berghold
HI folks, Six months into my project to bring Foreman/Puppet into my work environment someone has asked the question Hey! Can we get a licensed version of this with support? My answer, sure... where's the funding? That aside I have some questions about Puppet Enterprise: 1) Does it work with

[Puppet Users] Re: [foreman-users] Re: Reports not showing up in foreman.

2015-03-05 Thread Peter Berghold
now I'm mad at myself I must have read that doc ten times in the last week and missed that very important point. Good news is my module for managing the configuration of the Remote Masters now includes that tidbit. On Thu, Mar 5, 2015 at 9:58 AM Nick Howes nickho...@gmail.com wrote: Facts

[Puppet Users] Reports not showing up in foreman.

2015-03-04 Thread Peter Berghold
I'm going to re-ask this question because the issue is driving me crazy even though I'm already close enough to walk. Here's the setup: [Foreman Server with Puppet/PuppetDB] ^ | V

Re: [Puppet Users] Provider throwing errors

2015-03-03 Thread Peter Berghold
I should have followed up, I found the problem using old fashioned moving fence techniques. Don't remember the actual code I found but I redid some of the logic and it works now. On Tue, Mar 3, 2015 at 6:58 AM Felix Frank felix.fr...@alumni.tu-berlin.de wrote: On 03/02/2015 05:18 PM, Peter

[Puppet Users] Provider throwing errors

2015-03-02 Thread Peter Berghold
Can someone look at this code? def get_bind_cfg_value(key) Puppet.warning(entered get_bind_cfg) if Facter.value('multibind_present') if Facter.value('multibind_configured') configuration=Facter.value('multibind_configuration') instance_cfg =

Re: [Puppet Users] Quick question about types/providers

2015-03-02 Thread Peter Berghold
your code available somewhere, so that we can reproduce? Generally, I'd like to second John's general advice: Do restart your Puppet processes to make sure that changes to your Ruby code take effect. Best, Felix On 02/27/2015 09:22 PM, Peter Berghold wrote: I think I discovered something

Re: [Puppet Users] Quick question about types/providers

2015-02-27 Thread Peter Berghold
that's exactly what I was after. Since this is my first type/provider pair I'm proceeding cautiously. On Fri, Feb 27, 2015 at 11:09 AM Felix Frank felix.fr...@alumni.tu-berlin.de wrote: On 02/27/2015 05:02 PM, Peter Berghold wrote: can I guess that the first def mod is what is referred

[Puppet Users] Quick question about types/providers

2015-02-27 Thread Peter Berghold
Using the example of the file provider that is bundled with puppet here is a sniglet of code that I've zoomed in on: def mode if stat = resource.stat return (stat.mode 00).to_s(8) else return :absent end end def mode=(value) begin

Re: [Puppet Users] Quick question about types/providers

2015-02-27 Thread Peter Berghold
-presentation Thanks, Trevor On Fri, Feb 27, 2015 at 11:13 AM, Peter Berghold salty.cowd...@gmail.com wrote: that's exactly what I was after. Since this is my first type/provider pair I'm proceeding cautiously. On Fri, Feb 27, 2015 at 11:09 AM Felix Frank felix.fr...@alumni.tu

Re: [Puppet Users] Quick question about types/providers

2015-02-27 Thread Peter Berghold
, # rndcport=951, statsport=8080, named='-n 2', ztp=no, m_notify=no, transfer=none, version='9.9.5-S1', state=on, notify= Service['named-all'] } anybody see anything objectionable here? On Fri, Feb 27, 2015 at 2:21 PM Peter Berghold salty.cowd

Re: [Puppet Users] Re: first custom type... in the weeds already

2015-02-26 Thread Peter Berghold
Puppet::Type.newtype(:bannerfile) do newparam(:name)do end newparam(:bannertext)do end newparam(:bannertext2)do end end but a name variable is being defined and I'm still seeing the issue. On Thu, Feb 26, 2015 at 10:02 AM jcbollinger john.bollin...@stjude.org wrote: On

[Puppet Users] forcing a variable to be lower case?

2015-02-25 Thread Peter Berghold
I have a situation where there is an uppercase letter in a client's host name. When Puppet creates the certificate for the host the resultant name for the is in all lower case as I'd expect. The trouble comes in where I am managing the /etc/puppet/puppet.conf file. In my template I have

Re: [Puppet Users] forcing a variable to be lower case?

2015-02-25 Thread Peter Berghold
Thank you! That got it. Why it didn't work before I'm not sure. On to my next dumb question. On Wed, Feb 25, 2015 at 3:21 PM Peter Bukowinski pmb...@gmail.com wrote: On Feb 25, 2015, at 3:20 PM, Peter Bukowinski pmb...@gmail.com wrote: On Feb 25, 2015, at 2:26 PM, Peter Berghold

[Puppet Users] first custom type... in the weeds already

2015-02-25 Thread Peter Berghold
I've created a very simple type as follows: Puppet::Type.newtype(:bannerfile) do @doc = Create a text file with banner text ensurable newproperty(:name)do isnamevar end newproperty(:bannertext)do end newproperty(:bannertext2)do end end doesn't do anything yet, but it is a

Re: [Puppet Users] multiple Puppet masters with Foreman -- 'sproke

2015-02-24 Thread Peter Berghold
, Peter Berghold wrote: Using crude ascii art, here is what I have set up so far in my lab.. [Foreman/Puppet Grand Master] -- foreman-proxy here

[Puppet Users] multiple Puppet masters with Foreman -- 'sproke

2015-02-24 Thread Peter Berghold
Using crude ascii art, here is what I have set up so far in my lab.. [Foreman/Puppet Grand Master] -- foreman-proxy here ^ | V

Re: [Puppet Users] multiple Puppet masters with Foreman -- 'sproke

2015-02-24 Thread Peter Berghold
. Will be the go/no go for putting this in production. On Tue Feb 24 2015 at 10:41:57 AM David Schmitt da...@dasz.at wrote: On 2015-02-24 16:09, Peter Berghold wrote: What it looks like to me is going on is the YML file for the host ends up on the Remote Master (which I can verify by looking

[Puppet Users] asking a question a different way

2015-02-19 Thread Peter Berghold
is it possible for one puppet master to be managed by another? Ascii art to illustrate what I mean: Puppet Grand Master / | \ Master1 master2master3 clients:1 clients:2clients:3 My goal

Re: [Puppet Users] Re: asking a question a different way

2015-02-19 Thread Peter Berghold
On Thu, Feb 19, 2015 at 11:49 AM, David Bryant-Moore david.bmo...@puppetlabs.com wrote: Typically, the MoM will host the CA function for the second tier Masters, but this isn't an explicit constraint of the model This was the piece I was missing and another answer I got said the same

[Puppet Users] Weird puppetmaster issue.

2015-02-18 Thread Peter Berghold
I've been banging my head against the wall with this one. Probably a simple fix but I'm not seeing it at the moment. I have a proof of concept setup in our lab where I have a central Foreman/Puppet server. The Puppet server on the Foreman box has the responsibility of keeping things straight on

  1   2   3   >