Re: [Puppet Users] r10k postrun + Puppetfile

2016-02-20 Thread Cory Stoker
What does your r10k.yaml look like for the postrun command? What you are trying to do is possible of course. I have a postrun script that I call that wraps and commands I want to perform post deploy. Your Puppetfile should be in the environment/ folder. So like /etc/puppetlabs/code/environments

Re: [Puppet Users] Question about Puppet CLI and --codedir

2016-02-06 Thread Cory Stoker
So reading this right you want to have an agent run code out of the test branch on the puppetserver and not the production branch? And it will work fine if you change the codedir on the puppetserver? The clients usually do not dictate the code directory on the remote server. They tell the server

Re: [Puppet Users] Re: puppetlabs-firewall issue

2014-07-02 Thread Cory Stoker
Hmm... Do you have plugin sync turned on in the agent config? Should see something like pluginsync = true in your puppet.conf. The error specified seems to be having an issue fining the type which is sync'ed from the master to the agents through plugin sync. On Tue, Jul 1, 2014 at 1:50 PM, Pabl

Re: [Puppet Users] Scaling of Puppet masters

2014-05-19 Thread Cory Stoker
I can weigh in a little on this... As far as scalability of the puppet masters, it can be variable depending on what kind of puppet code you are running. The largest item that can ruin scalability is long catalog compilation time. Another thing is run interval. Current at my workplace we run a p

Re: [Puppet Users] Re: puppetdb: how to install using the system ruby 1.9.3-p484

2014-01-21 Thread Cory Stoker
So how did you install Ruby 1.9.3? Did you create your own RPM or use something else? The RPM packages for puppet will have dependencies and then yum will try to satisfy them by looking in it's configured yum repositories. It usually tries to find the latest version. Looking at your output it lo

Re: [Puppet Users] gem install error

2013-12-16 Thread Cory Stoker
Some ruby gems are compiled and they need dependencies. In this case you need the MySQL development files. Usually it is an RPM like mysql-devel that you need in addition to gcc, make, etc... The first error is probably because you specify versions in gem differently than how you tried above. F

Re: [Puppet Users] replace a value in file

2013-10-25 Thread Cory Stoker
I would guess that the lens is error out when it attempts to load the file. Have you tried to use augtool manually to see if you can make your changes? One thing I notice is that if a lens cannot parse a file it will say in the error section. Taking a guess something like this: # augtool augtoo

Re: [Puppet Users] exporting custom facts to the puppet agents

2013-10-16 Thread Cory Stoker
Well the easiest way would be to make a puppet module and place your facts in the correct path. Then enable pluginsync which causes the fact to get downloaded to the puppet clients. See: http://docs.puppetlabs.com/guides/plugins_in_modules.html On Sun, Oct 13, 2013 at 3:00 AM, Sans wrote: > >

Re: [Puppet Users] Re: storeconfigs

2013-10-06 Thread Cory Stoker
It looks like you do not have all the Ruby gems installed. Storeconfigs requires Activerecord version 2.1 or later. On your system depending on how you install your Ruby gems, you should run: #see if Activerecord is installed gem list if you do not find it installed then you should install from

Re: [Puppet Users] Converting augeas snippet to puppet augeas resource

2013-10-06 Thread Cory Stoker
Ouch my eyes... Augeas can wreck your day sometimes. I have to ask though, why not use the Puppetlabs Firewall Module? It's here: https://forge.puppetlabs.com/puppetlabs/firewall Then you would do something like this: firewall { 'mayo_fw TCP/3': ensure => present, table => 'filter

Re: [Puppet Users] require one file from several environments

2013-10-06 Thread Cory Stoker
Data like this should probably go into hiera. Then write modules to use the data via parameterized classes or hiera() lookups. For example we use the "datadir" directive in hiera to split out hiera lookups to become environments aware. This would simplify your data structure to where you are just

Re: [Puppet Users] Newbie basic parameterized class usage question

2013-10-02 Thread Cory Stoker
Not sure if you got help or not but that error is telling you that filesys_group_acl is not a resource type. This is because you created it as a class and not a defined resource type. Defined types use the "define" keyword instead of the "class" keyword. http://docs.puppetlabs.com/puppet/3/refer

Re: [Puppet Users] Where does the puppet master get its hostname

2013-09-10 Thread Cory Stoker
Puppet uses Facter to determine the FQDN. I believe Facter uses a few methods to try and figure out the domain part, namely: hostname -f dnsdomainname parse out /etc/resolv.conf for the domain or search lines. HTH, Cory On Tue, Sep 10, 2013 at 1:16 PM, Nathan Valentine wrote: > Check both of t

Re: [Puppet Users] Puppet Dashboard Error 400 Invalid Parameter at passenger pp:48

2013-09-04 Thread Cory Stoker
Look at the apache::vhost definition. It looks to me that "template" is no longer a parameter to the defined type. Since this looks like puppetlabs-dashboard I would check out the puppetlabs-apache module to find the apache::vhost defined type in puppetlabs-apache/manifest/vhost.pp. If the param

Re: [Puppet Users] Re: Puppet first run timing out

2013-09-04 Thread Cory Stoker
We have lots of puppet clients on crappy bandwidth that would time out like this as well. The option we changed to fix this is: #Specify the timeout to wait for catalog in seconds configtimeout = 600 The default time is like 60 or 120 secs. Another thing you should do is check out the l

Re: [Puppet Users] Re: Installing PuppetDB on Red Hat 6.4 Postgresql issues

2013-07-24 Thread Cory Stoker
Hello: I always seem to not be able to use localhost even with Posgtres bound to all addresses. The command I tend to use is like: psql -h 10.10.10.10 -d puppetdb -U puppetdb -W then enter your password. HTH On Wed, Jul 24, 2013 at 2:01 PM, GregC wrote: > I was able to run a psql puppetdb w

Re: [Puppet Users] Re: 3.2.2 on CentOS 6.3, and "Did not receive certificate"

2013-07-23 Thread Cory Stoker
So that log looks like the Apache log... Do you have your puppetmaster logging to syslog as well? There should be more than just the "GET" lines from Apache. I think when you turn on --debug it will increase the normal logging of the puppetmaster to syslog. That is where you should see lines re

Re: [Puppet Users] Re: 3.2.2 on CentOS 6.3, and "Did not receive certificate"

2013-07-21 Thread Cory Stoker
Not exactly sure if you tried this but I would added --debug to your config.ru and then tail the logs on the puppetmaster. Clear out of client SSL dir on the agent to start from scratch and make sure the master does not have any leftover files from your client. config.ru with debug: $0 = "master

Re: [Puppet Users] Re: PuppetMaster LB on top of OCFS2

2013-07-18 Thread Cory Stoker
On Thu, Jul 18, 2013 at 1:53 PM, Jakov Sosic wrote: > On 07/18/2013 08:29 PM, GregC wrote: > >> Load balancing will work without issue, there is a good suggestion on >> using round robin DNS in Chapter 4 of Pro Puppet page 116. >> > > Yeah but I am little suspicious about two masters sharing /var

[Puppet Users] Puppetmaster 3.2.3 logging different than previous versions

2013-07-17 Thread Cory Stoker
Hello: After upgrading to Puppet 3.2.3 I have noticed that the puppetmaster does not log the catalog compilation time like it did in 3.1.1 or before. This log line used to look like: "myserver puppet-master[19002]: Compiled catalog for myhost in environment production in 1.01 seconds" Even if