[Puppet Users] Roles / profile pattern , inquire on how you handle some specific situations

2014-02-09 Thread JuanBrein
I've been using puppet on different companies and implementing the roles / profile pattern on some of them. In theory the patter works very well but in practice I usually face challenges that I sort out implementing my own designs / solutions. I would like to know how you guys deal with that

Re: [Puppet Users] How do I quiesce a puppetmaster before reconfiguring it?

2014-02-09 Thread JuanBrein
service httpd graceful will help. I would highly recommend you to have a dev / prd environment for your puppetmaster as well. Vagrant is very helpful for that. Having auto provisioned puppet masters is really helpful as it allows you to test new puppet master upgrades and configuration

Re: [Puppet Users] Is there a way to find unused puppet code (2.7)?

2014-02-09 Thread Henrik Lindberg
On 2014-09-02 2:53, Amos Shapira wrote: Hello, Is there a way to systematically find all modules we have which aren't used? Basically, the answer is no because it is not possible to statically analyze puppet code since all inputs are unknown. (This because references to types can be dynamic

Re: [Puppet Users] Is there a way to find unused puppet code (2.7)?

2014-02-09 Thread gh
On 2/8/14 8:53 PM, Amos Shapira wrote: Hello, Is there a way to systematically find all modules we have which aren't used? Two reasons for this question: 1. We use librarian-puppet to manage external modules and would like to find which of them can we remove. 2. We did some major

Re: [Puppet Users] can puppet manage puppet agents or puppetmasters?

2014-02-09 Thread Felix Frank
Hi, I just voted for Martin Alfke's recent answer. Specifically, I recommend to prefer cron over the running agent, that makes agent management much easier. Updating puppet and its configuration can be done via puppet easily. HTH, Felix On 02/09/2014 12:53 AM, Larry Fast wrote:

Re: [Puppet Users] Ubuntu Network Proxy via Puppet

2014-02-09 Thread Felix Frank
Hi, in what way is puppet failing? Generally, I'll have to remark that the manifest you shared facilitates (at least) three anti-patterns. 1. You rely on a large number of exec resources to do your work. Where so many commands need executing, you would be better off deploying a script via file {

[Puppet Users] How to deploy puppetserver? I do some stupid mistake, and I don't know which.

2014-02-09 Thread Adam Ryczkowski
I am trying to redeploy my puppetmaster infrastructure on new hardware. I am unable to get a simple (hello world) connection between puppet master and puppet client. I tried Ubuntu Saucy, and Ubuntu Precise as well as Puppet 3.4.2 and Puppet 3.2.4 (4 combinations in total). The steps I do

[Puppet Users] Re: How to deploy puppetserver? I do some stupid mistake, and I don't know which.

2014-02-09 Thread Adam Ryczkowski
Never mind. I've got the answer. I don't know, why I get the idea, that this is a problem with connectivity. The problem was with certificates, just as the output said so. After regerenerating certificates on puppet master and puppet client (as shown in

[Puppet Users] Facter errors with InfiniBand and VDSM

2014-02-09 Thread treydock
I have an ovirt node that has Infiniband and I'm seeing two seperate errors when running facter. sh: vdsmdummy: command not found and Ifconfig uses the ioctl access method to get the full address information, which limits hardware addresses to 8 bytes. Because Infiniband address has 20 bytes,

Re: [Puppet Users] How do I quiesce a puppetmaster before reconfiguring it?

2014-02-09 Thread Larry Fast
graceful-stop seems to be a modest improvement but its not a panacea. AFAIK it only ensures that open connections are not dropped. A puppet run seems to involve multiple connections. At best this only completes individual transactions before shutdown. Also, when I look at this problem in a

[Puppet Users] Re: Facter errors with InfiniBand and VDSM

2014-02-09 Thread treydock
After some debugging it seems it's the ;vdsmdummy; interface that's causing both problems. I have a host with Infiniband, and the same version of Puppet and Facter, that has no errors running facter. My guess is when ifconfig is executed for ;vdsmdummy; it's not using '2 /dev/null', but I

[Puppet Users] Unable to start puppetmaster on Mac OSX Mavericks

2014-02-09 Thread Ryan Nideffer
I've followed the installation guide for Mac OSX and I get this in puppetmaster.err upon starting the daemon with launchctl: Error: Could not create resources for managing Puppet's files and directories in sections [:main, :master, :ssl, :metrics]: undefined method `each' for nil:NilClass

Re: [Puppet Users] can puppet manage puppet agents or puppetmasters?

2014-02-09 Thread Sterling Windmill
Larry, I would assume that a masterless puppet could configure your puppet master and/or agent if desired. You would need to have puppet itself and the necessary manifests/modules available to you but what it sounds like you're looking for sounds imminently doable. You may want to just

Re: [Puppet Users] Is there a way to find unused puppet code (2.7)?

2014-02-09 Thread Henrik Lindberg
On 2014-09-02 17:36, Henrik Lindberg wrote: On 2014-09-02 2:53, Amos Shapira wrote: Hello, Is there a way to systematically find all modules we have which aren't used? Basically, the answer is no because it is not possible to statically analyze puppet code since all inputs are unknown. (This

Re: [Puppet Users] Roles / profile pattern , inquire on how you handle some specific situations

2014-02-09 Thread Ramin K
On 2/9/2014 4:47 AM, JuanBrein wrote: I've been using puppet on different companies and implementing the roles / profile pattern on some of them. In theory the patter works very well but in practice I usually face challenges that I sort out implementing my own designs / solutions. I would

Re: [Puppet Users] Roles / profile pattern , inquire on how you handle some specific situations

2014-02-09 Thread JuanBrein
THanks and great post by the way! I think we are pretty much on the same thinking behind. You don't add the package resource directly but using create_resources from hiera is almost the same thing. THe only difference is that your way is more flexible as you can add / remove packages just