Re: [Puppet Users] Puppet install failure

2016-04-26 Thread Vishvendra Singh Chauhan
Hi, To install puppet 3.X version, you can try with following commands. # yum install puppet-server puppet This would not provide you the /opt/puppetlabs directory... That's working in the previous structure. 1. /var/lib/puppet/* 2. /etc/puppet/* On 04/27/2016 01:50 AM, Paul Trepanier

[Puppet Users] Announce: Puppet 3.8.7 available!

2016-04-26 Thread Eric Sorenson
Puppet 3.8.7 is now available for download. This is a backwards-compatible bugfix release that includes a couple of backported fixes from 4.x to the "future" parser, improvements for Puppet's launchd and systemd service providers, and other miscellaneous patches. Read the release notes here fo

[Puppet Users] Announce: puppet-agent 1.4.2 is available

2016-04-26 Thread Morgan Rhodes
Puppet Agent 1.4.2 is now available! This is a bugfix release that addresses issues found after the 1.4.1 release, including a security-relevant fix for Ruby Puppet Masters . This release also includes new packages for Ubuntu 16.04 and Huawei devices

Re: [Puppet Users] Re: Getting augeas type to working on OS X

2016-04-26 Thread David Lutterkort
On Mon, Apr 25, 2016 at 10:07 PM, Amos Shapira wrote: > Correction - Puppet Agent is version 4.x of Puppet, which we haven't > migrated to, so I can't use that package yet > That's a bummer ;) I've put up a pull request - could you try that

Re: [Puppet Users] PuppetDB Issue with large array-valued fact

2016-04-26 Thread Mike Sharpton
Thanks Wyatt, I dropped it a while back after realizing how easy this was. All is back now, and metrics are returning to normal. The large facts are now gone and so are our issues. :-) I was wrong on the GC, it's at the default of one hour. I was thinking node-ttl, which we set to 1 week.

Re: [Puppet Users] PuppetDB Issue with large array-valued fact

2016-04-26 Thread Wyatt Alt
Mike, If you have no issue dropping and recreating the full database, that's totally a workaround here (you know your requirements better than I, so please don't take this as an endorsement of the approach :-) ). To do this just stop PuppetDB, drop the puppetdb database, and recreate the dat

Re: [Puppet Users] Puppet install failure

2016-04-26 Thread Melissa Stone
On Tue, Apr 26, 2016 at 1:29 PM Paul Trepanier wrote: > Well, puppet docs say just run "yum install puppetserver" but that doesn't > really work. Everybody says you have to go to yum.puppetlabs.com and > grab it from there and as I've experience, that' approach also does not > appear to work. >

Re: [Puppet Users] Puppet install failure

2016-04-26 Thread Paul Trepanier
Well, puppet docs say just run "yum install puppetserver" but that doesn't really work. Everybody says you have to go to yum.puppetlabs.com and grab it from there and as I've experience, that' approach also does not appear to work. I guess the final question is what version of the install guid

Re: [Puppet Users] Puppet install failure

2016-04-26 Thread Christopher Wood
On Tue, Apr 26, 2016 at 01:10:41PM -0700, Paul Trepanier wrote: >OK, tried your instructions (which only differed by "pc1" in the distname) >and now /opt/puppetlabs is there. > >What is the reason for this (I've found no less than 6 references for >Centos 7 including a cbtnuggets.c

Re: [Puppet Users] Puppet install failure

2016-04-26 Thread Paul Trepanier
Hang on. It didn't go well. [root@puppetmaster puppetlabs]# systemctl start puppetmaster.service Failed to start puppetmaster.service: Unit puppetmaster.service failed to load: No such file or directory. So neither dist for CentOS 7 seems to work. Am I missing something? Is puppet not ready

Re: [Puppet Users] Puppet install failure

2016-04-26 Thread Paul Trepanier
OK, tried your instructions (which only differed by "pc1" in the distname) and now /opt/puppetlabs is there. What is the reason for this (I've found no less than 6 references for Centos 7 including a cbtnuggets.com training video that says to use the .rpm WITHOUT "pc1" in it). What is the diffe

Re: [Puppet Users] Puppet install failure

2016-04-26 Thread Paul Trepanier
Confused. Why did you include links to 4.0 docs for 3.8? It appears you can't install 4.0 based on all the instructions out there referencing yum.puppetlabs.com. ?? On Tuesday, April 26, 2016 at 2:46:13 PM UTC-5, Christopher Wood wrote: > > On Tue, Apr 26, 2016 at 12:37:38PM -0700, Paul Trepa

[Puppet Users] Re: Puppet install failure

2016-04-26 Thread Mike Sharpton
It appears have installed Puppet 3, not 4, this explains why the directory is not there. On Tuesday, April 26, 2016 at 2:40:41 PM UTC-5, Paul Trepanier wrote: > > Hi Folks, > > ..on CentOS 7 > > # rpm -ivh http://yum.puppetlabs.com/puppetlabs-release-el-7.noarch.rpm > # yum install puppet-server

Re: [Puppet Users] Puppet install failure

2016-04-26 Thread Christopher Wood
On Tue, Apr 26, 2016 at 12:37:38PM -0700, Paul Trepanier wrote: >Hi Folks, >..on CentOS 7 > ># rpm -ivh http://yum.puppetlabs.com/puppetlabs-release-el-7.noarch.rpm ># yum install puppet-server ># puppet resource package puppet-server ensure=latest >After doing this, there

[Puppet Users] Puppet install failure

2016-04-26 Thread Paul Trepanier
Hi Folks, ..on CentOS 7 # rpm -ivh http://yum.puppetlabs.com/puppetlabs-release-el-7.noarch.rpm # yum install puppet-server # puppet resource package puppet-server ensure=latest After doing this, there is NO /opt/puppetlabs directory. Any idea what the issue is? All the docs say /opt/puppetlab

Re: [Puppet Users] PuppetDB Issue with large array-valued fact

2016-04-26 Thread Mike Sharpton
Besides, drop, and let it recreate I mean. On Tuesday, April 26, 2016 at 11:50:09 AM UTC-5, Mike Sharpton wrote: > > Thanks Wyatt. I see what you mean, this may take too long. What if I got > desperate and decided to just drop the entire PuppetDB. Is there an easy > way to do this? I really d

Re: [Puppet Users] PuppetDB Issue with large array-valued fact

2016-04-26 Thread Mike Sharpton
Thanks Wyatt. I see what you mean, this may take too long. What if I got desperate and decided to just drop the entire PuppetDB. Is there an easy way to do this? I really don't care about historical data as we use this basically for monitoring of the environment. On Tuesday, April 26, 2016 a

Re: [Puppet Users] PuppetDB Issue with large array-valued fact

2016-04-26 Thread Wyatt Alt
Hey Mike, give this a shot (in a psql session): begin; delete from facts where fact_path_id in (select id from fact_paths where name=any('{"disks", "partitions", "mountpoints"}')); delete from fact_paths where id not in (select fact_path_id from facts); delete from fact_values where id not in (

Re: [Puppet Users] Setting var to undef does not override class or define defaults

2016-04-26 Thread Rob Nelson
Passing undef to a parameter doesn't unset it. It's the same as not passing it. I do not believe there is a standard way to unset a parameter with a default value. You can set it to '', 0, false, or another appropriate "unset" value depending on how it is to be used, though. Rob Nelson rnels...@g

Re: [Puppet Users] manage passwords on several systems

2016-04-26 Thread Rob Nelson
Filip, is there a reason you're managing the shadow file directly instead of feeding the right strings into the user resource's password parameter? https://docs.puppet.com/puppet/latest/reference/type.html#user-attribute-password. That may obviate some of your issues. Otherwise, can you show the c

[Puppet Users] Setting var to undef does not override class or define defaults

2016-04-26 Thread Erik Anderson
On Puppet 4.4.1 I ran the following: class testingclass( $cmd_path = 'PluginDir', ){ $message_ntfy = "cmd_path is set to: ${cmd_path} for ${name}" notify { $message_ntfy: } } define testingdefine( $cmd_path = 'PluginDir', ){ $message_ntfy = "cmd_path is set to: ${cmd_path} for ${name

[Puppet Users] cron subclass not working

2016-04-26 Thread Tony Davis
Hi, I'm fairly new to puppet but I've been trying to create some puppet modules to help me maintain my various PCs/laptops at home. I have created the following module: my module init.pp contains class bleachbit { include bleachbit::install include bleachbit::cronadd } install.pp has cla

[Puppet Users] manage passwords on several systems

2016-04-26 Thread filip hosten
Hi, I'm writing a manifest to distribute the puppet master's shadow passwords for selected users to the clients. If a user want to change the password (as it is 1month valid) on the puppet master, it should be distributed to the nodes with the next run. I'm using "generate" in combination wit

Re: [Puppet Users] PuppetDB Issue with large array-valued fact

2016-04-26 Thread Mike Sharpton
Wyatt, We implemented the code to make these facts be nothing. We can see it working on nodes that are small, and it worked in our test environment. However, we still have the issue that it cannot replace facts as PuppetDB still chokes on emptying the facts for the nodes with large facts. I

[Puppet Users] Right way to use hiera.yaml

2016-04-26 Thread Albert Shih
Hi everyone I would like to add some "category" inside the hiera.yaml meanning :hierarchy: - "%{::clientcert}" - "%{::operatingsystem}_%{::operatingsystemmajrelease}" - "%{::operatingsystem}" - MY_CATEGORY - common I check I can do that by puting node 'server' { $category="mything"

Re: [Puppet Users] Re: Puppet MultiMaster open source

2016-04-26 Thread Geoff Galitz
Thanks for your replies.. much appreciated. -G On Thu, Apr 21, 2016 at 3:40 PM, Ryan Anderson wrote: > This is possible, and it is not documented well. Different parts of > getting it to work are in different sections of the online documentation. I > got this working recently with these condi