Re: [Puppet Users] Re: Puppet, inventory, and single sources of truth.

2014-10-28 Thread Robin Lee Powell
(Copying my response to the other branch of this thread). I want to store data about what's *supposed* to be true about our systems, not what is *actually* true. i.e. "host X is supposed to be up and in subnet Y", even if it's never actually been turned on. On Mon, Oct 27, 2014 at 08:47:14AM -0

Re: [Puppet Users] Puppet, inventory, and single sources of truth.

2014-10-28 Thread Robin Lee Powell
On Sun, Oct 26, 2014 at 06:09:08PM -0700, Garrett Honeycutt wrote: > On 10/26/14 4:46 PM, Robin Lee Powell wrote: > > > > So I've been using puppet for a long time, and the one thing > > I've never solved to my satisfaction is a way to have a single > > source of truth that acts as both instructio

Re: [Puppet Users] Jenkins with puppet

2014-10-28 Thread Irfan Sayed
thanks. let me check and get back to you regards On Tue, Oct 28, 2014 at 12:29 PM, Toni Schmidbauer < toni+puppet-us...@stderr.at> wrote: > Irfan Sayed writes: > > i am not getting clear picture of how this integration works > > i have gone through the wiki pages of this Jenkins plugin but not

[Puppet Users] is this a bug at puppet/lib/puppet/reports/store.rb file?

2014-10-28 Thread Richard
#this is a snippet of store.rb file, you can get it at https://github.com/puppetlabs/puppet/blob/master/lib/puppet/reports/store.rb now = Time.now.gmtime name = %w{year month day hour min}.collect do |method| # Make sure we're at least two digits everywhere "%02d" % now.send(method

Re: [Puppet Users] Re: Adding then removing SW - best practices?

2014-10-28 Thread Aaron Grewell
I've begun to shift to anticlass-by-default. This is driven by the need to provide documentation to auditors and the like. I foo::remove by default, then foo::install as needed (wrapped in appropriate logic to avoid resource conflicts). On Monday, October 27, 2014 1:21:55 PM UTC-7, JonY wrote

[Puppet Users] Is this a bug in puppet/lib/puppet/reports/store.rb file ?

2014-10-28 Thread Richard
now = Time.now.gmtimename = %w{year month day hour min}.collect do | method| # Make sure we're at least two digits everywhere "%02d" % now.send(method).to_send.join("") + ".yaml"#when my master run 'puppet kick -- host **' command twice quickly. this statement will get the same

Re: [Puppet Users] Delving into Puppet code -- where should I ask?

2014-10-28 Thread Riley Shott
There is a bug report open, which does talk about Puppet serving plugins from /var/lib/puppet/lib. https://tickets.puppetlabs.com/browse/PUP-731 John, you can ping me off-list if you'd like as we're going off-topic, but are you saying that you're successfully using pluginsync with directory

Re: [Puppet Users] Delving into Puppet code -- where should I ask?

2014-10-28 Thread jcbollinger
On Tuesday, October 28, 2014 3:00:38 PM UTC-5, Riley Shott wrote: > > Hm. I wonder if this is related, but I suspect if it was you would get > complaints instead of catalog runs that succeed, albeit empty. > That catalog runs are succeeding but yielding empty catalogs is a good reason to cons

[Puppet Users] Re: Is it possible to merge two 'file' trees?

2014-10-28 Thread jcbollinger
On Tuesday, October 28, 2014 1:54:25 PM UTC-5, JonY wrote: > > Situation: folder tree that gets installed via 'file' resource. In some > circumstances I want to add files/ folders to this tree. > > Given that the tree is 100% puppet controlled if I add the extra files > they will get booted ou

[Puppet Users] Re: Puppet directory environments mysteriously breaking -- help?

2014-10-28 Thread Victor Danilchenko
My upgrade is actually a clean install on a new system -- I am, of course, not touching the production puppetmaster while I am putzing around with the upgrade. In the process of installing Puppet 3.7, I blow away all the RPMs and directories, and install Puppet from scratch (I have a script that

[Puppet Users] Re: Puppet directory environments mysteriously breaking -- help?

2014-10-28 Thread Victor Danilchenko
So, I just started randomly twiddling knobs, and I realized the 'puppet module list' starts returning proper values once I comment out the 'certname' setting in /etc/puppet/puppet.conf: certname=kmadmin102.vistaprint.net (I had unqualified name there before, but whether unqualified or FQDN, it

[Puppet Users] Re: Puppet directory environments mysteriously breaking -- help?

2014-10-28 Thread jcbollinger
On Tuesday, October 28, 2014 12:32:48 PM UTC-5, Victor Danilchenko wrote: > > John, > > Sorry, I should have been more thorough -- this is Puppet 3.7 master, > running as root (so it has full access to everything). > Actually, the master normally *shouldn't* run as root. Whether it does depe

[Puppet Users] Re: Puppet directory environments mysteriously breaking -- help?

2014-10-28 Thread Tony Thayer
You are correct. I'll update my comments then. By omitting both default_manifest and an environment.conf file, my puppet install is defaulting to the ./manifests folder in the environment being called: https://docs.puppetlabs.com/references/3.7.latest/configuration.html#defaultmanifest On Tues

Re: [Puppet Users] Powershell - Run as another user account

2014-10-28 Thread Jeff Picklyk
Yes unfortunately this feature enhancement is pretty much what I'm looking for. I was looking at the puppetlabs\powershell provider to see if I could easily fork it and patch it with what I need, but I'm not too familiar with coding providers. I'm pretty novice with Puppet still. I'm going to

Re: [Puppet Users] Delving into Puppet code -- where should I ask?

2014-10-28 Thread Victor Danilchenko
When I change modulepath to 'modules' in environment.conf, I still get the 'no modules installed' error. :( On Tuesday, October 28, 2014 4:00:38 PM UTC-4, Riley Shott wrote: > > Hm. I wonder if this is related, but I suspect if it was you would get > complaints instead of catalog runs that su

Re: [Puppet Users] Delving into Puppet code -- where should I ask?

2014-10-28 Thread Riley Shott
As for other places to ask. You can the Puppet channels on the freenode IRC network: http://projects.puppetlabs.com/projects/1/wiki/Irc_Channel #puppet #puppet-dev -Riley - Original Message - | From: "Riley Shott" | To: puppet-users@googlegroups.com | Sent: Tuesday, 28 October,

[Puppet Users] Re: Puppet directory environments mysteriously breaking -- help?

2014-10-28 Thread jcbollinger
On Tuesday, October 28, 2014 12:08:11 PM UTC-5, Tony Thayer wrote: > > Specifying your default_manifest will override your directory environments > as per the documentation. > > That is NOT what the documentation says. In fact, it is exactly contrary to the documentation: The default_manifest

Re: [Puppet Users] Delving into Puppet code -- where should I ask?

2014-10-28 Thread Riley Shott
Hm. I wonder if this is related, but I suspect if it was you would get complaints instead of catalog runs that succeed, albeit empty. I'll mention it anyway because you will come across this eventually. We've had to symlink modules with custom types and providers in all environments to /etc/pu

[Puppet Users] Re: Delving into Puppet code -- where should I ask?

2014-10-28 Thread jcbollinger
On Tuesday, October 28, 2014 2:08:00 PM UTC-5, Victor Danilchenko wrote: > > So, as I posted on the adjacent thread, I have been having a problem with > Puppet master 3.7 not reading the contents of my directory environments; it > recognizes their existence, but ignores modules, manifests, and

Re: [Puppet Users] Powershell - Run as another user account

2014-10-28 Thread Rob Reynolds
On Tue, Oct 28, 2014 at 10:48 AM, Jeff Picklyk wrote: > Hello everyone, > > What is the suggested way with Puppet 3.7.x of running a powershell > command under another user's context? > > I see that exec has a group and user parameter but I can't find > documentation on how this relates to window

[Puppet Users] Re: Powershell - Run as another user account

2014-10-28 Thread Victor Danilchenko
Is 'runas ' Windows command what you are looking for? On Tuesday, October 28, 2014 11:48:21 AM UTC-4, Jeff Picklyk wrote: > > Hello everyone, > > What is the suggested way with Puppet 3.7.x of running a powershell > command under another

Re: [Puppet Users] Delving into Puppet code -- where should I ask?

2014-10-28 Thread Victor Danilchenko
Yes, I have. The salient portion of my puppet.conf file is: [main] environmentpath = $confdir/environments basemodulepath = $confdir/modules:/usr/share/puppet/modules Puppet recognizes my environments (I only have 'production'), because when I supply an invalid environment name, it complains;

Re: [Puppet Users] Delving into Puppet code -- where should I ask?

2014-10-28 Thread Riley Shott
Hi Victor, Have you verified that you have the necessary options specified in your puppet.conf to turn on directory environments? https://docs.puppetlabs.com/puppet/latest/reference/environments_configuring.html#enabling-directory-environments-in-puppet-enterprise https://docs.puppetlabs.com

[Puppet Users] Delving into Puppet code -- where should I ask?

2014-10-28 Thread Victor Danilchenko
So, as I posted on the adjacent thread, I have been having a problem with Puppet master 3.7 not reading the contents of my directory environments; it recognizes their existence, but ignores modules, manifests, and environment.conf therein. Trying to fish this problem out, I decided to go some c

[Puppet Users] Is it possible to merge two 'file' trees?

2014-10-28 Thread JonY
Situation: folder tree that gets installed via 'file' resource. In some circumstances I want to add files/ folders to this tree. Given that the tree is 100% puppet controlled if I add the extra files they will get booted out.. right? Is there some way to tell puppet to accept the extra bits (

[Puppet Users] Re: Puppet directory environments mysteriously breaking -- help?

2014-10-28 Thread Victor Danilchenko
I started out with no environment.conf file, I just added it today as a desperate bid for a work-around. Without environment.conf, it acts exactly as with environment.conf -- no modules found. On Tuesday, October 28, 2014 2:27:53 PM UTC-4, Tony Thayer wrote: > > What happens if you take the pro

[Puppet Users] Re: Puppet directory environments mysteriously breaking -- help?

2014-10-28 Thread Tony Thayer
What happens if you take the production/environment.conf file out of the equation? It will override any default values specified by puppet.conf. I have left it out of my configuration entirely. On Tuesday, October 28, 2014 10:46:57 AM UTC-7, Victor Danilchenko wrote: > > Tony, > > When I explici

Re: [Puppet Users] example hiera.yaml that uses example42-network?

2014-10-28 Thread Anthony Clark
It was indeed an issue with the network class not being included in the particular environment I was using. I've remedied that now. Just as an aside, the syntax below was correct. On Friday, October 24, 2014 12:54:53 PM UTC-4, Wil Cooley wrote: > > > > On Fri, Oct 24, 2014 at 7:49 AM, Anthony C

[Puppet Users] Re: Puppet directory environments mysteriously breaking -- help?

2014-10-28 Thread Victor Danilchenko
Tony, When I explicitly specify --environment=production, Puppet breaks the same way as in the OP -- i.e. it simply fails to find the modules (and manifests). If I specify a non-existent environment, it throws the normal 'could not find directory environment' error. So clearly Puppet reads my

[Puppet Users] Re: Puppet directory environments mysteriously breaking -- help?

2014-10-28 Thread Victor Danilchenko
John, Sorry, I should have been more thorough -- this is Puppet 3.7 master, running as root (so it has full access to everything). Yes, 'puppet module --modulepath=/etc/puppet/environments/production/modules list' also works -- but I was under impression that supplying the environmentpath valu

[Puppet Users] Re: how to use multiple strings in line.include of to use multiple if statements in puppet facts

2014-10-28 Thread Tony Thayer
Apologies if this doesn't answer your question in regards to creating custom facts, but wouldn't it make more sense to maintain this data in a profiles/roles params configuration? - Tony On Tuesday, October 28, 2014 7:43:15 AM UTC-7, Spriya wrote: > > > Hi, > > I am have java text file which con

[Puppet Users] Re: Puppet directory environments mysteriously breaking -- help?

2014-10-28 Thread Tony Thayer
What happens when you run puppet module list --environment=production ? Your configuration doesn't define which environment the puppet agent lives in, so it _should_default to production but I've been running into this kind of thing myself. This directory structure is working for me: /etc/puppet

[Puppet Users] Powershell - Run as another user account

2014-10-28 Thread Jeff Picklyk
Hello everyone, What is the suggested way with Puppet 3.7.x of running a powershell command under another user's context? I see that exec has a group and user parameter but I can't find documentation on how this relates to windows and specifically powershell commands. It would be nice if I co

[Puppet Users] Re: Puppet directory environments mysteriously breaking -- help?

2014-10-28 Thread jcbollinger
On Monday, October 27, 2014 4:43:07 PM UTC-5, Victor Danilchenko wrote: > > Hi all, > > I am running a puppetmaster setup on CentOS. We have out production > environment working fine. However, I am trying to migrate from puppet 3.4, > and from config environments to directory environments. I go

[Puppet Users] Re: Restarting puppet agent after upgrade

2014-10-28 Thread Byron Miller
I used to use Mcollective to orchestrate puppet updates but I have since drifted away from installing MCO in my environments seeing that it seems fairly inactive and causes its own problems (random nodes dropping out in a large virtual machine environment) curious as to how others have solved

[Puppet Users] how to use multiple strings in line.include of to use multiple if statements in puppet facts

2014-10-28 Thread Spriya
Hi, I am have java text file which contains versions and as well as paths. Now i need each facts for java_path and java_version. here is my text file where all my java information is there /*usr/lib/jvm/java-1.7.0-openjdk-1.7.0.25.x86_64/jre/bin/java* *java version "1.7.0_25"* *OpenJDK Runtime

[Puppet Users] Re: facter-1.7.3 and puppet-3.3.1 on OS X Mavericks 10.9

2014-10-28 Thread Oz DiGennaro
I have installed version 2.0.0 from source. I saw the same error. But running ./install.rb fixed it! Oz On Wednesday, October 30, 2013 10:50:59 AM UTC-6, Paul Tötterman wrote: > > Hi, > > Is anyone else getting this: > > $ facter > /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib

[Puppet Users] Re: How to manage a lab with puppet? (how does puppet scale?)

2014-10-28 Thread jcbollinger
On Monday, October 27, 2014 10:46:39 AM UTC-5, Nic Scott wrote: > > I'm evaluating puppet to see if it can work in our environment and I have > to admit the the learning cure with the puppet "terms" are giving me > issues. I keep reading documentation into circles. I'm familiar with > python,

Re: [Puppet Users] Help -- puppet master cache not in fact caching

2014-10-28 Thread Felix Frank
Hi, On 10/07/2014 11:52 PM, Victor Danilchenko wrote: > Hi all, > > We have a puppetmaster installation (CentOS, Puppet 3.4.3) in > production, and as the scope and complexity of our installation grows, > the manifest processing has been getting slower and slower. I looked > into it today, and r

Re: [Puppet Users] file_line + filebucket?

2014-10-28 Thread Felix Frank
On 10/07/2014 05:04 PM, Ryan Anderson wrote: > Where appropriate, I enjoy using file_line to edit files from the > puppetlabs/stdlib module, but I would like to keep a copy of the file > before it gets changed by file_line. Is there a way to have file_line > use the filebucket in the same way files

[Puppet Users] Re: Puppet development IDE (Geppetto) integrated within Eclipse using puppet & hiera - puppet module

2014-10-28 Thread Eric Francis
[general puppet question] In your init.pp you have: inherits eclipse_platform::params { class { 'eclipse_platform::setup': }} What does defining a class inside of a class achieve? I'm still new to puppet, so just a point in the right diretion would be great. Thanks, Eric Francis On Friday, Octo

[Puppet Users] Re: Debugging which provider and which command it is using

2014-10-28 Thread jcbollinger
On Monday, October 27, 2014 1:28:25 PM UTC-5, huhm4n wrote: > > When I'm installing some package using puppet, let's say > > > package { "xxx": > ensure => present, > } > > How do I include if it is running yum install, or apt-get when I'm pushing > this module on os level? >

Re: [Puppet Users] Hiera No implicit conversion of string into hash

2014-10-28 Thread Felix Frank
On 10/06/2014 03:50 PM, Dan Gibbons wrote: > HIERA.YAML > > Hiera.yaml > --- > :hierarchy: > - "%{environment}" > - "common" > :backends: > - yaml > :yaml: > :datadir: /etc/puppet/hieradan Is the second "Hiera.yaml" part of your YAML? > # hiera 'windows-tempdirectory' --config /etc/puppet/hier

Re: [Puppet Users] parameters for puppetlabs-apache module with RHEL SCL httpd24

2014-10-28 Thread Felix Frank
Hi, I'm not at all familiar with RedHat and the SCL you mention. Things that you can check generally: 1. Does the module correctly infer the version 2.4? -> See manifests/version.pp If not, see if you can fix the module. If this helps, do open a pull request. 2. If the version is detected cor

Re: [Puppet Users] Re: Restarting puppet agent after upgrade

2014-10-28 Thread Felix Frank
On 10/03/2014 04:48 PM, jcbollinger wrote: > > > I suppose you are trying to update Puppet and Facter via the Puppet > agent itself (otherwise you would use the same mechanism to restart the > service that you do to install the update). If you contemplate > something like that, then your manifes

[Puppet Users] Getting MCollective and RabbitMQ talking over SSL

2014-10-28 Thread 巨海录
my current environment is: - OS: rhel-6.5-x86_64 - puppet: 3.6.2 - rabbitmq-server: 3.2.4 - erlang: R14B-04 on my master node i install: - mcollective-client - rabbitmq-server on my agent node i install: - mcollective-server when i use normal way to connect mcollective

[Puppet Users] Re: Puppet directory environments mysteriously breaking -- help?

2014-10-28 Thread Victor Danilchenko
I was trying to avoid it, because we are also migrating to Git-centric workflow, and trying to set up per-branch environments -- it seems to me that the environment config files will be hard to keep straight under such setup. Unless I add environment.conf to the .gitignore, and instantiate it

[Puppet Users] Re: Puppet directory environments mysteriously breaking -- help?

2014-10-28 Thread Thomas Müller
Am Montag, 27. Oktober 2014 22:43:07 UTC+1 schrieb Victor Danilchenko: > > Hi all, > > I am running a puppetmaster setup on CentOS. We have out production > environment working fine. However, I am trying to migrate from puppet 3.4, > and from config environments to directory environments. I got

[Puppet Users] beaker test fails to resolve "agent" roles, works if role is master/database

2014-10-28 Thread Manish Sapariya
Hi, I have the nodeset definition as follows.. -- Some of the attributes removed for clarity -- HOSTS: kpointvm1.zencite.com: roles: - master hypervisor : vagrant kpointvm2.zencite.com: roles: - agent hypervisor : vagrant