Re: [Puppet Users] service config file validation?

2014-06-06 Thread Felix Frank
Hi, since Puppet 3.5.0 there is a feature that will allow you to do just that, courtesy of Erik Dalen. http://docs.puppetlabs.com/references/3.5.0/type.html#file-attribute-validate_cmd So you can file { /etc/dhcp/dhcpd.conf: validate_cmd = /path/to/dhcpd -t -q -cf % } and Puppet will take

Re: [Puppet Users] Re: trying out puppet vm

2014-06-06 Thread Felix Frank
On 06/06/2014 02:58 AM, Dennis Gearon wrote: But it's actually the CLIENT (CAPS for emphasis) machine that has to have the configuration to allow password usage.BTW, anybody know a group Wait, your box came with an ssh configuration that disallowed passwords for remote connections? Is that

Re: [Puppet Users] Re: trying out puppet vm

2014-06-06 Thread Felix Frank
On 06/06/2014 09:49 AM, Felix Frank wrote: Please do start a new thread for a new issue, though. ...aaand you're way ahead of me, apparently :) -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving

[Puppet Users] Re: Could not request certificate: Error 405 on SERVER

2014-06-06 Thread steveahmet
I was in the same boat. Permissions were correct, copied that config.ru file to the correct location and assigned puppet as the owner etc. Simon's suggestion fixed it for me. Disabling selinux worked. And no, I'm not sure what folders should be configured to what security context. Thanks Simon.

[Puppet Users] Re: Using existing CA certificate for Puppet CA service.

2014-06-06 Thread Florian Sachs
Hi, How are your experiences with this setup? Did you encounter any problems? Have you been able to solve the CRL-problem? I am about to implement the same configuration and you post was the best one, describing a solution, so I would like to hear if it worked out. best regards, florian --

[Puppet Users] netdev_stdlib_junos not working on Puppet 3.6.1

2014-06-06 Thread smartconnect
I was able to run netdev_stdlib_junos module on Puppet 2.7 But on Puppet 3.6.1 i am facing below issue % puppet agent --test Info: Retrieving pluginfacts Info: Retrieving plugin ldapname is deprecated and will be removed in a future version Error: Could not autoload

[Puppet Users] Re: I can't read registry key with facter

2014-06-06 Thread nicolas boquet
Thank you , Thank you , Thank you !!! It's works. I've create 2 functions in my fact *def key_exists?(path_reg) begin Win32::Registry::HKEY_LOCAL_MACHINE.open(path_reg, ::Win32::Registry::KEY_READ | 0x100 )return true rescuereturn false endend* *def

Re: [Puppet Users] netdev_stdlib_junos not working on Puppet 3.6.1

2014-06-06 Thread Felix Frank
Hi, what is the version of - puppet on the master - puppet on the agent - facter on the agent On 06/06/2014 10:46 AM, smartconnect wrote: I was able to run netdev_stdlib_junos module on Puppet 2.7 But on Puppet 3.6.1 i am facing below issue ... Error: Could not retrieve catalog from remote

Re: [Puppet Users] puppetdb puppet-terminus and updated ruby version

2014-06-06 Thread Ken Barber
But it hurt my eyes each time I see it ... Suggestions? Install your whole Puppet stack, from Ruby through Puppet to Puppet DB, via your distro's native package management system. PuppetLabs hosts package repositories for many current systems, including, I think, Ubuntu 12.04. But be

Re: [Puppet Users] puppetdb puppet-terminus and updated ruby version

2014-06-06 Thread JuanBrein
I've always used distribution packages, but now I need to use puppet_decrypt which is not supported by ruby 1.8.7 Quick question though... I've been looking in the documentation and I haven't found any note stating that installing puppet through gem is not recommended, neither using ruby

Re: [Puppet Users] puppetdb puppet-terminus and updated ruby version

2014-06-06 Thread JuanBrein
Ignore this last one, I wrote it at the same time you wrote your comment... I understand and it makes sense. Thanks for your help and I'll evaluate the strategy... I still need puppet_decrypt so I really need to figure how to integrate ruby 2.0.0 on ubutu 12.04 plus puppet. We use RVM for the

Re: [Puppet Users] puppetdb puppet-terminus and updated ruby version

2014-06-06 Thread Ken Barber
Ignore this last one, I wrote it at the same time you wrote your comment... I understand and it makes sense. Thanks for your help and I'll evaluate the strategy... I still need puppet_decrypt so I really need to figure how to integrate ruby 2.0.0 on ubutu 12.04 plus puppet. We use RVM for

Re: [Puppet Users] puppetdb puppet-terminus and updated ruby version

2014-06-06 Thread Ken Barber
And another idea that I've seen people use is to install the Brightbox PPA packages for Ruby: http://brightbox.com/docs/ruby/ubuntu/ On Fri, Jun 6, 2014 at 11:14 AM, Ken Barber k...@puppetlabs.com wrote: Ignore this last one, I wrote it at the same time you wrote your comment... I understand

Re: [Puppet Users] puppetdb puppet-terminus and updated ruby version

2014-06-06 Thread JuanBrein
This is great... I see more options now! Thanks for the advice, really helpful On Friday, June 6, 2014 11:17:59 AM UTC+1, Ken Barber wrote: And another idea that I've seen people use is to install the Brightbox PPA packages for Ruby: http://brightbox.com/docs/ruby/ubuntu/ On Fri, Jun

Re: [Puppet Users] how to use variables elsewhere that's defined in a define() type?

2014-06-06 Thread Sans
Okay, here comes the follow-up question. I've changed the zpack_installer, which doesn't do any inline_template() things any more, instead it looks something like this now: define installer::zpack_installer($sure='present', $inst='false',

Re: [Puppet Users] how to use variables elsewhere that's defined in a define() type?

2014-06-06 Thread Felix Frank
On 06/06/2014 02:07 PM, Sans wrote: I think, the problem is coming from the @namebit. Is it right way of doing it? @name is indeed the issue - it is bound to a foreign value in this scope. if I do the same thing in a ruby console, replacing @name with a 'key', I get exactly what I expect.

[Puppet Users] Issue when i am trying to restart puppet-dashboard-workers

2014-06-06 Thread Supriya Uppalapati
Hi, when I am trying to restart puppet-dashboard-workers. It is giving me some information like this *service pe-puppet-dashboard-workers restartStopping pe-puppet-dashboard-workers: [ OK ]/etc/init.d/pe-puppet-dashboard-workers: line 68: log_daemon_msg: command

[Puppet Users] Don't know how to build task 'db:raw:vacuum'

2014-06-06 Thread Supriya Uppalapati
Hi , I am having this when I am trying to decrease the size of a database *sudo /opt/puppet/bin/rake -f /opt/puppet/share/puppet-dashboard/Rakefile RAILS_ENV=production db:raw:vacuum --tracerake aborted!Don't know how to build task

Re: [Puppet Users] how to use variables elsewhere that's defined in a define() type?

2014-06-06 Thread Sans
I never used the create_resources() and trying to get my head around it. So, how do I [re]write my define() type to work with create_resources() to do the same thing similar to this: class packages::zenpacks::core($pkgs_hash) { define installer::zpack_installer($sure='present',

[Puppet Users] Extracting gzipped sql archive, importing and finally deleting

2014-06-06 Thread Richie
I'm a little stuck with a puppet manifest due to the declarative nature of things and it's taking some time for the concept to fully sink in so could someone guide me in the right direction here (if this is the correct route of course). At the moment the setup is using vagrant, puppet and

[Puppet Users] Puppet + hiera file backend problem

2014-06-06 Thread Christian Charpentier
Hi, I'm using hiera with puppet and i want to store my resources out from the modules, in hieradata directory. Here is my hiera.yaml file: --- :hierarchy: - common #- %{operatingsystem} - %{::hostname} :backends: - yaml - file :yaml: :datadir: '/etc/puppet/hieradata'

Re: [Puppet Users] Puppet + hiera file backend problem

2014-06-06 Thread Doug Forster
Look at the error. Error 400 on Server: could not find template 'accounts.victorbuckservices.com.conf' at /etc/puppet/modules/apache/manifests/config.pp:9 on node puppetclient Do you have a file in /etc/puppet/templates/accounts.victorbuckservices.com.conf Or does it have a .erb ending? On Fri,

[Puppet Users] puppetlabs-java: installing oracle-jdk on ubuntu trusty 14.04

2014-06-06 Thread Milan Simonović
Hi, puppet 3.6.1 on a vanilla trusty ubuntu server, trying to install oracle-jdk: class { 'java': distribution = 'oracle-jdk', version = 'latest', } exits with the following error: Error: Could not update: Execution of '/usr/bin/apt-get -q -y -o