Re: [Puppet Users] Code coverage for puppet resources

2014-02-06 Thread gh
On 1/26/14 7:50 AM, Gareth Rushgrove wrote: > For anyone else who likes writing tests for their puppet manifests, > I've just added basic code coverage to rspec-puppet: > > A blog post here about how to use it: > > http://www.morethanseven.net/2014/01/25/code-coverage-for-puppet-modules/ > > I'd

Re: [Puppet Users] Re: Puppet Enterprise Answers file install and Policy based autosign

2014-02-06 Thread Eric Sorenson
Adam Clark wrote: HI Eric, Thanks for the reply. I'm using PE 3.3.1 with naive autosigning which works well, I just assume policy based was working too. I'm new to Puppet and just doing some proof of concept work. One thing I haven't got a good grip on is when does facter go out and gather

[Puppet Users] PuppetDB 1.6.2 final Now available

2014-02-06 Thread Ryan Senior
PuppetDB 1.6.2 final - February 6th, 2014. PuppetDB 1.6.2 Downloads Available in native package format in the release repositories at: http://yum.puppetlabs.com and http://apt.puppetlabs.com For information on how to enable the Puppet Labs repos, see: http://docs.p

Re: [Puppet Users] Re: how to add an evironment variable to puppet agent execution?

2014-02-06 Thread jcbollinger
On Thursday, February 6, 2014 9:14:12 AM UTC-6, Felix.Frank wrote: > > I see, well - this kind of problem is best tackled using custom facts I > think. > > ... coupled with feeding the data to your resource via a parameter or property, as appropriate. John -- You received this message beca

[Puppet Users] PuppetDB replication

2014-02-06 Thread John Guthrie
I wasn't able to find much on this by searching, so I thought I would ask here, has anyone had any kind of experience with any kind of replication of PuppetDB. In particular, experience with the PE version of PuppetDB would be great to hear about. I have set up PE puppet with the components ma

Re: [Puppet Users] Powershell onlyif and exit code

2014-02-06 Thread Rob Reynolds
On Thu, Feb 6, 2014 at 5:39 AM, Leon Kyneur wrote: > Thanks Rob. I'm well aware of both resources you mentioned but neither > have provided me with a valid solution to my problem. > > The powershell provider works well if I place my code inline within the > manifest. > > However the script I'm wo

[Puppet Users] Does eyaml CLI have options to specify the private/public key paths?

2014-02-06 Thread Larry Fast
The default value for the private key path in the eyaml CLI is ./keys/private_key.pkcs7.pem. Is there an CLI option to override the default? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving ema

[Puppet Users] non existing classes cause puppet 2.7 client to error out

2014-02-06 Thread Kyle Flavin
I put this up on the Puppet Ask forum as well. Hopefully the duplication isn't a big deal, I've been struggling to come up with a good solution to this. I'm attempting to migrate a puppet environment from Puppet 2.6 to Puppet 2.7. My plan for doing this is to install a new Puppet 2.7 master,

[Puppet Users] Ruby errors

2014-02-06 Thread Jason Hatman
One of my clients wasn't checking in with puppet so I decided to reinstall facter and puppet on that client. I did so and now when I try to run puppet agent it crashes with a lot of ruby errors. This is mavericks so I have the contents of /usr/lib/ruby/site_ruby/1.8 symlinked into /usr/lib/ru

Re: [Puppet Users] Workaround for user password hash

2014-02-06 Thread Brian Mathis
On Thu, Feb 6, 2014 at 5:12 AM, wrote: > On Wednesday, February 5, 2014 8:31:21 PM UTC+1, Brian Mathis wrote: > > >> There is nothing wrong with the sha1() function, it's just being used >> incorrectly. >> > > Just for the record, what would be the correct way to use it for this > purpose? > > I

[Puppet Users] Re: hiera-eyaml doesn't seem to work with the hiera_hash() function

2014-02-06 Thread Larry Fast
Correction: I was running puppet 3.2.3. I upgraded my server to 3.4.2 and the problem is still there. -- 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 email to puppet-us

[Puppet Users] Re: hiera-eyaml doesn't seem to work with the hiera_hash() function

2014-02-06 Thread Larry Fast
Correction: I'm running puppet 3.2.3. I will upgrade to 3.4.2 to see if the problem goes away. -- 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 email to puppet-users+uns

[Puppet Users] Re: hiera-eyaml doesn't seem to work with the hiera_hash() function

2014-02-06 Thread Larry Fast
Correction: I'm running puppet 3.2.3. I will upgrade to 3.4.2 to see if the problem goes away. On Thursday, February 6, 2014 10:22:07 AM UTC-8, Larry Fast wrote: > > I just started evaluating hiera-eyaml and hit a glitch. It seems that any > attempt to read a hash in an eyaml file using hiera_h

[Puppet Users] hiera-eyaml doesn't seem to work with the hiera_hash() function

2014-02-06 Thread Larry Fast
I just started evaluating hiera-eyaml and hit a glitch. It seems that any attempt to read a hash in an eyaml file using hiera_hash(), produces an error: "Error 400 on SERVER: Resolution type is hash but parsed_answer is a Hash" The error occurs even if the hash does not contain any encrypted val

Re: [Puppet Users] Workaround for user password hash

2014-02-06 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > I suppose it will be useful if I share a workaround I just found > for a problem I encountered. > > I needed a "user" puppet resource to add a user and set its > password, on CentOS 6.4. The manifest was applied with no errors, > but the password wa

[Puppet Users] Re: Rebooting all agents simultaneously

2014-02-06 Thread Bas van Weelde
I also see that the trigger file is a hidden file: /.reboot. When I place that in /root's home this might be secure enough. What about a 'touch' of that file? cheers Op donderdag 6 februari 2014 12:13:13 UTC schreef Bas van Weelde: > > Goodday gentlemen, > > Administering a large number of host

[Puppet Users] Re: Rebooting all agents simultaneously

2014-02-06 Thread Bas van Weelde
Hi Dirk, Thanks for that. With changing the variable $reason you mean to do that by a script or so. The issue is to perform the reboot by a simple 'click' as a matter of speaking, by giving a command from the prompt to change $reason. Am I right? Regards Op donderdag 6 februari 2014 12:13:13

Re: [Puppet Users] Re: how to add an evironment variable to puppet agent execution?

2014-02-06 Thread Felix Frank
I see, well - this kind of problem is best tackled using custom facts I think. HTH, Felix On 02/06/2014 04:05 PM, dimitris.stafylara...@gmail.com wrote: > To make a more specific case, I want my provider to know where Tomcat > has been installed, but that should be specified at run time. > > But

Re: [Puppet Users] How to avoid throttling of AWS t1-micro instances due to Puppet Agent cpu-load?

2014-02-06 Thread jcbollinger
On Thursday, February 6, 2014 6:58:39 AM UTC-6, Martijn wrote: > > That would certainly reduce the frequency of alerts occurring, and a > nightly run would have less impact on service. How would I do that? > > There are two main alternatives: 1. Use the "runinterval" configuration parameter

Re: [Puppet Users] Workaround for user password hash

2014-02-06 Thread Chuck Anderson
On Thu, Feb 06, 2014 at 02:26:09AM -0800, zerozerouno...@gmail.com wrote: > On Thursday, February 6, 2014 11:15:04 AM UTC+1, Felix.Frank wrote: > > Heh, well the thing with single quotes is - those will make *all* > > characters be interpreted literally, including the backslashes. > > > > Uhm…

Re: [Puppet Users] Re: how to add an evironment variable to puppet agent execution?

2014-02-06 Thread dimitris . stafylarakis
I'm not sure I understand you properly, so please clarify if that's the case. I am in control of the environment, i.e. I can set a static path. But I'd like it to be able to set it as a parameter, in case the installation path changes. To make a more specific case, I want my provider to know w

Re: [Puppet Users] pkg install via puppet on specific node.

2014-02-06 Thread Igor Galić
- Original Message - > hello All, > hello All, i am a puppet newbie and have used few modules from > forge.puppetlabs.com . they are working great. now i want to install > packages like 'sudo' 'tcpdump' etc. is there any moduel which can do that. i > have been reading about installing pac

[Puppet Users] Re: Understanding script process control

2014-02-06 Thread jcbollinger
On Tuesday, February 4, 2014 1:55:53 PM UTC-6, JonY wrote: > > I have an issue where puppet keeps starting additional instances of a > process even though it's already running. The 'control script' in question > does have a 'status' command but I'm thinking that I'm not properly telling > pupp

Re: [Puppet Users] Re: how to add an evironment variable to puppet agent execution?

2014-02-06 Thread Felix Frank
A custom provider you say? You can change the provider code at will? Are you not in control of the environment for all forked processes from this specific provider then? On 02/06/2014 02:58 PM, dimitris.stafylara...@gmail.com wrote: > My problem is that I want a specific environment variable set f

Re: [Puppet Users] Rebooting all agents simultaneously

2014-02-06 Thread Dirk Heinrichs
Am 06.02.2014 13:13, schrieb Bas van Weelde: > Administering a large number of hosts (100>) I am in need of a way to > reboot them all at the same time or in groups. Just a reboot or after > the change of a config file. Are there any pre-baked solutions for > that, and if not, do you guyes have an

[Puppet Users] Puppet Enterprise Queries

2014-02-06 Thread Anshul Tripathi
I have the following Queries about Puppet Enterprise 3.1 1. How is patching done on the nodes. In what ways can it be done. 2.Does it show in the console which module is installed.( For example, if I install Apache will it show in the reports the name of the module) 3.If we create a repository c

[Puppet Users] Rebooting all agents simultaneously

2014-02-06 Thread Bas van Weelde
Goodday gentlemen, Administering a large number of hosts (100>) I am in need of a way to reboot them all at the same time or in groups. Just a reboot or after the change of a config file. Are there any pre-baked solutions for that, and if not, do you guyes have any experience in that? I am thin

[Puppet Users] Re: how to add an evironment variable to puppet agent execution?

2014-02-06 Thread dimitris . stafylarakis
I've been struggling with this for a while as well. My problem is that I want a specific environment variable set for resources not managed through Exec. Specifically I need an installation path for a custom type/provider I've tried setting variables in /etc/environment but as John points out

[Puppet Users] MySQL Module Root Password issue RHEL6

2014-02-06 Thread Justin Sevier
Hi All, I did search and found this article before I posted: https://groups.google.com/forum/#!searchin/puppet-users/mysql$20root/puppet-users/nEZ9bDcaBJE/4O0hN459g9oJ Unfortunately there really wasn't a resolution as far as I can see. *The situation:*I am trying to setup a test environment

Re: [Puppet Users] Get Facter Facts for Previously installed module

2014-02-06 Thread Ralph Bolton
Sounds fair enough. So I've had a look at what we've got, and it's not an onerous amount of code that needs translating and implementing as facts. The problem really is the development environment which is very straight forward with our binary as it can be entirely built, tested and installed i

[Puppet Users] Re: Puppet agent - two calls to server / request?

2014-02-06 Thread jcbollinger
On Wednesday, February 5, 2014 10:54:13 AM UTC-6, JonY wrote: > > I set up a simple ENC this morning that just logs every agent request to a > file. What I've noticed is that every agent is logging two requests per > run. Each request is about ~10 seconds apart. > > Is this normal? Are my agent

[Puppet Users] Re: puppet via apache / passenger

2014-02-06 Thread pdpinfo
Hi, have you also checked /etc/puppet/auth.conf ? You should have something like: path /report method save allow * If it is in place , to troubleshoot try path /report # method save allow * Regards Paolo -- You received this message because you are subscribed to the Google Groups "Puppet

Re: [Puppet Users] How to avoid throttling of AWS t1-micro instances due to Puppet Agent cpu-load?

2014-02-06 Thread José Luis Ledesma
You can use mcollective to force a run whenever you want, but I don't know how it may affect resource consuming. Regards, El 06/02/2014 13:58, "Martijn" escribió: > That would certainly reduce the frequency of alerts occurring, and a > nightly run would have less impact on service. How would I d

[Puppet Users] Re: install_options fails for rpm provider

2014-02-06 Thread zerozerounouno
On Thursday, February 6, 2014 12:44:53 PM UTC+1, zerozer...@gmail.com wrote: > AFAICT from the docs < > http://docs.puppetlabs.com/references/latest/type.html#package-provider-features>, > > when using a "package" resource with the rpm provider, the install_options > attribute should be allow

Re: [Puppet Users] How to avoid throttling of AWS t1-micro instances due to Puppet Agent cpu-load?

2014-02-06 Thread Martijn
That would certainly reduce the frequency of alerts occurring, and a nightly run would have less impact on service. How would I do that? It's not ideal though. I'd like to have the same frequency on all nodes so that I know when the entire fleet is in compliance after a change. Regards, Martijn

Re: [Puppet Users] Please help with control/ordering issue

2014-02-06 Thread Jason Antman
If it uses RabbitMQ, I'd very very strongly advise that you just use the puppetlabs-rabbitmq module to configure the rabbitmq portion. -Jason On 02/05/2014 02:27 PM, D C wrote: The application does use rabbitmq which is the cause for my woes. The chaining arrows will work to enforce the order

Re: [Puppet Users] How to avoid throttling of AWS t1-micro instances due to Puppet Agent cpu-load?

2014-02-06 Thread David Schmitt
Hi, Would it be enough to reduce the frequency of puppet runs to, like, once a day? Regards, David On 06.02.2014 12:13, Martijn wrote: We run a small number of t1-micro instances on Amazon Web Services, because the tasks have consistent very low CPU requirements (1-2% average). We monitor t

[Puppet Users] install_options fails for rpm provider

2014-02-06 Thread zerozerounouno
Hi, AFAICT from the docs < http://docs.puppetlabs.com/references/latest/type.html#package-provider-features>, when using a "package" resource with the rpm provider, the install_options attribute should be allowed. But it seems it is not taken into account here. I have a resource like this: p

Re: [Puppet Users] Powershell onlyif and exit code

2014-02-06 Thread Leon Kyneur
Thanks Rob. I'm well aware of both resources you mentioned but neither have provided me with a valid solution to my problem. The powershell provider works well if I place my code inline within the manifest. However the script I'm working with had a lot of logic. I don't see it being very maintain

[Puppet Users] How to avoid throttling of AWS t1-micro instances due to Puppet Agent cpu-load?

2014-02-06 Thread Martijn
We run a small number of t1-micro instances on Amazon Web Services, because the tasks have consistent very low CPU requirements (1-2% average). We monitor these instances via Amazon CloudWatch with alerting on things like extended 100% CPU usage. For those who don't know, t1.micro instances hav

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

2014-02-06 Thread Felix Frank
Hi, this hasn't been solved yet, has it? What version of puppet is this (master+agent), how is the master laid out (passenger?) and how are your manifests structured? Are you relying on import somewhere e.g.? Thanks, Felix On 01/16/2014 04:40 PM, Chris W wrote: > If I do iptables -F on the box,

[Puppet Users] pkg install via puppet on specific node.

2014-02-06 Thread Muhammad Yousuf Khan
hello All, hello All, i am a puppet newbie and have used few modules from forge.puppetlabs.com. they are working great. now i want to install packages like 'sudo' 'tcpdump' etc. is there any moduel which can do that. i have been reading about installing packages on puppet docs but i only found com

Re: [Puppet Users] Workaround for user password hash

2014-02-06 Thread zerozerounouno
On Thursday, February 6, 2014 11:15:04 AM UTC+1, Felix.Frank wrote: Heh, well the thing with single quotes is - those will make *all* > characters be interpreted literally, including the backslashes. > Uhm… according to < http://docs.puppetlabs.com/puppet/latest/reference/lang_datatypes.html#si

Re: [Puppet Users] Workaround for user password hash

2014-02-06 Thread Felix Frank
Heh, well the thing with single quotes is - those will make *all* characters be interpreted literally, including the backslashes. So it's pretty hard to include a single quote in a single quoted string. You end up with pretties like echo 'It'"'"'s working!' Though I may be missing a popular work

[Puppet Users] puppet via apache / passenger

2014-02-06 Thread Tim Dunphy
Hello puppet, I am trying to get puppet to work via apache and passenger and not having much luck. Here is the error that I am currently seeing: Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run Error: Could not send report: Error 405 on SERVER: 405 Me

Re: [Puppet Users] Workaround for user password hash

2014-02-06 Thread zerozerounouno
On Wednesday, February 5, 2014 8:31:21 PM UTC+1, Brian Mathis wrote: > There is nothing wrong with the sha1() function, it's just being used > incorrectly. > Just for the record, what would be the correct way to use it for this purpose? I think it could be an interesting topic: when searchin

Re: [Puppet Users] Workaround for user password hash

2014-02-06 Thread zerozerounouno
On Wednesday, February 5, 2014 7:57:01 PM UTC+1, Jeremy wrote: > I believe Chuck is on the right path.. Just from a simple test > (https://gist.github.com/jbouse/8830543) this shows that using the > double quotes is incorrect. Well… it's not "incorrect": you _can_ use double quotes. You jus

Re: [Puppet Users] Workaround for user password hash

2014-02-06 Thread zerozerounouno
On Wednesday, February 5, 2014 7:25:53 PM UTC+1, Chuck Anderson wrote: > Use single quotes rather than double quotes so the $ aren't > interpolated as variables: > But if you are accustomed to using double quotes around strings, you might prefer using them here too, for consistency. Just be

Re: [Puppet Users] File.exists? validation failure when trying to create file in same catalogue

2014-02-06 Thread Gavin Williams
Felix Damn, ok... Will see if I can move the check further down the process... And yes, ensure is the only property on this type, the rest are all params... Cheers Gav On Thursday, 6 February 2014 09:09:14 UTC, Felix.Frank wrote: > > Hi, > > the issue is (I believe) that the validation logi

Re: [Puppet Users] File.exists? validation failure when trying to create file in same catalogue

2014-02-06 Thread Felix Frank
Hi, the issue is (I believe) that the validation logic is run during the prefetch phase. Your type is making sure its environment is in an appropriate state. (Auto)Requiring any resources from the catalog will not help you here, because those will still only be synced after all prefetching and val