Re: [Puppet Users] Best practices: client/server VS Git

2014-02-21 Thread Dirk Heinrichs
Am 20.02.2014 16:15, schrieb Julien Deloubes: For the moment i see 2 ways for Puppet to synchronize nodes: -Puppet client/server way with a puppetmaster node -Decentralized way, with node pull their configuration from a Git repo and make a puppet apply on their own. Can you told me what is

Re: [Puppet Users] Hash iteration order in a template not consistent

2014-02-21 Thread Andre Nathan
On Thursday, February 20, 2014 12:06:15 PM UTC-3, jcbollinger wrote: File a ticket if you wish, but personally, I'm inclined to say that *any*reliance on iteration order of a hash is dodgy. If iteration order matters then you need to take proactive measures to ensure that you reliably get

[Puppet Users] Re: apache / passenger how do you update puppet on the server in EL6.4?

2014-02-21 Thread jmp242
And to fully close this out - I ended up with a strange configuration going from Foreman 1.1 - 1.4 and Puppet 3.1.x - 3.4.2... In Passanger.conf Change: PassengerRuby /usr/bin/ruby193-ruby To: /usr/bin/ruby And in the virtual host definitions add: PassengerRuby /usr/bin/ruby193-ruby

[Puppet Users] Module and class names confusion

2014-02-21 Thread Anton Patiev
Hello everyone! This may be a stupid question since i'm relatively new in Puppet, but I haven't found an answer. I have external module, named, for example, 'ntp' and my own module 'profile', which contains class with the same name. When i try to apply my configuration, puppet says 'Could not

[Puppet Users] mco ping command from linux puppet master is unable to fetch information about windows servers.

2014-02-21 Thread Pradeep Reddy
Problem Description:- --- 1) mco agent from windows is unable to communicate to linux puppet master. Both the mco agent in windows and mco server in linux are at 2.4.1 versions. Below are the errors in the mcollective.log. Below logs are getting generated when mco ping command

[Puppet Users] Re: Puppet apply hangs when trying to use puppet.conf manifest attribute

2014-02-21 Thread jcbollinger
On Thursday, February 20, 2014 8:45:58 PM UTC-6, Alan Castro wrote: Hi, I've been trying to use puppet apply with no manifest argument, so that it uses the manifest defined on my environment in my puppet.conf. For my suprise, it didn't work. I simply don't understand why the modulepath

[Puppet Users] Re: Puppet client removing yum / rpm cache?

2014-02-21 Thread jcbollinger
On Thursday, February 20, 2014 5:03:53 PM UTC-6, Christopher Opena wrote: Howdy folks, I've got some weird behavior from one of my puppet clients (actually the client running on the puppet master), where running the agent somehow destroys either the yum cache or the rpm db. Directly

[Puppet Users] Re: Getting rid of YAML?

2014-02-21 Thread jcbollinger
On Thursday, February 20, 2014 4:41:33 PM UTC-6, JonY wrote: Looks like my server updated to 3.4.2. Since then I've started seeing these occasional messages like: Feb 20 14:19:05 puppet-master[5626]: YAML in network requests is deprecated and will be removed in a future version. See

[Puppet Users] Re: Getting rid of YAML?

2014-02-21 Thread JonY
On Friday, February 21, 2014 8:10:23 AM UTC-8, jcbollinger wrote: On Thursday, February 20, 2014 4:41:33 PM UTC-6, JonY wrote: Looks like my server updated to 3.4.2. Since then I've started seeing these occasional messages like: Feb 20 14:19:05 puppet-master[5626]: YAML in network

[Puppet Users] Re: Get subdirectories by fact

2014-02-21 Thread jcbollinger
On Thursday, February 20, 2014 9:21:02 AM UTC-6, Daniel K. wrote: Hello everyone, i am trying to write my first custom fact but i don't know how. I didn't find any good instructions or list of functions i can use. Well, the first place to look for docs would be among PL's online facter

[Puppet Users] Host is missing hostname and/or domain

2014-02-21 Thread JonY
I have 36 (seemingly) identical machines deployed from a single manifest. For some reason I'm getting this error in my logs for a subset of them. /etc/hosts: 127.0.0.1 hostname hostname.fqdn localhost Where else should I look? -- You received this message because you are subscribed to the

Re: [Puppet Users] Style and Formatting Best Practice

2014-02-21 Thread Erik Dalén
Personally I prefer the second style in both cases. That is also what vim-puppet will do when autoindenting files. On 20 February 2014 17:51, Charles McLaughlin mclaughli...@gmail.comwrote: Hello, I'm trying to develop Puppet style guidelines at my job and would like some feedback and

Re: [Puppet Users] Re: how to require a md5sum before installing?

2014-02-21 Thread Andy Spiegl
Tell me more about your goal! What you really need!? Are your client Windows or Linux ? Most of them are Linux, but many user workstations are Windows. I am trying to set up puppet to update the most security crucial programs on these Windows machines: Java, Flash, Firefox, Thunderbird,

Re: [Puppet Users] Re: how to require a md5sum before installing?

2014-02-21 Thread Rafael Cristaldo
Hi Andy... I think i got your idea I use this module ARCHIVE with Linux workstations, and the módule I created was to install our ERP system, so i use the ARCHIVE do download the package tar.gz from our FTP server, for example: url = 'http://ftp.company.com/puppet/system.tar.gz' So, with

[Puppet Users] Using same script for multiple services fails

2014-02-21 Thread Guy Knights
I'd like to use the same init script (via upstart) for multiple service definitions, and I thought that if I gave them different titles but the same name paramter (eg. script name) it should allow that. However, I get a duplicated definition error. eg. * service { gamedeploy-backend:* *name

Re: [Puppet Users] Re: how to require a md5sum before installing?

2014-02-21 Thread Andy Spiegl
Hi Rafael, It download the tarball, extract it to the target /usr/local , check with MD5 and install my ERP. Windows doesn't have md5sum functionality built in. I have to get md5sum.exe to the machine somehow. The ARCHIVE module uses curl, rm, tar, unzip, ... Lots of unix tools. :-( Thanks,

[Puppet Users] Re: Style and Formatting Best Practice

2014-02-21 Thread Kaito Kumashiro
On Thursday, 20 February 2014 23:51:07 UTC+1, Charles McLaughlin wrote: class foo { package { 'bar': requires = [ File[1], File[2] ] This format makes changes a bit easier. For example, when you want to remove one or more File(s) in Vim ('dd'). Last array element

[Puppet Users] Re: Server Groups - How to ?

2014-02-21 Thread Kaito Kumashiro
On Wednesday, 19 February 2014 11:57:59 UTC+1, kaustubh chaudhari wrote: I wish to group Windows server and Linux server in Windows server group and Linux server group respectively. Is there a way to do that for more that 3000 servers ? adding individual will be tedious job. I see two

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

2014-02-21 Thread maks N
Hi to all. I have CA with root certificate rootCA.pem, and intermediate CA certificate puppetRootCA.pem (signed by rootCA.pem) for Puppet infrastructure. I want that Puppet CA subsystem use certs and keys puppetRootCA.pem and puppetRootCA.key. In documentation written (in section Supported

[Puppet Users] Using the user

2014-02-21 Thread Joe Bond
Hello: I've been able to add users and groups without any issue on a bunch of test machines, but I'm wondering if there is a way to check if a password has already been set for a user before overwriting it. Searching for common words like 'user' and 'password' brings up a bazillion hits, and

[Puppet Users] Cannot see puppet master node in Dashboard

2014-02-21 Thread Nick Hobart
I've set up an open source puppet master on: open-master.company.local I've also set up the open source Dashboard running (seemingly) fine on port 3000. However, I do not see the puppet master listed in the nodes. Any ideas/help would be greatly appreciated. Thanks.

Re: [Puppet Users] Using the user

2014-02-21 Thread Christopher Wood
Common user authentication is a fairly common, solved problem. You'd probably be better off setting up an ldap backend to pam or something than messing about with passwords. There are any number of modules on the puppet forge to crib from (search for ldap). On Fri, Feb 21, 2014 at 12:25:41PM

[Puppet Users] Arrays and case statements

2014-02-21 Thread Kim Scarborough
So I have a bunch of linux servers in different groups. Each server's group is defined as a custom fact. I want to set an array variable based on the server's group membership, so I have code like this: case $servergroup { MAMMAL: { $foo = ['horse', 'cow', 'dog'] } REPTILE: { $foo =

Re: [Puppet Users] Arrays and case statements

2014-02-21 Thread Eugene Vilensky
On Fri, Feb 21, 2014 at 3:47 PM, Kim Scarborough chow...@gmail.com wrote: Is what I'm trying possible? Am I going about this totally the wrong way? Check out how classifying your data using Hiera can resolve and simplify this: http://docs.puppetlabs.com/hiera/1/index.html#why-hiera -- You

Re: [Puppet Users] Arrays and case statements

2014-02-21 Thread Kim Scarborough
On Friday, February 21, 2014 7:09:43 PM UTC-6, Trammael wrote: Check out how classifying your data using Hiera can resolve and simplify this: http://docs.puppetlabs.com/hiera/1/index.html#why-hiera Wow, that's hard to understand (at least for me). Will that still work with an array in a