Re: [Puppet Users] installing puppetdb on Debian 6 [wheezy]

2014-05-20 Thread Christopher Wood
What's the error message? On Tue, May 20, 2014 at 03:22:24PM -0400, Peter Berghold wrote: >Hi folks, >Attempting to install puppetdb on Debian 6 and have run into a bit of a >roadblock. >It's complaining that java7 is not on the system and yet: >:/usr/lib/jvm# java -version >

Re: [Puppet Users] Debugging manifests with Future Parser

2014-05-20 Thread Christopher Wood
If you run your puppetmaster in the foreground with debug enabled it might tell you more. (You'll have to stop the usual daemon first, and run it as the usual user not root.) puppet master --debug --no-daemonize 2>&1 | tee /var/tmp/pm1.log Also use --config in there if you need it, of course.

Re: [Puppet Users] installing puppetdb on Debian 6 [wheezy]

2014-05-20 Thread Christopher Wood
llowing packages have unmet dependencies: > puppetdb : Depends: java7-runtime-headless but it is not installable or >                     j2re1.7 but it is not installable >E: Broken packages > >On Tue, May 20, 2014 at 3:41 PM, Christopher Wood ><[1]christopher_w

Re: [Puppet Users] Debugging manifests with Future Parser

2014-05-20 Thread Christopher Wood
serverLoop { $enc_api::servers: } >Has the behavior altered for define's? >Jason >On Tuesday, May 20, 2014 4:05:33 PM UTC-4, Christopher Wood wrote: > > If you run your puppetmaster in the foreground with debug enabled it > might tell you more

Re: [Puppet Users] Monitoring an apache/passenger puppetmaster setup?

2014-05-23 Thread Christopher Wood
ernal Server Error' | wc -l` On Wed, Mar 05, 2014 at 10:29:14AM -0500, Christopher Wood wrote: > How do you monitor your apache/passenger-fronted puppetmaster to find out > when it's down? > > As backstory, we have a chaos monkey sort of cron job randomly kill-9'ing >

Re: [Puppet Users] Squeeze and Wheezy

2014-05-28 Thread Christopher Wood
Try the lsbdistdescription fact. You'll need to install lsb-release to get it though. On Wed, May 28, 2014 at 01:37:11AM -0700, AAB !! wrote: >Hi, > I want the puppet agent to check replace some file if the OS is debian >squeeze and if it is debian wheezy then these changes should not

Re: [Puppet Users] Tracking orphaned resources

2014-05-29 Thread Christopher Wood
Not that I've heard of such a tool, but if you archived catalogs somewhere you could compare the lists of resources over time. Or you could turn on catalog hash debugging to grab the current/previous catalog for the same technique: http://docs.puppetlabs.com/puppetdb/latest/trouble_low_catalog_d

Re: [Puppet Users] Hiera / YAML Hash question

2014-05-29 Thread Christopher Wood
Sounds like you want @servers[@hostname]['node'] ? If you want to match on the ip address that sounds like you'd have to loop over it or build an ip=>hostname mapping. http://docs.puppetlabs.com/guides/templating.html#referencing-variables On Thu, May 29, 2014 at 08:08:53AM -0700, Christopher F

[Puppet Users] params.pp/inheritance/defaults/hiera/hiera functions?

2014-05-29 Thread Christopher Wood
(I'm not sure how to phrase my question precisely, so this may not all be totally clear.) Has anybody else successfully moved away from using params.pp and default values, and if so, what did you do and how did it go? If not, what made you go back? The only answer I can come up with is to stop

Re: [Puppet Users] params.pp/inheritance/defaults/hiera/hiera functions?

2014-05-30 Thread Christopher Wood
ther >check your parameters have been supplied correctly. I hadn't thought of that! This will be a useful Friday activity in the dev repo. >Don't set default values to anything that is inappropriate.  If you don't >want a default for your SuperDaemon config

Re: [Puppet Users] Puppet 3.4.3 - Ruby in ERB

2014-05-30 Thread Christopher Wood
Templates are evaluated on the puppetmaster, so <% puts "hello" %> happens entirely on the puppetmaster and substitutes no text. Any reason why the first one doesn't use (<%=)? I wouldn't expect it to work as you have it. "This tag will execute the code it contains, but will not be replaced by

Re: [Puppet Users] Problem, with Vagrant and Puppet

2014-06-09 Thread Christopher Wood
On Mon, Jun 09, 2014 at 01:44:20AM -0700, Almudena Soblechero Garcia wrote: >Good morning, I' m Almudena, it's my first question in these group, and my >english, it'snt good, i apologize > >I have a problem with vagrant and puppet. > >The problem, its with de certificates, puppetd

[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] How's life with 3.6.2?

2014-06-12 Thread Christopher Wood
added a versioned ssl class to my profiles to make that even > easier. > > On 12 June 2014 06:40, Christopher Wood wrote: > > 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 a

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

2014-06-12 Thread Christopher Wood
ollective and puppet Editorially, this was very relaxing and I should have saved it for Friday afternoon. On Thu, Jun 12, 2014 at 07:48:24AM -0400, Christopher Wood wrote: > That's why I'm upgrading (otherwise 3.4.3 works for me), but I will have a > hard time justifying any

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

2014-06-12 Thread Christopher Wood
eport, we use mcollective so it will be very useful! > >Have you found any performance issue? I'm worried about that because our >current puppet master is currently a bit overloaded. > >Thanks, > > El 12/06/2014 18:38, "Christopher Wood" <[1]christop

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

2014-06-13 Thread Christopher Wood
ve > been running for a while. > > All my code gets the bugs tested out of it on base vms before it gets > pushed into production. > > > > On 13 June 2014 02:38, Christopher Wood wrote: > > Verdict: Went fine with the usual upgrade teething troubles. (Once I > &

Re: [Puppet Users] What is the puppet way to send configuration details along with the request from the puppet ?

2014-06-16 Thread Christopher Wood
It sounds like you want to use facts to make decisions about what configurations to apply: http://docs.puppetlabs.com/puppet/latest/reference/lang_facts_and_builtin_vars.html http://docs.puppetlabs.com/guides/custom_facts.html The usual caveat here tends to be that you should be telling the host

Re: [Puppet Users] Puppet: Dependency cycle

2014-06-18 Thread Christopher Wood
Also see these for interesting ideas: http://www.craigdunn.org/2012/05/239/ http://garylarizza.com/blog/2014/02/17/puppet-workflow-part-1/ http://garylarizza.com/blog/2014/02/17/puppet-workflow-part-2/ In your place, this is how I would arrange what you want, because I often cram configs togeth

Re: [Puppet Users] create_resources with hiera

2014-06-19 Thread Christopher Wood
The "template('tomcat/context.xml.erb')" is taken as a literal string when read from hiera. In this case you might wrap the file in a define to use the puppet template() function: define mymodule::hieratesting ( $content ) { file { $name: content => template($content), } } create_resour

Re: [Puppet Users] Stop and Start Services running on Puppet Master or Agent Machine

2014-06-20 Thread Christopher Wood
Roughly speaking the service name is the init script name, so if you would manually stop/stop with /etc/init.d/java, then your service name in puppet is also java. node "servername" { Service { "java": ensure = >"Stopped", } } Using "Resource" (initial capital) instead of "resource" (a

Re: [Puppet Users] Puppet newbie, Apache vHosts, and trying to do it the right way

2014-06-22 Thread Christopher Wood
Short version: read up on hiera, data bindings, and create_resources. Details: It sounds like you might want to look into hiera (baked into puppet 3 and higher) and the create_resources function. Specifically that you list the variable portions of things in your puppet configuration in hiera, a

Re: [Puppet Users] Puppet newbie, Apache vHosts, and trying to do it the right way

2014-06-22 Thread Christopher Wood
only confuse me more. (Not that those docs are probably not good - >it's just that I'm not sure I'm the target audience - yet.) >How would somebody accomplish this before Hiera was around?  > >On Sunday, June 22, 2014 2:45:52 PM UTC-4, Christopher Wood wrote: >

Re: [Puppet Users] Puppet newbie, Apache vHosts, and trying to do it the right way

2014-06-23 Thread Christopher Wood
itions, but there's got to be a better >place for it to go. Where would the "proper" place be for it to go? >Many thanks for your responses. They've been very helpful. > >On Sun, Jun 22, 2014 at 9:52 PM, Christopher Wood ><[1]christopher_w...@

Re: [Puppet Users] Puppet newbie, Apache vHosts, and trying to do it the right way

2014-06-23 Thread Christopher Wood
might look like. I think it'd be easier for folks like me who >are super new to it to be able to look and see how someone might have >implemented it. Obviously there's a million ways to accomplish an >implementation, but at least it'd be great to see somethin

Re: [Puppet Users] rpm exits 0 on scriptlet failure

2014-07-02 Thread Christopher Wood
This is where my mileage varies from yours; I would have the rpm install files and leave the data munging to an exec or type/provider where the error will show through to puppet. I don't see a puppet issue here, in the same manner that a bug in an init script is not a puppet service (type) issue

Re: [Puppet Users] Regarding Service elements in init.pp

2014-07-03 Thread Christopher Wood
In your place I would merge those two into a single init script with the usual lsb-ish start+stop+restart+status that puppet's service type/provider expects. They both control the same service and thus should be defined in a single resource. On Thu, Jul 03, 2014 at 05:53:01AM -0700, Satish Katu

Re: [Puppet Users] Get puppet agents

2014-07-03 Thread Christopher Wood
Check the list of signed certs and read your puppetmaster logs (or check reports in /var/lib/puppet/reports, or check reports in puppetdb) to see when they last checked in. puppet cert list -a http://docs.puppetlabs.com/guides/reporting.html On Thu, Jul 03, 2014 at 06:29:19AM -0700, Yugank Pan

Re: [Puppet Users] Get puppet agents

2014-07-04 Thread Christopher Wood
Check network connections? netstat -taunp | grep 8140 On Fri, Jul 04, 2014 at 02:21:32AM -0700, Yugank Pandey wrote: > But doing so gives only the puppet agents that have had a successful > connection (authorized certificates in past) with the master and the > reports just includes

Re: [Puppet Users] templatizing a configuration file

2014-07-04 Thread Christopher Wood
If I were implementing this I would put a list of files in hiera and have my template dump the list into my file. My untested example is below. Hiera: --- psconfs: - al-runtime.conf - al-ldap.conf - al-cluster.conf Puppet class (puppet 3 or higher): class psthing ($psconfs = []) { file

Re: [Puppet Users] Editing fstab with Augeas

2014-07-10 Thread Christopher Wood
On Wed, Jul 09, 2014 at 04:18:37PM -0700, Kim Scarborough wrote: >>> My Augeas approach works, I'm just having the one problem where I can't >get > > > it to apply to more than one mount line per run. > > It might work but it is probably better to manage the whole mount with >

Re: [Puppet Users] how to puppet and diff without fqdn

2014-07-10 Thread Christopher Wood
I confess I might not understand the question as phrased. It seems like you want to declare nodes by uuid not hostname. If so, you might want to set their certname to that uuid: http://docs.puppetlabs.com/references/latest/configuration.html#certname As part of the provisioning step you'd proba

Re: [Puppet Users] How can I use mcollective with fqdns?

2014-07-16 Thread Christopher Wood
Perhaps use a regex, depending on your naming? mco ping -F 'hostname=/dev[12]/ Or a compound filter. mco ping -S 'hostname=dev1 or hostname=dev2' If you're using something other than ping you might feed it a list of nodes via --nodes, but I'm not getting any responses via the node list right n

Re: [Puppet Users] Best Practice - replacing /etc/passwd and +@netgroups

2014-07-16 Thread Christopher Wood
Um, why? There are more regularized methods of RBAC than touching /etc/passwd. For my part I'd rather keep hosts as similar as possible and have authentication controlled elsewhere. That way I have complex manifests about user authentication on a subset of hosts, and simplified auth client manif

Re: [Puppet Users] Re: puppet md5 checksum changed

2014-07-24 Thread Christopher Wood
I was vaguely nosy, and found a note that the checksum is stored in state.yaml. Maybe stop puppet, nuke the state file, and start puppet? http://puppetlabs.com/blog/all-about-auditing-with-puppet /var/lib/puppet/state/state.yaml NB: Untested advice, potentially dangerous, use at your own risk.

Re: [Puppet Users] Re: scheduling refresh event BEFORE dependent object

2014-07-28 Thread Christopher Wood
On Mon, Jul 28, 2014 at 06:56:08AM -0700, Dimitris Stafylarakis wrote: >Hi people, > >thanks for your replies. My actual case is run apt-get update before >upgrading a package. So I have packages in my own repository and I'm >managing them through puppet on the production server. I

Re: [Puppet Users] increasing frequency of puppet agent runs during initial deployment?

2014-07-28 Thread Christopher Wood
On Mon, Jul 28, 2014 at 12:53:03PM -0400, markbergman...@gmail.com wrote: > I'm beginning to use Puppet, and I'm looking for suggestions for the > best way to have 'puppet agent' run very frequently during the initial > deployment phase on a new server. > > In our environment, there's one local pu

Re: [Puppet Users] issue understanding site modules

2014-07-28 Thread Christopher Wood
On Mon, Jul 28, 2014 at 11:54:34AM -0700, Wijnand Wiersma wrote: >Hi all, >I am a bit in distress right now. I have to replicate a dead puppet server >on a new server. I have all hiera files and manifests etc in git but I am >not able to get a new puppet server to compile catalogs.

Re: [Puppet Users] increasing frequency of puppet agent runs during initial deployment?

2014-07-28 Thread Christopher Wood
On Mon, Jul 28, 2014 at 03:20:04PM -0400, Christopher Wood wrote: (Hm, true/false reversed here. Test first!) > if str2bool($::donefact) { > $minute = '*' > } > else { > $minute = '30' > } -- You received this message because you are subscribed to t

Re: [Puppet Users] unable to detect source attribute.

2014-07-29 Thread Christopher Wood
On Tue, Jul 29, 2014 at 10:35:30AM -0700, Supriya Uppalapati wrote: >Hi, >My code is unable to find source attribute. even though i specified it >correctly. >Here is my error >Error: Could not retrieve catalog from remote server: Error 400 on SERVER: >Invalid parameter sourc

Re: [Puppet Users] Hiera not expanding $operatingsystem variable

2014-07-30 Thread Christopher Wood
On Wed, Jul 30, 2014 at 08:47:23PM +0100, Karolis Pabijanskas wrote: >Thanks! I knew it was something simple! I just did not restart the puppet >master that was all.. hiera works fine with or without the quotes >though and they are not required. I've had some troubles using all-num

Re: [Puppet Users] Set ACLs on Files Logstash Must Monitor

2014-08-04 Thread Christopher Wood
I haven't done it, but in your situation I would do something generically like this: ls | create_yaml_array.rb >/path/to/hiera/nodes/myserver.yaml --- cats: concat1: bits: - bit1 - bit2 - bit3 path: '/path/to/file1' Then add a define somewhere to use with create

Re: [Puppet Users] More admins using the same master

2014-08-05 Thread Christopher Wood
Off the top of my head, have them commit/push to the same git repository where that repository is checked out by the puppetmaster. You can give them each a VM to test their own stuff, where they'll also find out how their manifests interact with the whole picture. Keeping them in their own littl

Re: [Puppet Users] jenkins workflow

2014-08-06 Thread Christopher Wood
Also check to see that your templates compile and that ruby can read all your yaml files without erroring? We just have the checks which we run intermittently, currently there's no snazzy integration beyond jenkins failing a run and us getting a sad email, and I have other priorities right now.

Re: [Puppet Users] Install MCollective -- What are the basic components?

2014-08-07 Thread Christopher Wood
I found I learned more about how to install mcollective by reading the puppet module along with the docs, plus with the module it's a reasonably easy install. https://forge.puppetlabs.com/puppetlabs/mcollective On Thu, Aug 07, 2014 at 08:31:41AM -0700, Stella wrote: >Hi Johan, > >Than

Re: [Puppet Users] hiera variable problem

2014-08-07 Thread Christopher Wood
Run your puppetmaster in debug mode to see what's happening in detail. If that doesn't give you any hints, strace the process. Somewhere in one of those you will see what's going on. su - puppet puppet master --config /etc/puppet/puppet.conf --debug --no-daemonize 2>&1 | tee /var/tmp/pm1.log st

Re: [Puppet Users] Install MCollective -- What are the basic components?

2014-08-07 Thread Christopher Wood
7;t see it being mentioned there. I just need the most basic function >for a demo. Is the Mcollective module enough? > >Thanks a million! > >On Thursday, August 7, 2014 11:36:03 AM UTC-4, Christopher Wood wrote: > > I found I learned more about how to ins

Re: [Puppet Users] Install MCollective -- What are the basic components?

2014-08-07 Thread Christopher Wood
:   mcollective server > > 4. Install Mcollective agent plugins >     yum install mcollective-filemgr-agent >     yum install mcollective-nettest-agent >     yum install mcollective-package-agent >     yum install mcollective-service-agent >   >

Re: [Puppet Users] MCollective Puppet Agent Not Working?

2014-08-08 Thread Christopher Wood
Things to check: Have you installed the mcollective-puppet-agent package on the server and restarted mcollective there? Have you installed mcollective-puppet-client on the client? If you check your package list, some (not all) of the plugins have a separate -client package which you need for y

Re: [Puppet Users] puppet slave start up script

2014-08-10 Thread Christopher Wood
Possibly you mean this thing? https://forge.puppetlabs.com/puppetlabs/cloud_provisioner On Sat, Aug 09, 2014 at 08:45:17PM -0700, Dennis Gearon wrote: >Of all the modules that should have been written first, I would think that >a 'puppet slave' would be hi on the list. > >Isn't there

Re: [Puppet Users] PE 3.3 - Could not find class

2014-08-10 Thread Christopher Wood
Run your puppetmaster with --debug --no-daemonize and see what it has to say about trying to find the index.pp in that module. That may give some hints. Not sure about PE having not used it, but I would: su - puppet puppet master --debug --no-daemonize On Sun, Aug 10, 2014 at 01:14:47PM -0700,

Re: [Puppet Users] Re: PE 3.3 - Could not find class

2014-08-10 Thread Christopher Wood
Once you've started the puppetmaster under --debug, you would connect with your agent and see what the puppetmaster has to say about things. However, I do notice this part: > [root@dpupmstr4901 manifest]# puppet config print modulepath > /etc/puppetlabs/puppet/modules:/opt/puppet/share

Re: [Puppet Users] remote command execution from puppet dashboard ?

2014-08-11 Thread Christopher Wood
Puppet isn't really designed for real-time orchestration. Possibly you want to look into mcollective? http://puppetlabs.com/mcollective It will get you this sort of thing, and more (what OS are all my systems on the dev collective running?): $ mco facts operatingsystem Report for fact: operati

Re: [Puppet Users] Host inventory and management application?

2014-08-14 Thread Christopher Wood
This might give you some: http://puppetlabs.com/mcollective In your situation I would get puppetdb on all puppetmasters and wait until after the next set of agent runs to query it/them. On Thu, Aug 14, 2014 at 09:09:12AM -0700, Atom Powers wrote: >I have a mix of hosts with several OSs and m

Re: [Puppet Users] How can managed directory be updated after an rpm is upgraded?

2014-08-14 Thread Christopher Wood
If somebody came to me with this question at work, I'd ask why they aren't already managing the files in the directory to eliminate this dependency. There's no "refreshonly" for files like there is for execs per the type list, so you're out of luck there ("not all types can refresh"). https://d

Re: [Puppet Users] Restart ssh daemon when sshdconfig is modified

2014-08-15 Thread Christopher Wood
Could also go for: File["/etc/ssh/sshd_config"] -> Augeas["my-ssh"] File["/etc/ssh/sshd_config"] ~> Service["$ssh_service"] Augeas["my-ssh"] ~> Service["$ssh_service"] A bit wordier but it covers what happens when the file is changed but augeas has nothing to change. Vikas, perhaps you might us

Re: [Puppet Users] How can we find out the directory presence?

2014-08-18 Thread Christopher Wood
This is generally the reason that you need something like puppet, that you want to enforce a configuration. If you need to detect things about a server, there are a number of things you can do: a) monitoring (snmp?) check invoking a custom script, script detects the dir b) use something like mc

Re: [Puppet Users] How can we find out the directory presence?

2014-08-18 Thread Christopher Wood
On Mon, Aug 18, 2014 at 01:48:55PM -0700, Wil Cooley wrote: >On Mon, Aug 18, 2014 at 10:01 AM, Christopher Wood ><[1]christopher_w...@pobox.com> wrote: > > This is generally the reason that you need something like puppet, that > you want to enforce a config

Re: [Puppet Users] file_line match with spaces

2014-08-19 Thread Christopher Wood
On Tue, Aug 19, 2014 at 08:01:40AM -0700, Helen Paterson wrote: >Hi, >I cannot get the regex to work in puppet for "file_line" it work in a >regex tool > file_line { "applicationHost.config": >            ensure  =>  'present', >            path    => > 'c:/windows/sysna

Re: [Puppet Users] Re: Could not connect via HTTPS to https://forgeapi.puppetlabs.com when downloading a module

2014-08-19 Thread Christopher Wood
Both of you may need the ca-certificates rpm. When I unpack this I can verify the cert on the other end: $ pwd /tmp/zz $ rpm2cpio ~/files/downloads/ca-certificates-2013.1.94-65.0.el6.noarch.rpm | cpio -id Then this gives me "Verify return code: 0 (ok)" (faking the directory since it's a Debian

Re: [Puppet Users] Error 400: Could not find declared class (consistently)

2014-08-20 Thread Christopher Wood
On Wed, Aug 20, 2014 at 06:13:56AM -0700, Lutz Behnke wrote: >Hi there, > >I am getting the following error on one of my client machines: > >Error: Could not retrieve catalog from remote server: Error 400 on SERVER: >Puppet::Parser::AST::Resource failed with error ArgumentError: C

Re: [Puppet Users] Re: How can we find out the directory presence?

2014-08-20 Thread Christopher Wood
That might work if you were compiling the catalog on the server where the catalog will be applied. Functions/templates are run during catalog compilation so this will not find a directory on a pure-agent node. https://docs.puppetlabs.com/learning/templates.html https://docs.puppetlabs.com/guides

Re: [Puppet Users] Facts as arrays?

2014-08-25 Thread Christopher Wood
On Mon, Aug 25, 2014 at 12:01:03PM -0400, Peter Berghold wrote: >Hi,  >I'm studying the custom facts examples and I noticed that facts tend to be >scalars. (Perl speak)  >Are they ever arrays?  For instance I want to write a custom fact that >parses the /etc/fstab and returns th

Re: [Puppet Users] Facts as arrays?

2014-08-25 Thread Christopher Wood
            i = i+1 >                end >        mountedfs >        end >end >ok... so why doesn't mounted_fs show up in facts?  what am I missing?  (my > first fact as a matter of fact) > >On Mon, Aug 25, 2014 at 12:19 PM, Christopher Wood ><[

Re: [Puppet Users] Order preference for defines

2014-08-27 Thread Christopher Wood
Ordering! https://docs.puppetlabs.com/learning/ordering.html https://docs.puppetlabs.com/puppet/latest/reference/lang_relationships.html https://docs.puppetlabs.com/references/latest/metaparameter.html Probably a "requires => Iis::Manage_Site['Default Web Site']," in the Manager site thing below

Re: [Puppet Users] Re: Announce: Facter 2.2.0

2014-08-28 Thread Christopher Wood
On Thu, Aug 28, 2014 at 08:13:21AM -0700, Matt Wise wrote: >I'll start out by saying that we've worked around the problem ... but, >when you're operating in cloud and constantly booting new machines, >dependencies like Facter are rarely explicitly versioned. That is to say, >often y

Re: [Puppet Users] Style - hiera/params/puppet/template

2014-09-04 Thread Christopher Wood
On Mon, Sep 01, 2014 at 12:34:50PM +0530, Sirtaj Singh Kang wrote: > > On Monday 01 September 2014 05:39 AM, Atom Powers wrote: > >Poli, that doesn't really solve the problem since the variable > >values could still come from many places. (Puppet also does some > >of that lookup automatically, alt

Re: [Puppet Users] simple module logic help

2014-09-04 Thread Christopher Wood
On Thu, Sep 04, 2014 at 11:06:44AM -0700, Bogdan Baba wrote: >H Guys, >I'm kind of new to puppet and programming I've made  a few simpler modules >so far but  i'm trying to expand and build them better and i think i'm >hitting my "i don't get programming logic bar". >For example

Re: [Puppet Users] MCollective puppet runonce and puppet agent daemon conflict?

2014-09-05 Thread Christopher Wood
On Fri, Sep 05, 2014 at 11:46:14AM -0700, Stella wrote: >Hi, > >I am using open source Puppet 3.6.2 with Dashboard and Mcollective. > >If I have puppet agent running and then from puppet master I run "mco >puppet runonce --server puppetmaster_name", I will get this error: >Can

Re: [Puppet Users] Best method to query role specific data when using roles/profiles + hiera as an ENC

2014-09-09 Thread Christopher Wood
On Tue, Sep 09, 2014 at 02:34:52AM -0700, JeremyCampbell wrote: > We are implementing the profiles/roles pattern with hiera and using hiera >to assign roles i.e. hiera_include('classes'). Current hierarchy: > >:hierarchy: >  - "%{clientcert}" >  - "%{environment}" >  - g

Re: [Puppet Users] Information about puppet

2014-09-10 Thread Christopher Wood
On Wed, Sep 10, 2014 at 04:31:17PM +0530, rahul kinge wrote: >Hi, > >I'm a new in puppet. When I run puppetd -t command on client side file  >created but file data not updated on client side. > >So please suggest me what should i do. You may want to start with this thing, to get

Re: [Puppet Users] Need help understanding puppet output

2014-09-11 Thread Christopher Wood
On Thu, Sep 11, 2014 at 08:38:04AM -0700, Mark Lybrand wrote: >Resending to correct garbled subject line. > >On Sep 11, 2014 5:36 AM, "Mark Lybrand" <[1]mlybr...@gmail.com> wrote: > > I am trying to use puppet to provision a vagrant box and am trying to > understand the output.

Re: [Puppet Users] Need help understanding puppet output

2014-09-12 Thread Christopher Wood
give me more info.  I will look into how to do > that either in my vagrantfile or in my pp.  Also pastebin is good. I got > nothing confidential going on.  Thanks for the input. > > Mark > > On Sep 11, 2014 8:42 AM, "Christopher Wood" > &

Re: [Puppet Users] Automatically cleaning up if a class/define is no longer used (related to purging unmanaged resources)

2014-09-22 Thread Christopher Wood
On Mon, Sep 22, 2014 at 02:04:57PM -0500, Vladimir Brik wrote: > Hello, > > I have a question about automatically cleaning configuration if the > class/define that generated it is no longer used. > > For example, I have a number of logging daemons that I would like to > be able to disable automat

Re: [Puppet Users] How to make puppet *fail* on "Unable to fetch my node definition, but the agent run will continue" ?

2014-09-23 Thread Christopher Wood
It's a bit unintuitively named (for my values of intuition), maybe this helps? https://docs.puppetlabs.com/references/latest/configuration.html#usecacheonfailure On Tue, Sep 23, 2014 at 08:26:22AM -0700, Robin Lee Powell wrote: > > So right now, puppet is doing this because of DNS issues: > >

[Puppet Users] puppet certificate generate without host csr

2014-09-24 Thread Christopher Wood
Per the mcollective deploy docs, I'm trying to use 'puppet certificate generate' to send a csr for one user. Puppet tries to generate a csr for the host as well as the user. There are tickets. https://tickets.puppetlabs.com/browse/PUP-2018 https://tickets.puppetlabs.com/browse/PUP-3178 Has anyb

Re: [Puppet Users] Can Exec notify File?

2014-09-25 Thread Christopher Wood
Not possible in the way you've phrased it. If you're trying to only manage a file if something is or is not true you might look into custom facts. https://docs.puppetlabs.com/facter/2.2/custom_facts.html Then you do something like: if $::myfact == 'yes' { file { '/path/to/file': content =

Re: [Puppet Users] puppetdb and oracle java

2014-09-26 Thread Christopher Wood
The puppetdb rpm requires: java-1.7.0-openjdk In your place I'd see if creating a stub rpm with that name will satisfy the requirement. By "stub" I mean a /usr/share/doc/java-1.7.0-openjdk/README file explaining that there's a method to this rpm's madness. ;) I'd try it, but it's bash cve day

Re: [Puppet Users] Arbitrary facts - Best practices?

2014-09-26 Thread Christopher Wood
In your place I'd add a level to my hiera setup and template the bird config. There's a number of different options you could use to classify which node is in which site, from the node yaml in hiera to an ENC to a fact provisioned when the host is built. On Fri, Sep 26, 2014 at 11:17:02AM -0700

Re: [Puppet Users] Arbitrary facts - Best practices?

2014-09-26 Thread Christopher Wood
On Fri, Sep 26, 2014 at 01:00:44PM -0700, Ciro Iriarte wrote: >El viernes, 26 de septiembre de 2014 15:21:19 UTC-4, Christopher Wood >escribió: > > In your place I'd add a level to my hiera setup and template the bird > config. > > There's a

Re: [Puppet Users] Arbitrary facts - Best practices?

2014-10-02 Thread Christopher Wood
On Thu, Oct 02, 2014 at 07:18:24AM -0700, Ciro Iriarte wrote: >El viernes, 26 de septiembre de 2014 15:21:19 UTC-4, Christopher Wood >escribió: > > In your place I'd add a level to my hiera setup and template the bird > config. > > There's a

Re: [Puppet Users] Re: Dependency cycle using tidy with puppet 3

2014-10-02 Thread Christopher Wood
On Thu, Oct 02, 2014 at 01:39:09AM -0700, Chris Lee wrote: >We try not to use stages at all, unless absolutely necessary and we would >love to avoid them if we could. Have you tried collectors+tagging and chaining? We've had good results with those. https://docs.puppetlabs.com/puppet/lat

Re: [Puppet Users] puppetdb has no tables

2014-10-05 Thread Christopher Wood
On Sun, Oct 05, 2014 at 08:41:18PM +0100, Ken Barber wrote: > > I've installed puppetdb on my puppetmaster. I have puppet-server-3.7.1, > > puppetdb-2.2 and puppetdb-terminus-2.2. > > > > I've setup puppetdb like this: > > > > [root@puppet:/etc/puppet] #cat /etc/puppetdb/conf.d/database.ini > > [da

Re: [Puppet Users] hiera-eyaml - performance implications?

2014-10-24 Thread Christopher Wood
On Fri, Oct 24, 2014 at 02:01:27PM -0500, Tim Skirvin wrote: > I've started investigating hiera-eyaml as a tool for managing > secrets within our puppet repository. It looks pretty promising, > especially in connection with 'show_diff => false'. For those that > haven't seen it: > >

Re: [Puppet Users] Puppetmaster can't keep up with our 1400 nodes.

2014-10-30 Thread Christopher Wood
On Thu, Oct 30, 2014 at 10:39:22AM -0700, Ramin K wrote: > On 10/30/14 7:45 AM, Georgi Todorov wrote: > >Hi group, > > > >We have a VM with 24 E7-8857 v2 @ 3.00GHz cores and 32G of ram (on big > >ESX hosts and fast backend) that is our foreman/puppetmaster with the > >following tuning params: > > >

Re: [Puppet Users] Re: many agents connecting at same time and 100+ nodes failed.

2014-11-06 Thread Christopher Wood
On Thu, Nov 06, 2014 at 09:28:32AM +0100, Felix Frank wrote: > On 11/06/2014 09:25 AM, james.eckers...@fasthosts.com wrote: > > > > If that fails, you could try running the puppet agent from a cron job > > instead with randomised start times as per the below link. > > +1 > > I have yet to see a

[Puppet Users] troubleshooting constraint violations in puppetdb?

2014-11-11 Thread Christopher Wood
Do any of you have troubleshooting tips for the puppetdb error log message about violating database constraints? How would I tell which constraint and which resource, short of logging all sql queries? 2014-11-11 08:29:34,814 ERROR [c.p.p.command] [6133d0c4-3350-4567-abb0-476980a9616e] [replace

Re: [Puppet Users] Re: many agents connecting at same time and 100+ nodes failed.

2014-11-11 Thread Christopher Wood
uns using other environments with mcollective. It's interesting how things work out over time. On Thu, Nov 06, 2014 at 12:22:04PM -0500, Christopher Wood wrote: > On Thu, Nov 06, 2014 at 09:28:32AM +0100, Felix Frank wrote: > > On 11/06/2014 09:25 AM, james.eckers...@fa

Re: [Puppet Users] troubleshooting constraint violations in puppetdb?

2014-11-11 Thread Christopher Wood
t;post the catalog publicly, you can send it to me directly. >-Ryan >On Tue, Nov 11, 2014 at 9:13 AM, Christopher Wood ><[2]christopher_w...@pobox.com> wrote: > > Do any of you have troubleshooting tips for the puppetdb error log > message about violatin

Re: [Puppet Users] troubleshooting constraint violations in puppetdb?

2014-11-12 Thread Christopher Wood
d message or look in your puppet cache (in >client_data/catalog on the master). >-Ryan >On Tue, Nov 11, 2014 at 4:32 PM, Christopher Wood ><[1]christopher_w...@pobox.com> wrote: > > Embarrassingly, due to disk space issues I purged rather than moved and &

Re: [Puppet Users] Using the $domain fact in the name of a template

2014-11-12 Thread Christopher Wood
On Wed, Nov 12, 2014 at 12:43:43PM -0800, kai wrote: >Hi,  >I have the following file definitions: >file { $haproxy_service_config_file: >    ensure  => 'present', >    owner   => 'root', >    group   => 'root', >    mode    => '0644', >    content => template('hapro

Re: [Puppet Users] troubleshooting constraint violations in puppetdb?

2014-11-19 Thread Christopher Wood
nderstand what's going on under the hood. https://docs.puppetlabs.com/puppetdb/latest/maintain_and_tune.html Per Ryan Senior this was the first time they've seen this sort of thing, so I'm favouring a theory where an interaction between the different sql commits from puppetdb, the ch

Re: [Puppet Users] Puppet - packages long runtime

2015-01-05 Thread Christopher Wood
On Mon, Jan 05, 2015 at 11:07:12AM +0100, Martin Alfke wrote: > Hi, > On 05 Jan 2015, at 07:50, Royee Tager wrote: > > > Hello all, > > > > New CentOS 6.5 clients which run Puppet for the first time have many > > packages to install. > > As you can see below the total runtime is 355.0697 sec. >

Re: [Puppet Users] Re: many agents connecting at same time and 100+ nodes failed.

2015-01-08 Thread Christopher Wood
minute of everday(00:01).   Because of that all the node's puppet >agent get reloaded at 00:01 minutes so all agents trying to connect the >puppet masters at same polling interval. > >Regards, >Suresh. > > On Tuesday, 11 November 2014 21:18:42 UTC+5:3

[Puppet Users] facter external fact tips?

2015-01-08 Thread Christopher Wood
(As background, I am attempting to create an is/oos toggle, for servers, in facter. Before I file bugs on two oddities, maybe somebody here could tell me if I'm misunderstanding something. I am using facter 2.3.0 from the puppetlabs apt/yum repositories, required from an external ruby script. I

Re: [Puppet Users] Re: many agents connecting at same time and 100+ nodes failed.

2015-01-09 Thread Christopher Wood
rastic to me. > > https://docs.puppetlabs.com/references/latest/configuration.html#splay > > This may do the trick. > > Cheers, > Felix > > On 01/08/2015 08:27 PM, Christopher Wood wrote: > > Yes it does, and that's something that you would configure to not hap

Re: [Puppet Users] defined types question

2015-01-10 Thread Christopher Wood
On Fri, Jan 09, 2015 at 01:51:28PM -0800, Drew wrote: >I'm fooling around with some defined types and am struggling a little. > The following is just a small example of what I'm doing while I work it >out: >#/etc/puppet/modules/testmodule/manifests/init.pp >define testmodule ( $

Re: [Puppet Users] defined types question

2015-01-11 Thread Christopher Wood
sure.  I've already >tried putting it in a different file and that didn't make any difference. >On Saturday, January 10, 2015 at 8:39:13 AM UTC-5, Christopher Wood wrote: > > On Fri, Jan 09, 2015 at 01:51:28PM -0800, Drew wrote: > >    I'm foolin

Re: [Puppet Users] File() function weird behavior

2015-01-27 Thread Christopher Wood
On Tue, Jan 27, 2015 at 04:45:39AM -0800, Przemysław Szypowicz wrote: >Hi, >When I locally apply manifest: >file{'/tmp/cert.pem': >  ensure => present, >  content => file("/var/lib/puppet/ssl/private_keys/${::clientcert}.pem"), >} >its working as expected. >But when

Re: [Puppet Users] how to export all variables in a nodes catalog, to .yaml file (including derived ones) ?

2015-01-29 Thread Christopher Wood
I couldn't think of or recall how, but I have a number of "in your place I would" sort of thoughts. These could be just rhubarbing along. On Wed, Jan 28, 2015 at 12:46:17PM -0800, Brett Swift wrote: >I'm trying to get a useful tool for our operations guys, to give them some >transparency

<    1   2   3   4   5   >