Re: [Puppet Users] How to apply template based on a string in a file

2014-02-14 Thread Denmat
Or place those values in hiera. > On 15 Feb 2014, at 0:12, Johan De Wit wrote: > > If you need information from the client, then you should think 'facter'. > > Or you could write a custom fact, or use external facts. > > http://puppetlabs.com/blog/facter-1-7-introduces-external-facts > http:/

[Puppet Users] Re: Puppet Actions in Parallel?

2014-02-14 Thread Andrew Pennebaker
This is a fantastic idea! Any progress on this? On Sunday, March 4, 2012 10:53:23 PM UTC-5, Jon Forrest wrote: > > As many learning Puppet for the first time, the fact that the > order of actions is undefined unless specific metaparameters > like 'require' are used. Fine. > > This got me to thinki

Re: [Puppet Users] Re: Some of my OS X clients stop checking in with puppet master.

2014-02-14 Thread Philip Powell
Here's one. (When it's in this state I can ssh in and do a sudo puppet agent -t and everything's fine again.) https://gist.github.com/pkpowell/9011179 Somewhat surprisingly there was no private info there to redact. Would there be more relevant info in the system.log? Cheers Phil On Friday

Re: [Puppet Users] Re: moving from previous manual install to puppet/chocolatey

2014-02-14 Thread Jay Benner
I ran it as me and it behaved the same. On Friday, February 14, 2014 1:57:12 PM UTC-8, Rob Reynolds wrote: > > It looks to be a possible bug in the chocolatey provider that happens when > we try to capture both error and regular logging when an error has > occurred. Keep a watch on the issue its

[Puppet Users] Puppet 3.4.2 client hangs

2014-02-14 Thread Forrie
I'm experiencing an odd problem with one of my Puppet clients. These systems are identical in configuration, but this one hangs with: puppet agent: applying configurat and I see a yum process. I checked that yum can operate on its own (it does) and there's no other process locking. There's

Re: [Puppet Users] Re: moving from previous manual install to puppet/chocolatey

2014-02-14 Thread Rob Reynolds
It looks to be a possible bug in the chocolatey provider that happens when we try to capture both error and regular logging when an error has occurred. Keep a watch on the issue itself for updates. In the meantime if you are using SYSTEM for the puppet agent, I would switch to something with netwo

Re: [Puppet Users] Re: moving from previous manual install to puppet/chocolatey

2014-02-14 Thread Jay Benner
Some improvement. I'll attach another chocolateyinstall log below. It still didn't install the agent, but it also didn't add an entry to /lib, so I'm guessing it will keep trying. Looks like the same error downloading the file. http://pastebin.com/BFd90qkb On Friday, February 14, 2014 10:5

Re: [Puppet Users] Re: moving from previous manual install to puppet/chocolatey

2014-02-14 Thread Rob Reynolds
Let's have you upgrade chocolatey to 0.9.8.23 and see if the issue still happens. The paste bin shows 0.9.8.20. On Fri, Feb 14, 2014 at 12:53 PM, Rob Reynolds wrote: > You are running into an issue we have seen but have not been able to > reproduce effectively - > https://github.com/chocolatey/

Re: [Puppet Users] Re: moving from previous manual install to puppet/chocolatey

2014-02-14 Thread Jay Benner
The following is a copy of my log: http://pastebin.com/wz5peZbG Looks like the download failed. Perhaps a problem with puppet not being able to access my personal temp folder? On Friday, February 14, 2014 9:58:53 AM UTC-8, Rob Reynolds wrote: > > I looks like it does install the package, but may

Re: [Puppet Users] Re: moving from previous manual install to puppet/chocolatey

2014-02-14 Thread Rob Reynolds
You are running into an issue we have seen but have not been able to reproduce effectively - https://github.com/chocolatey/puppet-chocolatey/issues/18 On Fri, Feb 14, 2014 at 12:47 PM, Jay Benner wrote: > The following is a copy of my log: > http://pastebin.com/wz5peZbG > Looks like the downloa

Re: [Puppet Users] Re: Some of my OS X clients stop checking in with puppet master.

2014-02-14 Thread Moses Mendoza
Phil, Kristian, Would you mind posting a gist (any private info retracted of course) of the logs you find this information in? On Thu, Feb 13, 2014 at 5:44 AM, Philip Powell wrote: > I have the same problem. > Looking at the puppet logs on the affected nodes it looks like the puppet > agent will

Re: [Puppet Users] Re: moving from previous manual install to puppet/chocolatey

2014-02-14 Thread Rob Reynolds
I looks like it does install the package, but may be running into something else when it is running. In C:\chocolatey\chocolateyInstall there are some log files, what does the log file say about the installation? On Thu, Feb 13, 2014 at 2:10 PM, Jay Benner wrote: > I had deleted the entry in /l

[Puppet Users] Using external facts in puppet manifests

2014-02-14 Thread Deep
Hi, I have created few external facts by putting an yaml file in /etc/puppetlabs/facter/facts.d folder on agent and they are available in puppetdb and in my erb templates. But I am not able to use them in puppet manifests.I am getting undef value. Is there anyway to use them? Deep -- You re

Re: [Puppet Users] Re: Tags and dependencies

2014-02-14 Thread Felix Frank
Argh, umm, never mind then - guess I'm a 2.7.x fossil after all ><' On 02/14/2014 04:18 PM, zerozerouno...@gmail.com wrote: > According > to > http://docs.puppetlabs.com/puppet/latest/reference/lang_collectors.html#and it > should be supported: -- You received this message because you are subsc

[Puppet Users] how to require a md5sum before installing?

2014-02-14 Thread Andy Spiegl
Hi, I've got several modules which grab installer files from a network share. The share is readonly and as well protected as possibly. But still, I have a bad feeling about it and would like to introduce an extra layer of security. Like checking the md5sum of the file before running the installe

Re: [Puppet Users] Re: Tags and dependencies

2014-02-14 Thread zerozerounouno
On Friday, February 14, 2014 3:55:29 PM UTC+1, Felix.Frank wrote: On 02/14/2014 03:52 PM, zerozer...@gmail.com wrote: > > File <| (tag == "myname::myclass") and (tag == "post_exec") |> > > While this looks sane, this syntax is not yet supported. Your collectors > must use trivial expressions

Re: [Puppet Users] Re: Tags and dependencies

2014-02-14 Thread Felix Frank
On 02/14/2014 03:52 PM, zerozerouno...@gmail.com wrote: > File <| (tag == "myname::myclass") and (tag == "post_exec") |> While this looks sane, this syntax is not yet supported. Your collectors must use trivial expressions of the form "a == b". Sorry, cheers, Felix -- You received this messag

[Puppet Users] Re: Tags and dependencies

2014-02-14 Thread zerozerounouno
On Thursday, February 13, 2014 4:23:27 PM UTC+1, jcbollinger wrote: I think so. This looks related to > https://tickets.puppetlabs.com/browse/PUP-1045. Moreover, resources get > automatic tags that may support what you're after even easier than what > you're trying to do. For example, this m

[Puppet Users] Re: Creating a directory

2014-02-14 Thread jcbollinger
On Friday, February 14, 2014 4:10:55 AM UTC-6, zerozer...@gmail.com wrote: > > On Thursday, February 13, 2014 4:18:52 PM UTC+1, Max Hoopmann wrote: > > >> But now I want to do this via the foreman UI. I can create a new >> provisioning template connect it with the correct OS and environment, b

Re: [Puppet Users] How to apply template based on a string in a file

2014-02-14 Thread Johan De Wit
If you need information from the client, then you should think 'facter'. Or you could write a custom fact, or use external facts. http://puppetlabs.com/blog/facter-1-7-introduces-external-facts http://docs.puppetlabs.com/guides/custom_facts.html HTH Jo On 02/14/2014 12:18 AM, Ray wrote: New

[Puppet Users] How do I see a catalog from local manifests?

2014-02-14 Thread Robert Inder
I've taken over a puppet 2.7 setup that does not use a puppet master - we just use puppet-apply on locally stored manifests. I'm trying to re-organise our manifests, and want to avoid changing things unintentionally. Since manifests are compiled into a catalog before they are applied, I'm h

[Puppet Users] How to apply template based on a string in a file

2014-02-14 Thread Ray
Newbie question: I need to be able to apply a specific template based on whether a string is found in an existing file on the client or not. I tried the following (found an example somewhere... it does not work.. always falls into the first condition) What would be the correct way to check fo

[Puppet Users] Re: puppet custom function throwing private gsub error

2014-02-14 Thread kashif
Hi John Thanks a lot. I misunderstood 'arguments' as an array of elements rather than array of 'arguments'. Cheers Kashif On Thursday, February 13, 2014 3:33:26 PM UTC, jcbollinger wrote: > > > > On Wednesday, February 12, 2014 7:21:30 AM UTC-6, kashif wrote: >> >> I have written a small cu

[Puppet Users] Re: Tags and dependencies

2014-02-14 Thread zerozerounouno
On Thursday, February 13, 2014 4:23:27 PM UTC+1, jcbollinger wrote: I think so. This looks related to > https://tickets.puppetlabs.com/browse/PUP-1045. > Uhm… thanks! So the problem is that defaults only apply when the specified attributes are empty for the affected resources; but some tags ar

Re: [Puppet Users] Strange behavior from puppetforge firewall module

2014-02-14 Thread Chris W
Hi, We're not using passenger. It's working, but not quite what you would call stable, still see this in the logs sometimes - Feb 11 11:22:26 xxx01 puppet-agent[2135]: (/Firewall[030 ALL - ACCEPT all to localhost]/ensure) created Feb 11 11:22:26 xxx01 puppet-agent[2135]: (/Firewall[01

[Puppet Users] Re: Creating a directory

2014-02-14 Thread zerozerounouno
On Thursday, February 13, 2014 4:18:52 PM UTC+1, Max Hoopmann wrote: > But now I want to do this via the foreman UI. I can create a new > provisioning template connect it with the correct OS and environment, but > when I do a puppetrun in the browser with the foreman UI nothing happens. > Eve

[Puppet Users] Getting augeas working on sles 11.2/3

2014-02-14 Thread Michael Wörz
Hello, did anyone get augeas working on current SLES releases without messing up the system. What i find on OBS brings a lot of dependencys and conflicts. its jus one small ruby binding to libaugeas - shouldn't be to hard guys thanks -- You received this message because you are subscribed t