Re: [Puppet Users] Puppet 2.7.19: Create exported resources (using custom type / provider) from Linux on Windows

2013-11-14 Thread Stefan Pommerening
1. Windows Server 2008 R2 Enterprise 2. because this is the requirement given by my client (installation of about 1,500 - 2,000 virtual machines, they won't switch that easy...) Am Mittwoch, 13. November 2013 22:39:02 UTC+1 schrieb Rob Reynolds: What version of Windows? Why such an older

[Puppet Users] Re: Issuing web request (REST) from puppet manifest

2013-11-14 Thread ulrich igor ngouagna kouete
Hi, thanks for reacting. To describe more what I want to do: I have a web API and I want to make some REST requests to it, and verify the response satus or body to make sure the request succeeded. With curl it gives this: exec{add a cluster ${clusterName}: command= curl -u

[Puppet Users] Re: Puppet 2.7.19: Create exported resources (using custom type / provider) from Linux on Windows

2013-11-14 Thread Stefan Pommerening
Hi John, thanks for posting. After having a look inside the puppet code I used the '--evaltrace true' option for another puppet agent run on the Windows vm and I got a lot of messages regarding my custom type (evalutation). Finally I have a proof that the communication regarding custom type

[Puppet Users] Optimize PuppetDashboard fail

2013-11-14 Thread alessandro mazzoli
Hi all, i can't optimize Puppet Dashboard /opt/puppet/share/puppet-dashboard# sudo -u puppet-dashboard rake RAILS_ENV=production db:raw:optimize Warning: Rails rake tasks currently unavailable because we can't find the 'rails' gem Could not load rdoc/task. Some rake tasks may not be

[Puppet Users] Optimize PuppetDashboard fail

2013-11-14 Thread alessandro mazzoli
Hi All, sry for that empty post, my bad.. i'm trying to optimize Puppet Dashboard but i get this: /opt/puppet/share/puppet-dashboard# sudo -u puppet-dashboard rake RAILS_ENV=production db:raw:optimize Warning: Rails rake tasks currently unavailable because we can't find the 'rails' gem

[Puppet Users] Re: Optimize PuppetDashboard fail

2013-11-14 Thread alessandro mazzoli
ruby -v 1.8.7 rails -v Rails 2.3.14 rake -v Warning: Rails rake tasks currently unavailable because we can't find the 'rails' gem Could not load rdoc/task. Some rake tasks may not be available without rdoc/task. The load error generated the following message: no such file to load --

[Puppet Users] Nested parametrized defines

2013-11-14 Thread Patricia Jung
Dear puppet wizards, http://docs.puppetlabs.com/puppet/3/reference/lang_defined_types.html does not suggest to me that nested parametrized defines would be forbidden, hence I expected the following code to work: add_to_ssh_authorized_keys.pp: define

[Puppet Users] Re: Issuing web request (REST) from puppet manifest

2013-11-14 Thread jcbollinger
On Thursday, November 14, 2013 3:06:05 AM UTC-6, ulrich igor ngouagna kouete wrote: Hi, thanks for reacting. To describe more what I want to do: I have a web API and I want to make some REST requests to it, and verify the response satus or body to make sure the request succeeded. With

[Puppet Users] Re: Puppet 2.7.19: Create exported resources (using custom type / provider) from Linux on Windows

2013-11-14 Thread Stefan Pommerening
SOLVED! My (dumb) problem was that I did not start the command window (on Windows server) using the right-click 'Administrator', but I used my own account which generally IS an account with full privileges but Windows seems to need the real thing... Unfortunately there is absolute NO error

Re: [Puppet Users] augeas onlyif problem

2013-11-14 Thread Jist Anidiot
On Monday, November 11, 2013 5:06:30 PM UTC-5, Dominic Cleal wrote: On 11/11/13 15:18, Jist Anidiot wrote: On Friday, November 8, 2013 12:23:11 PM UTC-5, Dominic Cleal wrote: On 06/11/13 21:17, Jist Anidiot wrote: I'm trying to make sure a specific user has a special

[Puppet Users] Re: Managing account shells with augeas

2013-11-14 Thread David Lutterkort
On Wednesday, November 13, 2013 11:23:15 AM UTC-8, Bret Wortman wrote: Next fun topic for today: our security folks want to change all the /sbin/nologin and related shells to /dev/null. Augeas seems the perfect tool for this, but I'm having a devil of a time getting close to something

[Puppet Users] Re: Augeas JSON example?

2013-11-14 Thread David Lutterkort
I don't have any examples handy, but the easiest way to try out managing the file with Puppet is to store it somewhere, say /tmp/file.json and then play around with it in augtool: augtool -A -t 'Json incl /tmp/file.json' augtool match /files/tmp/file.json/dict/entry[. = 'svc_port']/*

Re: [Puppet Users] Re: Managing account shells with augeas

2013-11-14 Thread Bret Wortman
You know what's sad? I looked at setm when I was poking around with augtool, but didn't see any examples using Puppet so I never circled back to it. I ended up writing a shell script with a sed script inside, distributing that using file and then executing it via an exec in refreshonly mode. I'll

[Puppet Users] Enterprise support for Puppet

2013-11-14 Thread harshit
Wondering if all of you guys are getting the enterprise support. Also, if PuppetLabs the only company providing this kind of support or do you have anyone else giving the support Thanks Harshit -- You received this message because you are subscribed to the Google Groups Puppet Users group.

Re: [Puppet Users] User Management in LDAP/Kerberos (freeipa)

2013-11-14 Thread Brian Mathis
Puppet is really meant for managing systems, not data. The data in LDAP is really more like database data, not so much as system information, even though many system services use it to get information. Consider if you would use Puppet to manage data (like web site content) in a MySQL database.

[Puppet Users] Best practice for win7 clients?

2013-11-14 Thread Andy Spiegl
Hi all, after setting up puppet for my linux clients yesterday I started tackling the windows7 PCs. I managed setting up users and deploying files but I couldn't get it to install software, e.g. Mozilla Firefox. I ran into various problem. First, puppet agent threw strange errors probably

Re: [Puppet Users] Migrating from Puppet open-source to Puppet Enterprise

2013-11-14 Thread Forrie
Thanks, Jason. On a related note, we have maybe 50 +/- hosts -- and though we do use VMWare, I am not sure we really need separate hosts for all of the Roles. For example, the master will be on real-iron, and the PuppetDB will be (for now) virtual. But another role for Console seems like

Re: [Puppet Users] Augeas JSON example?

2013-11-14 Thread John Simpson
On 2013-11-13, at 1456, David Lutterkort lut...@puppetlabs.com wrote: I don't have any examples handy, but the easiest way to try out managing the file with Puppet is to store it somewhere, say /tmp/file.json and then play around with it in augtool: That's what I eventually ended up doing,

[Puppet Users] Re: puppet module list error: Error: No source module metadata provided for mcollective

2013-11-14 Thread Ashley Penney
Hi! I'm afraid this was mostly my fault, we released a version of mcollective without some needed metadata and recently changes made this more problematic than it used to be. I've uploaded a new release so you should be able to fix this with: puppet module uninstall puppetlabs-mcollective

Re: [Puppet Users] Best practice for win7 clients?

2013-11-14 Thread Rob Reynolds
Are these non-enUS Windows clients? 2.7 ran on an older version of ruby (1.8.7 I believe) that allowed for encoding to be more loose. That was tightened up in 1.9 and might be what you see occurring as parts of the code base still open tickets for this. WIth the chocolatey provider, I would say

Re: [Puppet Users] Re: Puppet 2.7.19: Create exported resources (using custom type / provider) from Linux on Windows

2013-11-14 Thread Rob Reynolds
Glad to see you have it solved. As John had previously mentioned, Windows support was early in that version so that could be why you were not seeing error messages. On Thu, Nov 14, 2013 at 8:33 AM, Stefan Pommerening p...@dmsp.de wrote: SOLVED! My (dumb) problem was that I did not start the

Re: [Puppet Users] Re: Issuing web request (REST) from puppet manifest

2013-11-14 Thread Rich Burroughs
I haven't coded this sort of thing but I know of one example. We use a module where I work to configure our Opsview monitoring software. It sends requests to the Opsview REST API, parses the responses, and sends more requests to update anything that needs it. If you want to look at it:

Re: [Puppet Users] Nested parametrized defines

2013-11-14 Thread Henrik Lindberg
On 2013-14-11 12:32, Patricia Jung wrote: Dear puppet wizards, http://docs.puppetlabs.com/puppet/3/reference/lang_defined_types.html does not suggest to me that nested parametrized defines would be forbidden, hence I expected the following code to work: add_to_ssh_authorized_keys.pp:

Re: [Puppet Users] User Management in LDAP/Kerberos (freeipa)

2013-11-14 Thread William Leese
The data in LDAP is really more like database data, not so much as system information I guess the question really evolves around this: despite the system configuration being stored in a datastore that provides infinitely amount of flexibility, do you continue to consider your system

Re: [Puppet Users] Puppet agent does not start in Solaris zone

2013-11-14 Thread Rich Burroughs
Hi, It's starting up through SMF? What happens if you try to run the agent directly? Like: sudo puppet agent -t Or run it as root without sudo. Rich On Wednesday, November 13, 2013, Andreas Dvorak wrote: Dear all the puppet agent does not want to start on my first Solaris zone. I have