[Puppet Users] Re: rspec test issues

2019-07-01 Thread Bill Sirinek
Fixed this by setting AUGEAS_LENS_LIB in spec/spec_helper_local.rb ENV['AUGEAS_LENS_LIB']='/opt/puppetlabs/puppet/share/augeas/lenses/dist' On Thursday, June 27, 2019 at 11:38:05 AM UTC-4, Bill Sirinek wrote: > > I need some help here. I have a simple augeas resource

[Puppet Users] rspec test issues

2019-06-27 Thread Bill Sirinek
I need some help here. I have a simple augeas resource that changes a line in the /etc/sysconfig/iptables-config file. I am trying to write an rspec test for this and it's not working. RHEL7, pdk 1.10. I do not have any augeas packages installed, only using what is bundled with pdk 1.10.

[Puppet Users] Re: pxp broker that are not compile masters?

2018-05-04 Thread Bill Sirinek
No, all the agents are PE. Bill On Friday, May 4, 2018 at 10:48:56 AM UTC-4, Thomas Müller wrote: > > > > Am Donnerstag, 3. Mai 2018 22:38:42 UTC+2 schrieb Bill Sirinek: >> >> Is it possible to have a pxp broker that is not a compile master? >> > > is any non

[Puppet Users] pxp broker that are not compile masters?

2018-05-03 Thread Bill Sirinek
Is it possible to have a pxp broker that is not a compile master? Thanks Bill -- 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...@googlegr

[Puppet Users] PDK on OSX 10.13?

2018-04-11 Thread Bill Sirinek
My local IT support team is hounding me to upgrade my macbook to 10.13. I currently run OSX 10.12.6 and use PDK 1.3.2, which Puppet says is available for 10.11 and 10.12.Does anyone here use PDK on a mac, and upgraded to 10.13 and found out if PDK still works? Thanks Bill -- You received

[Puppet Users] Re: rspec testing a custom puppet provider that has a parent

2018-03-22 Thread Bill Sirinek
ch 21, 2018 at 9:57:34 AM UTC-4, Bill Sirinek wrote: > > I am trying to write an rspec test for a custom type and provider I wrote > and having issues. > > The custom type has a provider that manages an ini file. Because I already > have puppetlabs/inifile, I made this provi

[Puppet Users] rspec testing a custom puppet provider that has a parent

2018-03-21 Thread Bill Sirinek
I am trying to write an rspec test for a custom type and provider I wrote and having issues. The custom type has a provider that manages an ini file. Because I already have puppetlabs/inifile, I made this provider a child provider of ini_setting. (I don't use the ini_setting type directly in m

Re: [Puppet Users] unit tests failing on augeas resources in defined type

2018-02-26 Thread Bill Sirinek
uot;Solaris" release: full: "10_u8" major: "10" minor: "8" osfamily: "Solaris" Thanks Bill On Monday, February 26, 2018 at 5:59:23 AM UTC-5, David Schmitt wrote: > > Hi Bill, > > from the code snippets you posted, no

[Puppet Users] Re: Custom fact for linux service

2018-02-21 Thread Bill Sirinek
I'm not sure you need a custom fact for this. Can you just check to see if, for example, Service['autofs'] or Service['autofs.service'] are defined? Bill On Wednesday, February 21, 2018 at 5:00:06 PM UTC-5, Dennis Labkovich wrote: > > Hello, > > Trying to create a custom fact that will be c

[Puppet Users] unit tests failing on augeas resources in defined type

2018-02-20 Thread Bill Sirinek
I am continuing to work on unit tests for modules using PDK, and am having issues with the augeas resources. I added rspec-puppet-augeas to my Gemfile.local and pdk installed it, so that part is fine. However, when I run the unit tests, the augeas resource fails. I tried this on both my laptop

[Puppet Users] Re: pdk 1.3.2 testing problems

2018-02-19 Thread Bill Sirinek
y 19, 2018 at 9:58:13 AM UTC-5, Bill Sirinek wrote: > > I've converted a simple module to use PDK, but the testing is not working. > The module is specifically for Solaris. The module is a very simple one > that just edits /etc/system, called etc_system. > > In fact, the test i

[Puppet Users] pdk 1.3.2 testing problems

2018-02-19 Thread Bill Sirinek
equire 'spec_helper' describe 'etc_system' do on_supported_os.each do |os, os_facts| context "on #{os}" do let(:facts) { os_facts } it { is_expected.to compile } end end end metadata.json: { "name": &quo

Re: [Puppet Users] getting a syntax error on the puppet generated code from a forge module (theforeman/foreman_proxy)

2017-06-22 Thread Bill Sirinek
ppet will usually # discover the appropriate provider for your platform.Available providers are: # # rest_v2 # : # # rest_v3 # : Puppet::Resource::Param(Any, 'provider') ], { /(.*)/ => ['name'] }, true, false) On Thursda

[Puppet Users] does puppet job support tags?

2017-06-21 Thread Bill Sirinek
I'm about to update to 2017.2 and start using puppet-job to do runs on production hosts (we currently only do no-op on production hosts) Typically when we do a production puppet run, we utilize tags to only run certain classes. Can we do this when doing puppet runs via the orchestrator? I c

Re: [Puppet Users] resource_title breaks the 40 character limit

2017-04-22 Thread Bill Sirinek
, and has stayed there for a couple hours now, maybe occasionally poking up to 2-3 briefly. At least I think it was related to this change. :) Thanks Bill On Saturday, April 22, 2017 at 4:46:57 PM UTC-4, Wyatt Alt wrote: > > > > On 04/22/2017 10:35 AM, Bill Sirinek wrote: > &g

[Puppet Users] resource_title breaks the 40 character limit

2017-04-22 Thread Bill Sirinek
I have a module that manages various bios settings on HP proliant servers (basically hacked up the conrep module from the forge) Anyhow, the resource names (resource_title) can get fairly long and break the 40 character column width in the database, as shown with the error below: 2017-04-22 13

[Puppet Users] Re: noob question about configuring modules via hiera's common.yaml instead of site.pp

2017-02-28 Thread Bill Sirinek
We run into that fairly regularly, and what you describe is pretty much what we have done in most cases... Create a ldap profile class that all nodes (or whichever) run, and from that it calls the openldap module with variables you get from hiera. Bill On Monday, February 27, 2017 at 12:17:59

[Puppet Users] rspec test for augeas resource that also verifies the resulting content of the file?

2014-09-25 Thread Bill Sirinek
I have a simple class that sets the timezone on a Solaris system. I'm trying to write tests for it, and failing. It's telling me the file is nil, but there should be content as the file does exist. The file is not generated via a template or as a static puppet file in the module... the module j

[Puppet Users] excessive hiera logging

2013-07-31 Thread Bill Sirinek
(puppet 3.1.1, hiera 1.2.1, redhat 6.x) My puppetmaster is filling up it's logs filesystem every other day because of hiera debug logging that I cannot seem to get rid of. I have a pretty large hierarchy (18 levels) and about 30 modules that I deploy out to 1900 servers. Every time I have an agen

[Puppet Users] ruby versions and puppet 3

2013-02-20 Thread Bill Sirinek
We're planning a rollout of Puppet 3 on our network. We've been entirely RH5 & RH6 for a while, but we are planning on folding in Solaris hosts and possibly AIX as well. The Redhat hosts are running ruby 1.8.7 and the Solaris & AIX hosts have ruby 1.9.3p125 My question is, will the differing