[Puppet Users] Re: Puppet and RH "chkconfig"

2013-09-11 Thread Rahul Khengare
Hi Forrie, Puppet service resource *enable* property internally executes the chkconfig command for red hat, This property behaves quite differently depending on the platform; wherever possible, it relies on local tools to enable or disable a given service.You can confirm the facter *osfam

Re: [Puppet Users] Re: Is it possible to install actual OS using puppet?

2013-09-11 Thread Stuart Cracraft
One popular standard method is: + LDAP initial boot a box from Kickstart or equivalent deploying an appropriate basic OS image + Ensure the post-image-install script includes a puppet agent package and changes to let the box talk with a known puppet master and autostart the puppet agent

Re: [Puppet Users] Purge puppet's reports

2013-09-11 Thread Andrew G
hi dan, it applies only to any server with a shortform dnsname == puppet. the facter variable $hostname matches the puppet master server name. alternatively, remove the case statement, put it in it's own class and apply that class specifically to your puppetmaster server. Andrew On Thu, Sep 12,

[Puppet Users] Re: Is it possible to install actual OS using puppet?

2013-09-11 Thread Rahul Khengare
Hi Rastio, I dont think that puppet do operating system installation. Puppet is configuration management tool, you can use puppet to configure any software and operating system settings after puppet get install on your machine. For automatic installation of operating system there is tools cal

Re: [Puppet Users] Puppet and RH "chkconfig"

2013-09-11 Thread Forrest Aldrich
Puppet did not like that: Sep 12 01:08:18 my-server puppet-agent[10063]: Failed to apply catalog: Parameter ensure failed on Service[pcscd]: Invalid value "disabled". Valid values are stopped, running. at /etc/puppet/manifests/classes/disabled-services.pp:10 I changed it back to "ensure =>

Re: [Puppet Users] Puppet and RH "chkconfig"

2013-09-11 Thread Mike Delaney
The redhat provider for the service type does indeed use chkconfig to disable the service when enable is false. If that's not happening for you, there's something wrong. Some possibilities: * facter is misidentifying the OS, causing puppet to pick a different default provider. Does 'facter o

[Puppet Users] Re: getting array of hostnames of clients

2013-09-11 Thread Steve Wray
On Wednesday, 11 September 2013 22:50:59 UTC+8, jcbollinger wrote: > > > On Wednesday, September 11, 2013 2:49:50 AM UTC-5, Steve Wray wrote: >> >> I need to get an array of hostnames of clients of the puppet server. >> >> There doesn't seem to be a simple way to do this so I've tried a few >> me

Re: [Puppet Users] Puppet and RH "chkconfig"

2013-09-11 Thread Len Rugen
Try ensure disabled, On Sep 11, 2013 5:24 PM, "Forrie" wrote: > I've been trying to follow several threads around Google about Puppet and > it's use (or non-use) of chkconfig on RH Linux. > > What prompted me to do this is I noticed that Puppet is, correctly, > repeatedly logging that it is chang

[Puppet Users] Re: Resolving/ Expanding module puppet:/// URI in exec line

2013-09-11 Thread slafreniere
Ed, I am having trouble unzipping any tarball via Puppet. So I installed your module to see how you might have done it. It runs, it creates the javapath and copies the file... but I get the same error that I get on my modules... can I please ask how you made unzip work? I am on Ubuntu 10.4.1

[Puppet Users] Re: getting notrun to 0 error

2013-09-11 Thread slafreniere
whats the solution? I have the same problem... no unzip commands work. Ubuntu10.4.1 #Init.pp 2.6.4 (Puppet Enterprise 1.0) class apache-maven-v3 { # prepare local filesystem file { 'java_path': path => "/usr/local/java", ensure => directory,

[Puppet Users] Puppet ignores hiera completely

2013-09-11 Thread Guy Knights
I'm not sure at all what's going on here, but I've spent a lot of time reading over the puppet hiera docs and setting everything up, but when I run puppet agent it just seems to ignore the hiera setup completely. Both the puppet master and agent nodes have exactly the same versions of puppet an

[Puppet Users] Puppet and RH "chkconfig"

2013-09-11 Thread Forrie
I've been trying to follow several threads around Google about Puppet and it's use (or non-use) of chkconfig on RH Linux. What prompted me to do this is I noticed that Puppet is, correctly, repeatedly logging that it is changing a services from ON to OFF. Funny, I thought I had disabled that w

[Puppet Users] Java module woes

2013-09-11 Thread Nathan Nobbe
Hi everyone, Just getting into Puppet, so please bear with me :D I'm setting up a java module to keep an eye on the java installation on our RHEL machines. Quick background, RHEL ships openjdk, we need to use Oracle instead. I've gone ahead and put the latest oracle java6 RPM, * jre-6u45-linux-

[Puppet Users] when does 'updated_at' column get updated?

2013-09-11 Thread John Santana
Using centos 6 with puppet-2.6.17 with thin_storeconfigs with mysql and nagios exported resources. Every time an agent connects to the master, the updated_at column in the hosts table is updated. However, the updated_at column in the other tables is not updated even when I alter a nagios resour

Re: [Puppet Users] Looking for tips for transitioning to Puppet Enterprise

2013-09-11 Thread Dan White
OK. Lete me be more specific: I have a module to handle user accounts that relies on hiera: Accounts are defined at the lowest level of the hierarchy and instantiated (ensure => present) up at the node level of the hierarchy. The issue with this is that I am getting complaints from other team

Re: [Puppet Users] Custom Fact undefined in manifests

2013-09-11 Thread Denmat
Hi, Do you have stdlib module installed? http://puppetlabs.com/blog/module-of-the-week-puppetlabsstdlib-puppetlabs-standard-library-part-3 On 12/09/2013, at 1:12, David Thompson wrote: > On 9/11/13 8:54 AM, jcbollinger wrote: > >> Lack of response? This is a volunteer community forum, not a

Re: [Puppet Users] default data lookup w/ hiera2? "Data in Modules"

2013-09-11 Thread Henrik Lindberg
Thank you for the feedback, very good comments. See more inline... On 2013-11-09 11:02, robbyt wrote: I am reading over the release notes for Puppet 3.3, and buried under "data in modules" is a link to ARM-9. There is a good chance that I don't "get it" - Puppet is moving pretty fast these days

Re: [Puppet Users] Purge puppet's reports

2013-09-11 Thread Dan White
OK, but the reports live on the puppetmaster. How do you get a list of hostnames to apply to this resource definition ? On Sep 10, 2013, at 10:12 PM, Andrew wrote: > Using tidy to clean up logs, this is pretty self-explanatory, so I wont > bother explaining :) > > case $hostname { > /^pup

[Puppet Users] Nagios Puppet Module - Multiple Service File Permissions Issues

2013-09-11 Thread phundisk
I am using the nagios puppet module to create and manage services via stored configurations. The original module, stored all service cheks in one file and this was causing my puppet run on my nagios server to take 30+ minutes. I have read here ( http://pieter.barrezeele.be/2009/05/11/puppet-an

[Puppet Users] Looking for tips for transitioning to Puppet Enterprise

2013-09-11 Thread Dan White
I have bee using Open Source Puppet for about two years now -- and I have enjoyed the ride so far. I want to spin up a demo PE-Master because we are also spinning up a big VMWare driven virtualization push and I want to try the Cloud Provisioning. If it works for me as well as everything else

Re: [Puppet Users] Looking for tips for transitioning to Puppet Enterprise

2013-09-11 Thread Rich Burroughs
Dan, You can do those things from the PE console but you don't have to. You can assign classes to nodes the old school way too. It's really up to you whether you prefer to do those kinds of things through the UI or in your Puppet code. On Wednesday, September 11, 2013, Dan White wrote: > I hav

Re: [Puppet Users] puppetdb query not working as expected

2013-09-11 Thread hai wu
Hi Ken, Yes, using postgresql here. It turns out I have another script pushing facts (without custom facts) into puppetdb, which messed up with puppetdb query outputs. After fixing that script, things are ok now here. Thanks, On Wed, Sep 11, 2013 at 5:29 AM, Ken Barber wrote: > > Running pupp

[Puppet Users] Is it possible to install actual OS using puppet?

2013-09-11 Thread Rastio Hodul
Hi, ideally I would like to crate bootable USB stick with, say, Ubuntu + Puppet on it. I would then use this USB stick on a blank computer to boot to it and install new OS (Ubuntu+WhateverIWant) on that blank computer. I know I can do WhateverIWant part, but can I install actual OS? Thanks. --

[Puppet Users] Using Puppet for remote config management of offline machines?

2013-09-11 Thread Brad Smith
Hello all, I'm working with a Kenya-based non-profit (tunapanda.org) that uses OSS to provide computing resources to schools where bandwidth is either nonexistent or prohibitively expensive. We provide a customized Edubuntu/LTSP setup which will host local versions of useful online resources l

Re: [Puppet Users] Re: getting array of hostnames of clients

2013-09-11 Thread Dan White
http://docs.puppetlabs.com/references/latest/configuration.html#reportdir gives a list of certnames. I use FQDN for my certname, so ... “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.” Bill Waterson (Calvi

Re: [Puppet Users] Re: Offering "Puppet As A Service"

2013-09-11 Thread Josh Baird
Thanks for the detailed reply. I envision a setup similar to yours. We will be using Foreman for ENC, reporting, etc. The Foreman can already handle segregation of organizations/units/locations with ACLs very nicely so it should be a good fit for this type of scenario. In addition, we can easily

[Puppet Users] Re: Offering "Puppet As A Service"

2013-09-11 Thread Jeffrey Miller
Thanks for raising the question! One of the primary points I explored at this year's PuppetConf was to see what others were doing in this area and figure out what is possible with the puppet in its current state. Your mileage may vary on this... and keep in mind we are in the exploration stages

[Puppet Users] Re: getting array of hostnames of clients

2013-09-11 Thread jcbollinger
On Wednesday, September 11, 2013 2:49:50 AM UTC-5, Steve Wray wrote: > > I need to get an array of hostnames of clients of the puppet server. > > There doesn't seem to be a simple way to do this so I've tried a few > methods. > > I've tried a curl expression in a fact like this: > > curl -s -k -

Re: [Puppet Users] Custom Fact undefined in manifests

2013-09-11 Thread David Thompson
On 9/11/13 8:54 AM, jcbollinger wrote: Lack of response? This is a volunteer community forum, not a paid technical support service. Give it some time. No offense intended. I'm continually impressed by the effort made by the volunteers who watch this lists and provide so much help. Befor

Re: [Puppet Users] Custom Fact undefined in manifests

2013-09-11 Thread jcbollinger
On Wednesday, September 11, 2013 8:07:59 AM UTC-5, David Thompson wrote: > > On 9/10/13 5:49 PM, Denmat wrote: > > > On 11/09/2013, at 1:38, David Thompson > > > > > wrote: > > > >> I'm working with custom facts with facter 1.7.2. I've created a fact > >>

[Puppet Users] Re: Ordering and templates question/issue

2013-09-11 Thread jcbollinger
On Wednesday, September 11, 2013 8:35:07 AM UTC-5, jcbollinger wrote: > > males any difference > > "makes", that is. -- 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 em

[Puppet Users] Re: Ordering and templates question/issue

2013-09-11 Thread jcbollinger
On Tuesday, September 10, 2013 8:53:10 AM UTC-5, sjr wrote: > > Hi John, > > thanks for your answer, first of all I must say I just wanted to > experiment and learn, it's not like I'm going to put such "awful hacks" :-) > in productionmostly because I guess it's easy they can be changed ove

Re: [Puppet Users] Custom Fact undefined in manifests

2013-09-11 Thread David Thompson
On 9/10/13 5:49 PM, Denmat wrote: On 11/09/2013, at 1:38, David Thompson mailto:dthomp...@waisman.wisc.edu>> wrote: I'm working with custom facts with facter 1.7.2. I've created a fact file with an ntp configuration fact in it: # grep ntp_conf /etc/facter/facts.d/myfacts.txt puppet:///module

[Puppet Users] Offering "Puppet As A Service"

2013-09-11 Thread Josh
We have several internal customers that we would like to start offering "Puppet as a Service" to. Our central group would manage Puppet masters, ENC, etc. But, we want other independent groups to be able to use our Puppet services. Is anyone currently doing this? If so, how are you handling

[Puppet Users] Setting up an HA Puppet console using HAProxy

2013-09-11 Thread Steven James
Hi all, I'm trying to set up an HA Puppet 3 (PE3) console. My goal is to use HAProxy to present the puppet VIP, and have two load balance Puppet Masters in behind. My plan goes along the following lines. The first PM would be the active CA *and* console. Port 443 and 8140 will need to be handl

[Puppet Users] An assortment of 2.x agents out there...a Puppet 3 PM, and Satellite to lend a hand? Agent update / migration approach?

2013-09-11 Thread Steven James
Hi, We have a fairly large number of 2.x FOS puppet agents out there in RH5, 6 and Solaris 10 server land. We've just installed PE3 on RH6.4, and trying to work out how to migrate all of the agents across. We have a new Satellite in the mix to lend a hand if necessary. I'm curious to see how o

[Puppet Users] Puppet environments versus the PE console?

2013-09-11 Thread Steven James
Hi, I was wondering if it's possible to use (puppet.conf) environments within the classes in the PE console? I saw this link, but wondered if there had been any updates or other experiences from anybody? http://projects.puppetlabs.com/issues/6608 Thanks, Steven -- You received this message

[Puppet Users] hiera.yaml syntax required, for Puppet 3 lookup of files within a sudirectory

2013-09-11 Thread Steven James
Hi all, I'm having some issues getting hiera to check out a subdirectory in it's hierarchy, I've set a custom fact to reveal what my working environment is. Puppet 3 / PE3.0.1 i.e. facter -p my_env shows "test" My hiera.yaml has an extract like the following; :hierarchy: - defaults - "%{

Re: [Puppet Users] puppetdb query not working as expected

2013-09-11 Thread Ken Barber
> Running puppet only at around 4am once a day here. And I noticed that > puppetdb query not working as expected, if using it to query nodes based on > some custom fact value. > > During the days, things are working fine. But if I ran the same query at > around say 3am (searching nodes based on som

[Puppet Users] default data lookup w/ hiera2? "Data in Modules"

2013-09-11 Thread robbyt
I am reading over the release notes for Puppet 3.3, and buried under "data in modules" is a link to ARM-9. There is a good chance that I don't "get it" - Puppet is moving pretty fast these days and I am still trying to get caught up with all of the changes. I have only read the latest Puppet c

[Puppet Users] getting array of hostnames of clients

2013-09-11 Thread Steve Wray
I need to get an array of hostnames of clients of the puppet server. There doesn't seem to be a simple way to do this so I've tried a few methods. I've tried a curl expression in a fact like this: curl -s -k -H "Accept: yaml" https://localhost:8140/production/facts_search/search?facts.nodetype