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

2013-11-13 Thread William Leese
Hi, I'm faced with the question if we should be doing user management directly using freeipa (an integrated LDAP, Kerberos, CA, etc) or by manipulating freeipa using Puppet. Installation and configuration of the service is already performed through Puppet so this only concerns the data stored

Re: [Puppet Users] What the correct way to downgrade version with puppet? (CentOS 6.4)

2013-11-13 Thread shlo . afgin
Thanks, It's work! On Thursday, November 14, 2013 1:29:03 AM UTC+2, jcbollinger wrote: > > > > On Wednesday, November 13, 2013 8:29:33 AM UTC-6, shlo@gmail.comwrote: >> >> >> >> From the command line, with '*rpm*' I get errors about dependencies but >> if I remove it using '*yum*' it remove i

Re: [Puppet Users] Re: mysql value lookup from manifest

2013-11-13 Thread Andrei-Florian Staicu
Thanks, I will continue like that. On Thu, Nov 14, 2013 at 1:17 AM, jcbollinger wrote: > > > On Wednesday, November 13, 2013 2:32:36 PM UTC-6, SAF wrote: >> >> Hi, >> >> What would be the best way to get a something from mysql? >> I was looking at hira-mysql, but it doesn't seem to be able to ru

Re: [Puppet Users] What the correct way to downgrade version with puppet? (CentOS 6.4)

2013-11-13 Thread jcbollinger
On Wednesday, November 13, 2013 8:29:33 AM UTC-6, shlo@gmail.com wrote: > > > > From the command line, with '*rpm*' I get errors about dependencies but > if I remove it using '*yum*' it remove it successfully. > so I write: > > *package { 'php-common':* > * provider => 'yum',* > * ensure =>

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

2013-11-13 Thread jcbollinger
On Wednesday, November 13, 2013 10:03:35 AM UTC-6, ulrich igor ngouagna kouete wrote: > > Hi, > > I'm looking for a resource / type that will allow me to issue web requests > from a manifest file. I've heard about the web_request module , but seems > quite dificult to use (in fact I do not suc

[Puppet Users] Re: mysql value lookup from manifest

2013-11-13 Thread jcbollinger
On Wednesday, November 13, 2013 2:32:36 PM UTC-6, SAF wrote: > > Hi, > > What would be the best way to get a something from mysql? > I was looking at hira-mysql, but it doesn't seem to be able to run > arbitrary commands. > For example, I want to get part of the motd from mysql, depending on the

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

2013-11-13 Thread jcbollinger
On Wednesday, November 13, 2013 9:58:53 AM UTC-6, Stefan Pommerening wrote: > > Hi there, > > I'm totally stuck with the following (cross-platform) problem: > > - I use a custom type as exported resource which is being 'filled-in' on > Linux servers > and this type should be realized / created

[Puppet Users] Re: Thousands of "FileBucket got a duplicate file" messages

2013-11-13 Thread GeekBiker
Ah, ha. Thanks. i added "backup => false" to the file resource and it stopped the noise. I'm making sure there are no negative side effects before rolling the change out. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from t

Re: [Puppet Users] Re: Error: Could not retrieve catalog from remote server Puppet Enterprise

2013-11-13 Thread Josh Cooper
On Wed, Nov 13, 2013 at 1:29 PM, Sam Oehlert wrote: > Josh, > > Sorry, I thought posting a new topic on the puppet-users google group > would have the same effect. > > When I look in syslog (even after turning on debugging) all I see is: > > Puppet::Parser::Compiler failed with error NoMethodErro

[Puppet Users] Puppet Dashboard Question

2013-11-13 Thread GregC
I am trying to pull information down to my dashboard server one of my Puppet master. I can do the following and retrieve inventory information without any issue using API curl -k -H "Accept: yaml" https://puppet:8140/production/facts/node But when I try to retrive the same facts from Puppet Das

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

2013-11-13 Thread Rob Reynolds
What version of Windows? Why such an older version of Puppet? On Wed, Nov 13, 2013 at 9:58 AM, Stefan Pommerening wrote: > Hi there, > > I'm totally stuck with the following (cross-platform) problem: > > - I use a custom type as exported resource which is being 'filled-in' on > Linux servers

[Puppet Users] Re: Error: Could not retrieve catalog from remote server Puppet Enterprise

2013-11-13 Thread Sam Oehlert
Josh, Sorry, I thought posting a new topic on the puppet-users google group would have the same effect. When I look in syslog (even after turning on debugging) all I see is: Puppet::Parser::Compiler failed with error NoMethodError: undefined method `[]' for nil:NilClass on node (hostname here)

Re: [Puppet Users] Thousands of "FileBucket got a duplicate file" messages

2013-11-13 Thread Josh Cooper
On Wed, Nov 13, 2013 at 11:13 AM, GeekBiker wrote: > On developer servers we create a sandbox directory for each user and set > the permissions on the directory so that apache and other developers can > access it if necessary. Here's what we use: > > "${home_dir}/${name}/sandboxes

[Puppet Users] mysql value lookup from manifest

2013-11-13 Thread Andrei-Florian Staicu
Hi, What would be the best way to get a something from mysql? I was looking at hira-mysql, but it doesn't seem to be able to run arbitrary commands. For example, I want to get part of the motd from mysql, depending on the hostname. Up until now, i was using a script, calling it with generate the m

Re: [Puppet Users] Puppet dashboard web interface

2013-11-13 Thread Jason Antman
Oh wow. I shouldn't comment before I have my coffee. Yes you have it exactly right, if you call the parameter "env", it will show up as "$::env". I've fixed the example below. -jantman On 11/13/2013 08:50 AM, Thomas RICOU wrote: > Hi, I think you understood quite well my question even if I was n

[Puppet Users] Managing account shells with augeas

2013-11-13 Thread Bret Wortman
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 that'll work: augeas { 'fix-bad-passwd-shells': context => "/files/etc/passw

[Puppet Users] Thousands of "FileBucket got a duplicate file" messages

2013-11-13 Thread GeekBiker
On developer servers we create a sandbox directory for each user and set the permissions on the directory so that apache and other developers can access it if necessary. Here's what we use: "${home_dir}/${name}/sandboxes": owner => "$name",

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

2013-11-13 Thread Andreas Dvorak
Now I have tried the version puppet3 CSWpuppet3 3.1.1,REV=2013.03.15 780.4 KB from testing branch. but it has the same problem. Regards, Andreas -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from t

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

2013-11-13 Thread Christopher Wood
Generically, this sounds like you're trying to retrieve some external information and hiera is still a better option. In hiera you would have your backend fetching data from $someplace, wherever that place is (ldap, yaml, etc.). Maybe even write yourself a new backend. More specifically, discus

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

2013-11-13 Thread Andreas Dvorak
Dear all the puppet agent does not want to start on my first Solaris zone. I have already Puppet on x86 server running. Can anybody please help me? I have created a package for Solaris 10 Sparc to use the puppet agent on a Solaris zone. /opt/csw/bin/pkgutil -a puppet common packa

Re: [Puppet Users] Puppet dashboard web interface

2013-11-13 Thread Thomas RICOU
Well, I tried, and (even in default.pp) i can access the var with $::env. Thanks anyway. Le mercredi 13 novembre 2013 14:50:56 UTC+1, Thomas RICOU a écrit : > > Hi, I think you understood quite well my question even if I was not so > clear... ;) > > Anyway, according to what you say, let's say

[Puppet Users] Re: [Puppet-dev] Announce: Puppet 3.3.2 Available

2013-11-13 Thread Matthaus Owens
That is because apt is still bringing in 3.3.2 of puppet-common. To install a specific version using apt you must specify versions for both puppet and puppet-common. Something like 'apt-get install puppet=3.3.1-1puppetlabs1 puppet-common=3.3.1-1puppetlabs1' should work. Or see the example on pinnin

Re: [Puppet Users] How to identify unset variables?

2013-11-13 Thread Henrik Lindberg
On 2013-12-11 17:45, Schofield wrote: I want to list out all the variables that do not have values set for a catalog. Can puppet do this? No, not really - in theory it is an infinite number of variables :-) What is it you are trying to achieve? Here are some tips based on guessing what it i

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

2013-11-13 Thread ulrich igor ngouagna kouete
Hi, I'm looking for a resource / type that will allow me to issue web requests from a manifest file. I've heard about the web_request module , but seems quite dificult to use (in fact I do not succeed in issuing a POST request with a JSON body doc). Any ideas about that? Thanks. -- You rece

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

2013-11-13 Thread Stefan Pommerening
Hi there, I'm totally stuck with the following (cross-platform) problem: - I use a custom type as exported resource which is being 'filled-in' on Linux servers and this type should be realized / created by some ruby provider on a Windows server. Puppet on Linux and Windows is always 2.7.19.

[Puppet Users] Re: Accessing hash values in defined type

2013-11-13 Thread Bret Wortman
Thanks. I'll give that a look. I got it working like this: define compliance::file { $fmode=$title['mode'] $fname=$title['name'] file { $fname: path => $fname, mode => $fmode, } } And then I can reference it like this: compliance::file { $files: } But I'd like to find somethin

[Puppet Users] Re: Announce: Puppet 3.3.2 Available

2013-11-13 Thread LaMs
This new version in the apt repository of Ubuntu precise (maybe other version of OS too) has problem when specifying a specific version for puppet package: Step to reproduce: 1: Install a fresh ubuntu precise from iso 2: Add puppetlabs repo - wget https://apt.puppetlabs.com/puppetlabs-release-p

[Puppet Users] Re: Accessing hash values in defined type

2013-11-13 Thread Gavin Williams
Bret Sounds like 'create_resources' might be a good fit here... Take a look at http://four-eyes.net/2013/09/puppet-passing-a-hash-of-variables-to-a-defined-type/ Alternatively, if you can't use 'create_resources' you probably want to add a parameter to the defined type, and then use the ind

Re: [Puppet Users] What the correct way to downgrade version with puppet? (CentOS 6.4)

2013-11-13 Thread shlo . afgin
>From the command line, with '*rpm*' I get errors about dependencies but if I remove it using '*yum*' it remove it successfully. so I write: *package { 'php-common':* * provider => 'yum',* * ensure => absent,* *}* But it still use the '*rpm*' command and give me conflict rpm have. It's ignor

Re: [Puppet Users] Looking to repair "Unrecognised escape sequence" if possible

2013-11-13 Thread Dan White
That works. Many thanks. “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.” Bill Waterson (Calvin & Hobbes) - Original Message - From: "Josh Cooper" To: puppet-users@googlegroups.com Sent: Wednesda

Re: [Puppet Users] Puppet dashboard web interface

2013-11-13 Thread Thomas RICOU
Hi, I think you understood quite well my question even if I was not so clear... ;) Anyway, according to what you say, let's say that my (ENC) group is named 'DEVEL' and the var named 'env' is set to 'devel'. I add the node 'foo.example.com' to the 'DEVEL' group. Shouldn't the var be named '::e

[Puppet Users] Accessing hash values in defined type

2013-11-13 Thread Bret Wortman
I'm sure this is so simple I'm just not seeing it. I have an array of hashes of filenames & modes defined in hiera (the actual problem is a tad more complex, but for simplicity, if I can solve this, I can solve the bigger problem): files: - name: /etc/skel/.bashrc mode: 600 - name: /etc

Re: [Puppet Users] Puppet dashboard web interface

2013-11-13 Thread Jason Antman
Tom, I'm not sure I totally understand your question; I've also never used an ENC (like dashboard) with default.pp, only with modules. If you set a parameter called "env" on a group in Dashboard, and then add node "foo.example.com" to that group, the parameter will available in puppet as a top-sc

[Puppet Users] Puppet dashboard web interface

2013-11-13 Thread Thomas RICOU
Hi I'm kinda noobish to puppet and I can't find an answer to my question. What can I can do with the dashboard groups ? In fact I'm interested in setting a var "env" to a value in ['devel','valid','prod']. this value should be set only once when I create a new virtual machine using a puppet age

Re: [Puppet Users] What the correct way to downgrade version with puppet? (CentOS 6.4)

2013-11-13 Thread shlo . afgin
Now I got an error that Puppet cannot successfully remove the php with the error: *Error: Execution of '/bin/rpm -e 'php-5.5.5-2.el6.remi.x86_64' returned 1: error: package 'php-5.5.5-2.el6.remi.x86_64 is not installed* *Error: /Stage[main]/Php/Package[php-5.5.5-2.el6.remi.x86_64]/ensure: chan

Re: [Puppet Users] Error: Could not retrieve catalog from remote server Puppet Enterprise

2013-11-13 Thread Xav Paice
That one seems to happen every time I stuff up the permissions on the puppet and SSL directories, probably worth a check. On 12/11/2013 11:03 am, "Sam Oehlert" wrote: > We are trying to set up PE 3.1 on RHEL 6 boxes. We were able to install > the clients fine and they were listed as working in th