Re: [Puppet Users] puppetdb question !!!

2014-06-11 Thread Rakesh K
Sorry for re-opening a old thread but I am still struggling on related topic.. Step 1: I am copying some .rb files to the /usr/lib/ruby/site_ruby/ruby/1.8/facter/ folder Step 2: A facter command gives me the values for all new custom / external facts But the values for new facts will not get

[Puppet Users] puppetdb command api !!!

2014-06-11 Thread Rakesh Kathpal
I am trying to execute the command api for puppetdb with the command "replace facts" curl -G -H "Accept: application/json" 'http://localhost:8080/v2/commands' --data-urlencode 'payload={"command":"replace facts","version": 2,"payload:{"name":"\"node_name\""}}' As output of the above command just

Re: [Puppet Users] trying to install jdk1.7 using rpm in a different directory

2014-06-11 Thread Supriya Uppalapati
Hi, The answer for installing java using rpm in different locations is class java_rpm { $version = 'jdk-7u25-linux-x64.rpm' package { $version: provider => rpm, #exec {"$version": install_options => ['-vh','--prefix=/u01/app/oracle/product/java'], #owner => oracle, #group => oinstall, #mode

Re: [Puppet Users] trying to install jdk1.7 using rpm in a different directory

2014-06-11 Thread jcbollinger
On Wednesday, June 11, 2014 7:03:16 AM UTC-5, Supriya Uppalapati wrote: > > Hi, > > The answer for installing java using rpm in different locations is > class java_rpm { > $version = 'jdk-7u25-linux-x64.rpm' > package { $version: > provider => rpm, > #exec {"$version": > install_options =>

Re: [Puppet Users] puppetdb question !!!

2014-06-11 Thread Ken Barber
> Sorry for re-opening a old thread but I am still struggling on related > topic.. > > Step 1: I am copying some .rb files to the > /usr/lib/ruby/site_ruby/ruby/1.8/facter/ folder > Step 2: A facter command gives me the values for all new custom / external > facts > > But the values for new facts

[Puppet Users] Re: Help: OpenSource Puppet DB install on RedHat 6

2014-06-11 Thread jcbollinger
On Tuesday, June 10, 2014 3:18:23 PM UTC-5, GregC wrote: > > I cannot get around the problem of connecting my Puppet Master 3.6 to > PuppetDB 2.0.1 THis is the opensource version. > > I installed the puppet and puppetdb from rpm packages. > I continually get this error: > > Warning: Unable

Re: [Puppet Users] puppetdb command api !!!

2014-06-11 Thread Ken Barber
I posted this in the other thread, but this is a working example of how to submit facts in Ruby: https://gist.github.com/kbarber/6190c64335613111c9df. I'd start there, and post any problems/errors you have. On Wed, Jun 11, 2014 at 8:51 AM, Rakesh Kathpal wrote: > I am trying to execute the comman

Re: [Puppet Users] Help: OpenSource Puppet DB install on RedHat 6

2014-06-11 Thread Ken Barber
+1 ... the key error here is "connection refused". Which is a pretty common networking error, and as an admin should you get to know about this error intimately, it happens everywhere (not just PuppetDB). What it implies is that you've received back an ICMP response from the host implying that the

Re: [Puppet Users] puppetdb question !!!

2014-06-11 Thread Ken Barber
My colleague Deepak just brought to my attention another mechanism which works like option #3 without the hard work: puppet facts upload But you'll need to ensure your auth.conf on your puppet master has a snippet like the following: path ~ ^/facts/([^/]+)$ method save allow $1 Without it, you'

[Puppet Users] Using Puppet to roll out Windows Updates

2014-06-11 Thread Pskov Shurik
Hello everyone, We have recently started using Puppet to do initial system prep on new servers, such as Apache, Java installs, hosts file updates etc. However, we are now exploring the possibility of extending Puppet to manage Windows Updates. Er... has anyone done it? The requirements are si

Re: [Puppet Users] Extracting gzipped sql archive, importing and finally deleting

2014-06-11 Thread Nikola Petrov
On Fri, Jun 06, 2014 at 07:30:56AM -0700, Richie wrote: > > > I'm a little stuck with a puppet manifest due to the declarative nature of > things and it's taking some time for the concept to fully sink in so could > someone guide me in the right direction here (if this is the correct route > o

Re: [Puppet Users] Using Puppet to roll out Windows Updates

2014-06-11 Thread Brian Mathis
Why not use WSUS? This is what it's made for, it's already part of Windows, and can be easily managed from the WSUS console. Once you're operating in a Windows world, your life will be far better by doing things the "Windows Way" instead of resisting it. Sounds like a case of: "*if the only tool

[Puppet Users] How's life with 3.6.2?

2014-06-11 Thread Christopher Wood
I only notice three issues where "Affects Version: 3.6.2". Have any of you upgraded to 3.6.2 yet? If so, where did you upgrade from and how's life now? https://tickets.puppetlabs.com/browse/PUP-2752?jql=affectedVersion%20%3D%20%223.6.2%22 (I'm probably doing this on our dev puppetmasters tomorro

Re: [Puppet Users] Using Puppet to roll out Windows Updates

2014-06-11 Thread Alex Scoble
You could use Puppet to manage WSUS though using stuff like PoshWSUS https://poshwsus.codeplex.com/ On Wednesday, June 11, 2014 11:55:51 AM UTC-7, Brian Mathis wrote: > > Why not use WSUS? This is what it's made for, it's already part of > Windows, and can be easily managed from the WSUS consol

Re: [Puppet Users] How's life with 3.6.2?

2014-06-11 Thread Pete Brown
I decided to put puppet,hiera and facter versions into my base profile so upgrades are tested in my dev environment and then pushed out to production when I am happy. 3.6.2 is also a security release so I (and you very likely) want it (and the relevant ssl fixes) pushed out asap. I also just added

Re: [Puppet Users] What is the puppet way to do if I want to customize run interval of a special module

2014-06-11 Thread Rich Burroughs
This is the best answer, in my opinion. Spencer has it totally right. Puppet is not a substitute for scripting languages and cron. Think of it as a way to enforce a desired configuration of a node at any given moment. Things that fall outside of that are probably better candidates for other tools.

Re: [Puppet Users] Using Puppet to roll out Windows Updates

2014-06-11 Thread Gregory Orange
On 12/06/14 02:55, Brian Mathis wrote: Once you're operating in a Windows world, your life will be far better by doing things the "Windows Way" instead of resisting it. Unless it yields a natural path toward Windows machines and services proliferating despite you (perhaps) not wanting that. If

[Puppet Users] installation of open stack using puppet

2014-06-11 Thread devaki prabhu
Hi, I want to install open stack packages using puppet. When i execute the command " puppet module install puppetlabs/openstack" on master and include keystone class ( for example) in the puppet client , the error as keystone class not found is coming. Can you please guide me getting the issue