Re: [Puppet Users] Re: temp dir fact

2014-05-06 Thread Cristian Falcas
I have now something like this in one of my modules: require 'facter' Facter.add(temp_dir) { setcode { Dir::tmpdir } } Why I was asking about a standard fact: I wanted to contribute to some external module and I needed to download a file on Windows.machines. And I realized there is now standard

Re: [Puppet Users] puppet dism

2014-05-06 Thread Helen Paterson
It seems that you should be using the switch /Featurename OR /Apply-Unattend NOT both, yet the puppet example is dism { 'IIS-WebServer': ensure = present, answer = 'C:\answer\iis.xml', } https://forge.puppetlabs.com/puppetlabs/dism I can see how to use this puppet module with the

[Puppet Users] Re: Setting quotes using augeas type

2014-05-06 Thread zerozerounouno
On Wednesday, April 30, 2014 11:21:47 PM UTC+2, kbrede wrote: But when using the augeas type with the following: changes = 'set \$database_password \test\', The file entry looks like: $database_password = \test\; Try this (pay attention to what is a single quote and what is a double!):

[Puppet Users] Re: Could not find class

2014-05-06 Thread devaki prabhu
Hi everybody, i have to install keystone package on puppet client : i have some module in puppet master /etc/puppet/modules/keystone/manifests/init.pp and when i include it in client ,getting an class not found. any help is accepted. Thank you.

[Puppet Users] Delete a clients certificate with curl no longer working?

2014-05-06 Thread Thomas
When deploying openvz images, we use a init-script to delete puppets ssl directory and then run a curl that deletes the certificate from the puppet server: curl -k -X DELETE -H Accept: pson https://puppet.example.com:8140/production/certificate_status/client.examle.com;. After upgrading to

Re: [Puppet Users] puppet apply --noop -e and overiding facter values for testing

2014-05-06 Thread Jakov Sosic
On 05/06/2014 12:29 AM, Brian Mathis wrote: The problem is that your variable names are being returned from the $(cat...) after bash has already evaluated the environment, so it's taking it as a literal string and trying to execute the command. To get bash to interpret it as a variable, use

[Puppet Users] rubygems.org broken for puppet 3.5

2014-05-06 Thread Martin Alfke
Hi, at the moment there is only one factor version available on rubygems.org: facter - 2.0.1 Is there a reason why older facter versions have disappeared? Older puppet versions are still on ruby gems.org.. but they are useless due to missing dependencies. - Martin -- You received this

[Puppet Users] Re: rubygems.org broken for puppet 3.5

2014-05-06 Thread Martin Alfke
Sorry. My mistake. Everything is working fine. I just did not check properly my logs. Am Dienstag, 6. Mai 2014 14:18:47 UTC+2 schrieb Martin Alfke: Hi, at the moment there is only one factor version available on rubygems.org: facter - 2.0.1 Is there a reason why older facter

Re: [Puppet Users] puppet apply --noop -e and overiding facter values for testing

2014-05-06 Thread Brian Mathis
This applies to facter version 1.7 and above. See docs: http://docs.puppetlabs.com/guides/custom_facts.html#external-facts You can create a file like this (the name does not matter): /etc/facter/facts.d/myfacts.txt: hostname=value Then when you run 'facter hostname', value will be

[Puppet Users] [JOB] - Senior Systems Administrator; 3-6 Month Contract; Deploy Linux Desktop Environment

2014-05-06 Thread Georgien Dimis
Hi Guys, I am currently looking for a a Senior Systems Administrator with very strong Puppet knowledge and skills to provide a full Proof of Concept and roll-out of Linux Desktop (Ubuntu) to a Contact Centre located in Melbourne and the Philippines. Initially this is for a 3-6 month contract

[Puppet Users] Re: Could not find class

2014-05-06 Thread jcbollinger
On Tuesday, May 6, 2014 5:44:39 AM UTC-5, devaki prabhu wrote: Hi everybody, i have to install keystone package on puppet client : i have some module in puppet master /etc/puppet/modules/keystone/manifests/init.pp and when i include it in client ,getting an class not found. any help is

Re: [Puppet Users] puppet dism

2014-05-06 Thread Helen Paterson
I didn't get the answer file working but this works instead class windowsfeaturedesktop::iis { dism { 'IIS-WebServerRole': ensure = present, } dism { 'IIS-WebServer': ensure = present, require = Dism['IIS-WebServerRole'], } dism { 'IIS-CommonHttpFeatures':

[Puppet Users] Re: Hiera question: Nested hash

2014-05-06 Thread jcbollinger
On Monday, May 5, 2014 12:44:59 PM UTC-5, Sans wrote: Thanks John for showing me a way to do it. I haven't tried that yet but meanwhile, I was also trying the define type but different way. Do you think this is a better data structure? rpm_mon_base_pack: base-pkg1: rep:

[Puppet Users] Re: Hiera question: Nested hash

2014-05-06 Thread Sans
Hi John, I haven't use create_resources() before, so following the puppetlab docs. After having the data structure in my default.yaml, I have this in the nodes.pp: $hr_mon_base_pkgs = hiera_hash('rpm_mon_base_pack', undef) and then in my utils.pp, I have this: class monitoring::mon-utils {

Re: [Puppet Users] Re: Setting quotes using augeas type

2014-05-06 Thread Kenton Brede
That's one combination I hadn't tried but it works! Thanks, Kent On Tue, May 6, 2014 at 4:52 AM, zerozerouno...@gmail.com wrote: On Wednesday, April 30, 2014 11:21:47 PM UTC+2, kbrede wrote: But when using the augeas type with the following: changes = 'set \$database_password \test\', The

Re: [Puppet Users] The certificate retrieved from the master does not match the agent's private key. The master and agent in this case are on the same machine.

2014-05-06 Thread jcbollinger
On Monday, May 5, 2014 10:25:50 AM UTC-5, Felix.Frank wrote: Ah, so you're running the master from an unprivileged user. That makes a lot of sense now. Maybe. It is normal to run the *master* as an unprivileged user. The master does not store anything in its home directory in that

Re: [Puppet Users] The certificate retrieved from the master does not match the agent's private key. The master and agent in this case are on the same machine.

2014-05-06 Thread Felix Frank
On 05/06/2014 04:56 PM, jcbollinger wrote: Ah, so you're running the master from an unprivileged user. That makes a lot of sense now. Maybe. It is normal to run the /master/ as an unprivileged user. The master does not store anything in its home directory in that case,

[Puppet Users] Problem with deploying Hiera hashes in order

2014-05-06 Thread Marcin
I got the following lines in Hiera: # My hash array somehash::somevalues: # NODE1 - ukdc1-c1-pscn01 -- 172.19.128.2 - below FIRSTARTEFACT1: artefact: FIRSTARTEFACT order: ?? SECONDARTEFACT: artefact: SECONDARTEFACT order: FIRSTARTEFACT1

Re: [Puppet Users] puppet dism

2014-05-06 Thread Rob Reynolds
On Tue, May 6, 2014 at 9:27 AM, Helen Paterson helen.pater...@gmail.comwrote: I didn't get the answer file working but this works instead class windowsfeaturedesktop::iis { dism { 'IIS-WebServerRole': ensure = present, } dism { 'IIS-WebServer': ensure = present,

[Puppet Users] Ignore resource in provider if not defined?

2014-05-06 Thread Gavin Williams
Afternoon all, I'm trying to update my Glassfish module [1] to support some additional functionality, such as clustering. I've done most of the code changes, and they all seem to work fine from a usage POV. However several of my tests [2] are failing with the following error: 1)

[Puppet Users] Puppet enterprise console, all nodes 'unresponsive'.

2014-05-06 Thread Jay Benner
I had some corruption in my puppetdb and had to rebuild my KahaDB directory. After doing so I restarted everything, but all of the puppet nodes still show 'unresponsive', even after a successful puppet run. Looks like things are running smoothely now, only the console isn't updating

Re: [Puppet Users] Eugene Oregon Puppet User Group?

2014-05-06 Thread Spencer Krum
Hi Jon, I'm based in portland but would be happy to come down for the first meeting. Thanks, Spencer On May 1, 2014 8:53 PM, Jon Sawyer badqua...@gmail.com wrote: I am interested in starting one if one does not yet exist. I'd like to talk about and collaborate on usage of puppet. Anyone can

[Puppet Users] Puppet module to install and configure libvirt on hosts and webvirtmgr on a separate server

2014-05-06 Thread Alex Scoble
Hi All, I got this fully working yesterday on CentOS 6.5 and uploaded it to github today: https://github.com/ITBlogger/puppet-kvm It's very crude, doesn't have any parameter validation or testing and requires hiera as written, but you may find it useful. At some point it would be interesting

[Puppet Users] Re: Hiera question: Nested hash

2014-05-06 Thread Sans
On Tuesday, May 6, 2014 3:36:13 PM UTC+1, jcbollinger wrote: Using hiera_array() does ensure that the value retrieved is an array, but it's not at all what you want for this job or for either data structure. In this case, the returned array will contain one element -- the same hash

[Puppet Users] Announce: Puppet 3.6.0-RC1 available!

2014-05-06 Thread Eric Sorenson
Puppet 3.6.0 is a backward-compatible features and fixes release in the Puppet 3 series. The biggest things in this release are: * Improvements to directory environments, and the deprecation of config file environments * Support for purging unmanaged ssh_authorized_key resources

[Puppet Users] Re: Puppet Master not responding

2014-05-06 Thread Sean Keery
I just had this happen to me today. Turns out that I had pasted some database settings into the puppet.conf instead of the database.ini while using *screen* and having too many windows open. Luckily I had some cert warnings so I ran *puppet cert list --all *and got an error about the

Re: [Puppet Users] Puppetmaster Logrotate isn't working

2014-05-06 Thread Joachim Schrod
On 04/29/14 18:13, willi.feh...@home24.de wrote: Hello, we have an issue that the Puppetmaster logrotate isn't working. We are using the following default Logrotate: /var/log/puppet/*log { missingok sharedscripts create 0644 puppet puppet compress rotate 4 postrotate

[Puppet Users] PuppetDB 2.0.0 final now available

2014-05-06 Thread Ken Barber
** Final Release ** PuppetDB 2.0.0 final - May 6, 2014. PuppetDB 2.0.0 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:

[Puppet Users] Re: Directory Environments Patch

2014-05-06 Thread Joshua Partlow
If you were unable to test from source previously, there is a 3.6.0-rc1 available now that you can use to test environment slow down issues. You can obtain it from the pre-release repos as documented here:

[Puppet Users] Re: Serious performance issues with Puppet 3.5.x when using Directory Environments

2014-05-06 Thread Josh Partlow
Hi Antoine, There is a Puppet 3.6.0-rc1 available in the pre-release repos which has environment cacheing that we think will take care of the slowdown you are seeing with directory environments. Would you be able to test that? (See Eric's 3.6.0-rc1 announcement for details on obtaining the

Re: [Puppet Users] Puppetmaster Logrotate isn't working

2014-05-06 Thread Chris
On 30/04/14 02:13, willi.feh...@home24.de wrote: Hello, we have an issue that the Puppetmaster logrotate isn't working. We are using the following default Logrotate: /var/log/puppet/*log { missingok sharedscripts create 0644 puppet puppet compress rotate 4 postrotate

Re: [Puppet Users] puppet apply --noop -e and overiding facter values for testing

2014-05-06 Thread Jakov Sosic
On 05/06/2014 02:38 PM, Brian Mathis wrote: This applies to facter version 1.7 and above. See docs: http://docs.puppetlabs.com/guides/custom_facts.html#external-facts You can create a file like this (the name does not matter): /etc/facter/facts.d/myfacts.txt: hostname=value Then

[Puppet Users] ploperations modules/releases

2014-05-06 Thread Jeff Bachtel
The ploperations Forge user (and associated puppetlabs-operations GitHub account) have some very useful modules that are kept up-to-date on GitHub, but haven't been seeing releases to Forge (in more than a year, actually). Is this a matter of lack of time or interest by the PL ops team on

Re: [Puppet Users] Re: Looking for a better way to use hiera hashes than create_resources

2014-05-06 Thread Ramin K
On 5/5/2014 7:32 AM, Alex Scoble wrote: If you are trying to follow Puppet Labs recommended best practices, it's definitely a moving target. I find it best not to change my workflow or methodology until it makes sense on my system regardless of what the community or even Puppet Labs has

[Puppet Users] Puppet 3.3: Signal USR2 doesn't work

2014-05-06 Thread Joachim Schrod
Hi, On some systems, I use Puppet 3.3.1 for openSUSE 12.2. (We plan to upgrade, but some external dependencies cause problems.) No newer Puppet version is available from OBS. On that systems, signal USR2 doesn't work. The man page tells that it shall Close file descriptors for log files and