Re: [Puppet Users] exec not executing

2016-02-22 Thread Tim Dunphy
cas wrote: > Hi, > > It's because you are using "refreshonly => true,". In order to work, you > need to use something like this after you includes: > > Class['bacula::config'] ~> > Class['bacula::exec'] > > If you want your exec t

[Puppet Users] exec not executing

2016-02-21 Thread Tim Dunphy
Hey guys, I wrote an exec class for one of my modules. And for some reason, on puppet runs it's not executing. Here's the class: class bacula::exec { exec { 'create.mysql.admin.user': path => "/bin", command => "mysql -e 'grant all privileges on *.* to 'admin'@'localhost' identifie

[Puppet Users] override values in puppet account creation

2016-01-23 Thread Tim Dunphy
Hey guys, I've got a puppet module that creates user accounts on linux machines. I'm trying to override a couple settings in my config for the user's shell and home directory. And I'm getting this error: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Invalid par

Re: [Puppet Users] require two different types

2015-12-23 Thread Tim Dunphy
Hi Garrett, That's great. And that explanation makes perfect sense! I understand this a little better now. And using the example you provided works. Thanks, Tim On Wed, Dec 23, 2015 at 5:52 PM, Garrett Honeycutt wrote: > On 12/23/15 4:14 PM, Tim Dunphy wrote: > > Hello, >

[Puppet Users] require two different types

2015-12-23 Thread Tim Dunphy
Hello, How can I require two different types in my manifests? For instance I have this setup in one of my modules: file { "/etc/pki/tls/private/${::hostname}.example.com.key": owner => "bacula", group => "bacula", mode => 0400, require => Package["bacula-client","bacula-c

Re: [Puppet Users] file absent in config manifest fails

2015-10-16 Thread Tim Dunphy
rom the class names I'd assume, only > one of them is included on your node. Hi David, Ah, ok! That sounds right. So as long as the resource that is sent to the agent is unique, you're good. Thanks for the clarification! Thanks Tim On Fri, Oct 16, 2015 at 6:20 AM, David Schmitt wr

Re: [Puppet Users] file absent in config manifest fails

2015-10-14 Thread Tim Dunphy
wrelic.cfg.erb'), before => Service[$newrelic_php_service], notify => Service[$newrelic_php_service], } Is what worked. Also, I may go ahead and change the manifests per your advice, but that's more of a style issue than a functional one I think. Thanks!! Tim On Wed,

[Puppet Users] file absent in config manifest fails

2015-10-14 Thread Tim Dunphy
Hey guys, On puppet server 3.8.2 here. And I have a file definition that I want to set as 'absent'. For example, this is what I have: file { '/etc/newrelic/newrelic.cfg': ensure => absent, path=> '/etc/newrelic/newrelic.cfg', content => template('newrelic/newrelic.cfg.erb'),

[Puppet Users] mysql service class does not start stopped service

2015-09-29 Thread Tim Dunphy
Hey puppeters, Got a question about a service class for a mysql module that I wrote. I've seen that this class: class mysql::service { if $osfamily == "RedHat" and $operatingsystemmajrelease == 7 { service {"mysql": ensure => running, hasstatus => true,

Re: [Puppet Users] automating mysql my.cnf with puppet

2015-09-19 Thread Tim Dunphy
Hey all, Ok, sorry if I didn't get to all of your suggestions. But I did elect to try this one: server-id=<%= @hostname.match(/db([0-9]+)/); $1 %> Which I modified slightly to: server-id=<%= @hostname.match(/db([0-4]+)/); $1 %> Because I only run 4 mysql servers atm. And BOOM! That does it e

[Puppet Users] automating mysql my.cnf with puppet

2015-09-15 Thread Tim Dunphy
Hey guys, Is there any other way to automate this setting in my.cnf: server-id=1 So that if the host is db1 it'll get a value of 1, for db2 a value of 2, for db3 a value of 3 and db4 a value of 4? The only way I can think of this is to have branching logic in the puppet manifest that does a te

Re: [Puppet Users] Net::ReadTimeout errors

2015-07-18 Thread Tim Dunphy
once I have some results. Thanks! Tim On Fri, Jul 17, 2015 at 9:58 PM, Felix Frank < felix.fr...@alumni.tu-berlin.de> wrote: > On 07/18/2015 03:20 AM, Tim Dunphy wrote: > > Hey Felix, > > thanks, but those aren't the important ones I'm afraid. There should be >&g

Re: [Puppet Users] Net::ReadTimeout errors

2015-07-17 Thread Tim Dunphy
else that could help track down the issue. Thanks! Tim On Fri, Jul 17, 2015 at 4:40 PM, Felix Frank < felix.fr...@alumni.tu-berlin.de> wrote: > On 07/17/2015 10:37 PM, Tim Dunphy wrote: > > > > Hi Felix, > > > > Thanks for getting back to me! And yes, you are co

Re: [Puppet Users] Net::ReadTimeout errors

2015-07-17 Thread Tim Dunphy
r...@alumni.tu-berlin.de> wrote: Hi, I'm not very familiar with the puppet/foreman stack, so this might be a silly question, but how is the master set up? Is it running through Apache/Passenger? In that case, can we see the Apache vhost configuration? Thanks, Felix On 07/15/2015 05

[Puppet Users] Net::ReadTimeout errors

2015-07-14 Thread Tim Dunphy
Hey all, I'm running puppet version 3.7.5 with foreman 1.7.4. Everything was going well with this setup for quite a long time. Many months at least it ran without even so much as a hiccup! Until recently when I started adding more nodes I've found this issue I'm having occurring every couple of

Re: [Puppet Users] permission denied on files

2015-06-19 Thread Tim Dunphy
uppet /var/log/audit/audit.log | audit2allow #= passenger_t == allow passenger_t nfs_t:file open; But how do I turn this into an selinux command that allows this to work? thanks! Tim On Wed, Jun 17, 2015 at 8:50 AM, Tim Dunphy wrote: > mydomain.com <-> jokefire.

Re: [Puppet Users] permission denied on files

2015-06-17 Thread Tim Dunphy
> > -rw-r--r--. 1 puppet puppet 2.0K Jun 16 21:53 monitor1.jokefire.com.crt > > -rw-r--r--. 1 puppet puppet 3.2K Jun 16 21:53 monitor1.jokefire.com.key > > mydomain.com <-> jokefire.com > > Is this copy-n-paste or does the filename and the source name not match? > &

[Puppet Users] permission denied on files

2015-06-16 Thread Tim Dunphy
Hi all, I've setup a puppet module to install and keep the bacula backup system running on a number of systems. Part of the formula I've come up with is to transfer an SSL cert/key pair to each host that uses the module. So that bacula can work over TLS. I have this defined in my bacula confi

[Puppet Users] using vhost templates & definitions in puppet

2015-06-09 Thread Tim Dunphy
Hey all, I have a few different templates that I'd like to use to generate some apache configurations using definitions. I have a standard vhost template that works quite well! However that's the only one that works. Anytime I try to specify one of the other template definitions I get an error.

Re: [Puppet Users] puppet cron jobs overwhelming host

2015-05-01 Thread Tim Dunphy
> Also you could consider wrapping these in a flock to prevent actions piling= > up behind each other - like described here: > http://www.elevatedcode.com/2013/05/07/flock-for-cron-jobs.html > > Many other examples on the net. Ok, Dan. That's really good info! Thanks and I'll be sure to check it

Re: [Puppet Users] puppet cron jobs overwhelming host

2015-05-01 Thread Tim Dunphy
proach that I hope to learn from! Thanks! Tim On Fri, May 1, 2015 at 1:06 PM, Peter Bukowinski wrote: > On May 1, 2015, at 12:52 PM, Tim Dunphy wrote: > > This isn't really a Puppet problem, but regardless: >> Those cron entries are for "every minute during the zeroth h

Re: [Puppet Users] puppet cron jobs overwhelming host

2015-05-01 Thread Tim Dunphy
nd => "/bin/find /var/www -type d -exec chmod -v 775 {} \;", user=> 'root', hour=> 0, minute => '0' } Thanks for your input! Tim On Fri, May 1, 2015 at 12:39 PM, Peter Kristolaitis wrote: > > On 05/0

[Puppet Users] puppet cron jobs overwhelming host

2015-05-01 Thread Tim Dunphy
Hey guys, Ok, so I've run into a situation where I setup some cron jobs via puppet that do chown's and chmod's to make sure the web directory is owned by the web server and that the contents have the right permissions. The idea was to have the developer push their code via subversion and then ha

[Puppet Users] include a class in another class

2015-04-30 Thread Tim Dunphy
Hey all, I'd like to include the apache service in my php puppet module. Because when changes are made to the php.ini file, naturally you'll need to bounce apache (if thats your choice of web server) in order for changes to take effect. Same thing with adding php modules, etc. So in my php pupp

[Puppet Users] Re: puppetdb fails with selinux set to enforcing

2015-04-25 Thread Tim Dunphy
uppet:~] #getenforce Enforcing Tim On Sat, Apr 25, 2015 at 5:21 PM, Tim Dunphy wrote: > Hey all, > > I'm having an odd sitution where puppet can't seem to connect to the > puppetdb if SELInux is set to enforcing. > > Here's what that looks like: > > [roo

[Puppet Users] puppetdb fails with selinux set to enforcing

2015-04-25 Thread Tim Dunphy
Hey all, I'm having an odd sitution where puppet can't seem to connect to the puppetdb if SELInux is set to enforcing. Here's what that looks like: [root@puppet:~] #getenforce Enforcing [root@puppet:~] #puppet agent --test Info: Retrieving pluginfacts Info: Retrieving plugin Info: Loading fact

[Puppet Users]

2015-04-25 Thread Tim Dunphy
Hello list, I have centos 5.9 host that reports the following on every run. /Stage[main]/Puppet::Service/Service[puppet]/enable^Ienable changed 'false' to 'true' I'm running puppet version 3.7.5 on the client host. [root@ops:~] #rpmquery -i puppet Name: puppet Relo

Re: [Puppet Users] Re: nodes set to environment 'none'

2015-03-31 Thread Tim Dunphy
Hey guys, Yeah, that's correct. I'm using the Foreman in my setup. I actually did a reinstall of the foreman and that got rid of this issue. So I'm sorry if that's not very informative. But that's how I solved it. Thanks, Tim Sent from my iPhone > On Mar 31, 2015, at 9:19 PM, Felix Frank >

[Puppet Users] Re: pupptboard Could not reach PuppetDB error

2015-03-21 Thread Tim Dunphy
2015 at 9:27 PM, Tim Dunphy wrote: > Hey guys, > > I was able to find out the cause of the problem. I had SELinux enabled! > Once I gave the 'setenforce 0' command, puppetboard starts working and > filling in with data. > > So, I've been googling around fo

[Puppet Users] Re: pupptboard Could not reach PuppetDB error

2015-03-20 Thread Tim Dunphy
one know the correct SELinux commands to make this error go away? [Fri Mar 20 20:47:49 2015] [error] ERROR:pypuppetdb.api:Could not reach PuppetDB on localhost:8080 over HTTP. Thanks! Tim On Fri, Mar 20, 2015 at 7:46 PM, Tim Dunphy wrote: > Hey all, > > I just had to setup puppetdb

[Puppet Users] pupptboard Could not reach PuppetDB error

2015-03-20 Thread Tim Dunphy
Hey all, I just had to setup puppetdb on a new host. And everything seemed to go smoothly using the python pip install method. But when I load up the page with the puppetbaord on it, I see an 'internal server error' message on the web page. Tailing the apache error log gives me this: [Fri Mar 2

Re: [Puppet Users] exec resource applied on every run

2015-03-07 Thread Tim Dunphy
", > "unless", and "creates". > > Please review the documentation here: > https://docs.puppetlabs.com/references/latest/type.html#exec > > > ❧ Brian Mathis > @orev > > >> On Fri, Mar 6, 2015 at 5:30 PM, Tim Dunphy wrote: >

[Puppet Users] exec resource applied on every run

2015-03-06 Thread Tim Dunphy
Hey all, I've created a very basic puppet module to install bacula and ensure that it's running. However one exec statement in my manifest gets applied every time. Here's the manifest: class bacula::install { if $hostname == "ops" { file { "/var/bacula": ensure => directory,

Re: [Puppet Users] install hiera-puppet on centOS 6.6

2015-02-21 Thread Tim Dunphy
before they rolled hiera into > it by default. > > “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) > > > On Feb 21, 2015, at 01:28 PM, Tim D

[Puppet Users] install hiera-puppet on centOS 6.6

2015-02-21 Thread Tim Dunphy
hey all, I've just tried installing the hiera-puppet package onto CentOS 6.6, and got this result: Transaction Check Error: file /usr/bin/extlookup2hiera from install of hiera-puppet-1.0.0-1.el6.noarch conflicts with file from package puppet-3.7.3-1.el6.noarch file /usr/lib/ruby/site_ruby/1.8

Re: [Puppet Users] Re: puppet cron help

2015-02-04 Thread Tim Dunphy
> > You can also try this: > https://groups.google.com/forum/#!topic/puppet-users/PZMv4hGpKiM Cool! Thank you, Keith! On Tue, Feb 3, 2015 at 7:34 PM, wrote: > > > On Monday, February 2, 2015 at 5:55:58 PM UTC-5, bluethundr wrote: > >> Hey all, >> >> I'm attempting to setup a cron job via the c

[Puppet Users] user partitions fact in template

2015-02-02 Thread Tim Dunphy
Hey guys, I was thinking about turning my nrpe.cfg file into a template. So that I could customize lines like the following: command[check_root]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/*vda* I would need to use just the name of the partition out of the following list: parti

Re: [Puppet Users] Re: puppet cron help

2015-02-02 Thread Tim Dunphy
Hey Joey & Christian, Just like you would when manually adding a cronjob you should have '*/30', so your resource should look like this. cron { "facts-cron": command => "/usr/bin/facter -y > /etc/mcollective/facts.yaml", user=> 'root', hour=> 0, minute => '*/30' } Hope this helps!

[Puppet Users] puppet cron help

2015-02-02 Thread Tim Dunphy
Hey all, I'm attempting to setup a cron job via the cron resource in puppet. This is what I'm trying to express via puppet: */30 * * * * /usr/bin/facter -y > /etc/mcollective/facts.yaml This is what I've tried: cron { "facts-cron": command => "/usr/bin/facter -y > /etc/mcollective/f

[Puppet Users] Re: nodes.pp file not recognized

2015-01-25 Thread Tim Dunphy
te.pp:3 on node puppet.mydomain.com Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run I've found that just removing the file at that location or commenting out that line got everything working. Tim On Sat, Jan 24, 2015 at 6:25 PM, Tim Dunphy wrote: > Hey al

[Puppet Users] nodes.pp file not recognized

2015-01-24 Thread Tim Dunphy
Hey all, OK, so I just setup a new puppet server using the foreman installer package. Which gives you puppet 2.7.2 (I think). So the next thing I did was download the puppet labs yum repo (I'm on centos 6.5) and upgrade to version 3.3. And updated my config.ru to the new format. So far so good.

Re: [Puppet Users] Best way for sync folder with many files and subfolders via Puppet that changed rarely

2014-11-02 Thread Tim Dunphy
Hello, I've been able to use the recurse function of the File type successfully: file { "/opt/solr": source => "puppet:///modules/solr/solr-files", owner => "tomcat", group => "tomcat", *recurse => true* } The recurse option will sync an entire folder of files

Re: [Puppet Users] Re: puppetboard unable to reach puppetb

2014-10-09 Thread Tim Dunphy
Hi Ken, > Its a comma, if you are unclear. Yep! I was able to get that by trying it out. But thanks for the feedback! Always extremely welcomed! [root@puppet:~] #cd /etc/puppet [root@puppet:/etc/puppet] #grep reports puppet.conf reports= foreman, puppetdb Try it again and restart

Re: [Puppet Users] Re: puppetboard unable to reach puppetb

2014-10-09 Thread Tim Dunphy
ct 9, 2014 at 3:38 PM, Spencer Krum wrote: > Are you pushing reports into puppetdb or only into foreman? > > On Thu, Oct 9, 2014 at 12:29 PM, Tim Dunphy wrote: > >> Hey Daniele, >> >> Thanks for your feedback! And especially your suggestion to forego SSL >>

Re: [Puppet Users] Re: puppetboard unable to reach puppetb

2014-10-09 Thread Tim Dunphy
Hey Daniele, Thanks for your feedback! And especially your suggestion to forego SSL since I'm running puppetb and puppetboard on the same host. Anyway, here's my jetty.ini file from puppetdb: [root@puppet:/etc/puppetdb/conf.d] #cat jetty.ini | grep -v '#' [jetty] port = 8082 ssl-host = 216.

Re: [Puppet Users] Re: puppetboard unable to reach puppetb

2014-10-09 Thread Tim Dunphy
Hi Daniel, Thanks for getting back to me. This doesn't look like a configuration error with regard to Puppetboard but > one with regard to Apache. These lines: configuration error: couldn't > perform authentication. AuthType not set!: /static/js/lists.js, referer: > http://puppetboard.jokefire

Re: [Puppet Users] annoying "allow_virtual parameter" warning

2014-10-08 Thread Tim Dunphy
Hi Spencer, Oh I called it "puppetboard unable to reach puppetb" and sent it to the puppet users group. Any help there would be fantastic! Thanks! Tim On Wed, Oct 8, 2014 at 8:45 PM, Spencer Krum wrote: > What puppetboard thread? > On Oct 8, 2014 4:34 PM, "Tim Du

Re: [Puppet Users] annoying "allow_virtual parameter" warning

2014-10-08 Thread Tim Dunphy
t; the whole remove cert then re-add routing. After taking out the >> >> Package { >> allow_virtual => true, >> >> } >> >> Setting from site.pp for my production environment. Better to have the >> warning than to break puppet. :) >> >>

[Puppet Users] puppetboard unable to reach puppetb

2014-10-08 Thread Tim Dunphy
Hey all, I was able to setup puppetdb on my puppetmaster. I'm very happy I was able to get that done. And now that that's working I was hoping to get the puppetboard running. But here's where I'm at so far: http://puppetboard.jokefire.com/ I plan to put SSL and some basic auth on there once I

Re: [Puppet Users] annoying "allow_virtual parameter" warning

2014-10-07 Thread Tim Dunphy
t 8:09 PM, Kylo Ginsberg wrote: > On Tue, Oct 7, 2014 at 12:31 PM, Tim Dunphy wrote: > >> What's the 2.2 error? >>> Also FYI we're doing zero testing with ruby 2.2 at this time. >> >> >> >> Hi Kaylo, >> >> The error that I

Re: [Puppet Users] annoying "allow_virtual parameter" warning

2014-10-07 Thread Tim Dunphy
stros are on 2.2? I know you guys are busy, but as we all know, you can't stop the wheels of time from grinding forward! ;) Thanks Tim On Tue, Oct 7, 2014 at 12:14 PM, Kylo Ginsberg wrote: > On Tue, Oct 7, 2014 at 7:26 AM, Tim Dunphy wrote: > >> Hey guys, >> >>

[Puppet Users] annoying "allow_virtual parameter" warning

2014-10-07 Thread Tim Dunphy
Hey guys, I kept getting this annoying warning in the output of my puppet runs: Warning: The package type's allow_virtual parameter will be changing its default value from false to true in a future release. If you do not want to allow virtual packages, please explicitly set allow_virtual to fal

Re: [Puppet Users] puppetdb has no tables

2014-10-06 Thread Tim Dunphy
hey ken, Thanks again for your help. I changed the password on a temporary basis to an absurdly simple one. I'm both happy to say that puppetdb is working now. And sad to have taken up your time with this. Sorry about that. But after changing to the absurdly simple password and then being really

Re: [Puppet Users] puppetdb has no tables

2014-10-05 Thread Tim Dunphy
Hello and thanks for your reply. Actually I take back what I said about it working. I still have the config above in place. And I did complete a run successfully on the puppet server itself. But when I looked at all the clients (I'm using foreman) I saw the clients were failing runs. So I went bac

[Puppet Users] puppetdb has no tables

2014-10-04 Thread Tim Dunphy
Hey all, I've installed puppetdb on my puppetmaster. I have puppet-server-3.7.1, puppetdb-2.2 and puppetdb-terminus-2.2. I've setup puppetdb like this: [root@puppet:/etc/puppet] #cat /etc/puppetdb/conf.d/database.ini [database] classname = org.postgresql.Driver subprotocol = postgresql subname

Re: [Puppet Users] can't find node definition puppet 3.7.1

2014-09-30 Thread Tim Dunphy
> > I've always used import, not include to get my node definitions into > site.pp. the new way of doing it, I believe, is to use a manifest > directory. See > https://docs.puppetlabs.com/puppet/latest/reference/lang_import.html Cool! Thanks I'll give that a try. I actually tried it before witho

[Puppet Users] can't find node definition puppet 3.7.1

2014-09-27 Thread Tim Dunphy
Hello, When I tried adding a node to my puppet server running puppet 3.7.1 (on both server and the client) I'm getting an error stating that puppet can't find the node definition: Warning: Unable to fetch my node definition, but the agent run will continue: Warning: Error 400 on SERVER: Failed t

[Puppet Users] nodes set to environment 'none'

2014-09-20 Thread Tim Dunphy
Hey all, For some reason my client nodes are being set to an environment called 'none'. This causes an error in puppet runs becuase the pupet server doesn't recognize an environment called 'none'. The environment I want them to use is called 'Production'. This is the error that I'm getting on p

[Puppet Users] Re: pluginsync errors on client puppet 3.7

2014-09-20 Thread Tim Dunphy
ind on /file_metadata/pluginfacts with {:source_permissions=>"use", :links=>"manage"} Please help! :) Thanks Tim On Sat, Sep 20, 2014 at 11:08 AM, Tim Dunphy wrote: > Hey all, > > I'm getting some errors on my client when doing puppet runs that seem &g

[Puppet Users] pluginsync errors on client puppet 3.7

2014-09-20 Thread Tim Dunphy
Hey all, I'm getting some errors on my client when doing puppet runs that seem related to pluginsync: Error: /File[/var/lib/mydomain/facts.d]: Failed to generate additional resources using 'eval_generate': Error 400 on SERVER: Not authorized to call search on /file_metadata/pluginfacts with {:ign

[Puppet Users] puppet is not reading my nodes manifest

2014-09-14 Thread Tim Dunphy
Hey all, I just setup puppet 3.7.0 and foreman 1.6.0 on a new host. And I just learned about the new syntax replacing the include directive. I found this example of how to do this in puppet enterprise: [main] environmentpath = $confdir/environments default_manifest = $confdir/manifests basemod

Re: [Puppet Users]

2014-07-25 Thread Tim Dunphy
are deprecated in > puppet.conf. > > > [production] > > > [production] is not main, master, agent, or user > > On Jul 25, 2014, at 8:59 PM, Tim Dunphy wrote: > > Hey all, > > I'm getting an annoying warning whenever I run the puppet cert command:

[Puppet Users]

2014-07-25 Thread Tim Dunphy
Hey all, I'm getting an annoying warning whenever I run the puppet cert command: [root@puppet:/etc/puppet] #puppet cert list Warning: Sections other than main, master, agent, user are deprecated in puppet.conf. Please use the directory environments feature to specify environments. (See http://doc

Re: [Puppet Users] initial_token for cassandra module

2014-05-25 Thread Tim Dunphy
enerate static tokens yourself. That's a really great idea! I'll give it a shot. Thank you! Tim On Sun, May 25, 2014 at 1:44 PM, Jakov Sosic wrote: > On 05/25/2014 05:38 AM, Tim Dunphy wrote: > >> Hey all, >> >> I'm trying to write a puppet module

[Puppet Users] initial_token for cassandra module

2014-05-24 Thread Tim Dunphy
Hey all, I'm trying to write a puppet module to deploy the cassandra database automatically. I'm using puppet templates to provide the IP address to the listen_address parameter of the cassandra.yaml file like so: listen_address: <%= ipaddress %> So far that part's working beautifully! However i

[Puppet Users] Failed to generate additional resources using 'eval_generate'

2014-03-15 Thread Tim Dunphy
Hey all, I'm getting the following error on only one of my puppet hosts: Error: /File[/var/lib/puppet/facts.d]: Failed to generate additional resources using 'eval_generate': Error 400 on SERVER: Not authorized to call search on /file_metadata/pluginfacts with {:links=>"manage", :checksum_type=>

[Puppet Users] include resources from another class

2014-03-06 Thread Tim Dunphy
Hey all, I have a module that I've written called 'lumberjack'. It installs the logstash forwarding agent called 'lumberjack' and gets the service running. However it depends on ca certificate which I include in another class (called simply 'ca'). Yet if I try to include a resource from the 'ca'

Re: [Puppet Users] Re: setting up class default values

2014-03-05 Thread Tim Dunphy
> > My best translation of your apparent intent into effective Puppet code > would be this: > Class['postfix::install'] -> Class['postfix::config'] > Class['postfix::config'] ~> Class['postfix::service'] > . That which can be shortened to this: > Class['postfix::install'] -> Class['postfix::config

[Puppet Users] setting up class default values

2014-03-04 Thread Tim Dunphy
Hey all, I'm attempting to setup some defaults to my postfix 'config' class to require a package and request a refresh of the postfix service. This is my class definition: class postfix::config { $require = Class["postfix::install"] $notify = Class["postfix::service"] File { own

Re: [Puppet Users] munin service wont' star

2014-03-04 Thread Tim Dunphy
Hey guys, I've actually found the problem. It turns out that I thought I had defined the "munin-node" package definition in my install.pp (munin::install) manifest. Turns out I only had defined the "munin" package which takes care of all the dependencies for it. Here's my main class in init.pp:

[Puppet Users] munin service wont' star

2014-03-03 Thread Tim Dunphy
Hey all, I notice with the munin module I wrote, the munin-node service won't start on the first puppet run. Run it a second time, and the service starts no problem. The problem here I believe is that puppet is attempting to start the service before the package is installed. So I tried to set

[Puppet Users] ensure user and group created

2014-02-26 Thread Tim Dunphy
Hey all, I've created a puppet module to control LDAP in my environment. The ldap packages on both the centos and ubuntu hosts seem to require a user and group called 'ldap' (respectively). in my ldap::install class I have the following defined: user { "ldap": ensure => present, } grou

Re: [Puppet Users] Re: client certs won't remain relevant after foreman install

2014-02-13 Thread Tim Dunphy
> > I suggest you to remove all the files and directories at >> /var/lib/puppet/ssl >> like that: >> # rm -rf /var/lib/puppet/ssl > > > > The command I showed in the earlier email should do the same thing: > > > [root@beta:~] #find /var/lib/puppet/ssl -type f -exec rm -f {} \; > > > But just for th

Re: [Puppet Users] Re:

2014-02-13 Thread Tim Dunphy
Hello, Here's the site.pp: import 'nodes.pp' $puppetserver = 'puppet.jokefire.com' And relevant node definitions: node 'base' { include bash, sudo, puppet, ca, nagios, munin, ssh, gpg, xinetd, cron } node 'webserver' inherits 'base' { include apache, php, mysql } node 'stack.mydom

[Puppet Users] client certs won't remain relevant after foreman install

2014-02-12 Thread Tim Dunphy
Hey all, I've just got foreman setup today. And I've had to recreate my certs on the client hosts in order to get that to happen. However I'm facing an usual issue with my client ssl certs since installing foreman. I previously had a puppet server that was working well in my environment. But

[Puppet Users]

2014-02-12 Thread Tim Dunphy
Hey all, I'm getting the following puppet error on only one of my hosts. The rest are all producing clean puppet runs. Can anyone please clarify for me the meaning of this error and if it's innocuous or not? Error: /File[/var/lib/puppet/lib]: Could not evaluate: Could not retrieve information fr

Re: [Puppet Users] Re: proftpd module service error

2014-02-11 Thread Tim Dunphy
Once again great advice and will do! Tim Sent from my iPhone > On Feb 11, 2014, at 11:11 AM, Rafael Cristaldo > wrote: > > Hey > > bluethundr > > Just a Good Tip! > > Every manifest created...use the > > puppet parser validate > > It will show you the Syntax Errors... > > Em terça-

Re: [Puppet Users] Re: proftpd module service error

2014-02-11 Thread Tim Dunphy
That's great advice!! Thank you! Tim Sent from my iPhone > On Feb 11, 2014, at 11:02 AM, Rafael Cristaldo > wrote: > > Try to change your notify on config.pp > > notify => Sevice["proftpd"], TO notify => Class['proftpd::service], > > > Before running ...test all the manifests with: > > #

Re: [Puppet Users] proftpd module service error

2014-02-11 Thread Tim Dunphy
Whoops! Yep that was it. :-/ The class now reads: class proftpd::config { file { "/etc/proftpd.conf": owner => "root", group => "root", mode => 0640, content => template("proftpd/proftpd.conf.erb"), notify => Service["proftpd"], } } It's working fine now:

Re: [Puppet Users] proftpd module service error

2014-02-11 Thread Tim Dunphy
Failed to apply catalog: Could not find dependent Sevice[proftpd] for File[/etc/proftpd.conf] at /etc/puppet/modules/proftpd/manifests/config.pp:9 Thanks, Tim On Tue, Feb 11, 2014 at 10:49 AM, Jerald Sheets wrote: > Permission on the files? > > > On Feb 11, 2014, at 10:46 AM, Tim Dunp

[Puppet Users] proftpd module service error

2014-02-11 Thread Tim Dunphy
Hey puppet, I thought I had all my ducks in a row with this puppet module I had written for proftpd. I'm attempting to get the proftpd config to notify the proftpd service, but without much luck. [root@ops:~] #puppet agent --test Info: Loading facts in /var/lib/puppet/lib/facter/os_maj_version.rb

Re: [Puppet Users] Re: puppet via apache / passenger

2014-02-07 Thread Tim Dunphy
nscheduling refresh on Service[puppetmaster] Notice: /Stage[main]/Puppet::Service/Service[puppet]/ensure: ensure changed 'stopped' to 'running' Info: /Stage[main]/Puppet::Service/Service[puppet]: Unscheduling refresh on Service[puppet] Notice: Finished catalog run in 8.73 seconds

Re: [Puppet Users] Re: puppet via apache / passenger

2014-02-07 Thread Tim Dunphy
Hey all, I made a little progress. Turns out that my directory structure under the 'rack' directory may have been contributing to some of the problems I had been facing. Originally I had [root@puppet:/etc/puppet] #tree rack/ rack/ ├── tmp ├── public └── puppetmasterd └──

[Puppet Users] puppet via apache / passenger

2014-02-06 Thread Tim Dunphy
Hello puppet, I am trying to get puppet to work via apache and passenger and not having much luck. Here is the error that I am currently seeing: Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run Error: Could not send report: Error 405 on SERVER: 405 Me

Re: [Puppet Users] using facter variables in filenames

2014-01-29 Thread Tim Dunphy
e. I appreciate your input. Tim On Wed, Jan 29, 2014 at 3:35 PM, Johan De Wit wrote: > On 01/29/2014 07:39 PM, Tim Dunphy wrote: > > Hey all, > > Yup! You caught it. Managed to notice this as well, so forgive the > intrusion on your day. > > But I was missing the mo

Re: [Puppet Users] using facter variables in filenames

2014-01-29 Thread Tim Dunphy
in my variables. I'll start using that now. Thanks, Tim On Wed, Jan 29, 2014 at 12:33 PM, José Luis Ledesma < joseluis.lede...@gmail.com> wrote: > Ups. Looking it again you forgot to set the module name in the puppet:// > > So the {} is not needed although I think is a good

[Puppet Users] using facter variables in filenames

2014-01-29 Thread Tim Dunphy
Hi All, I'm attempting to distribute TLS certs based on the $hostname fact in my config manifest like so: class bacula::config { file { "/etc/bacula/bacula-fd.conf": notify => Service["bacula-fd"], owner => "root", group => "root", mode => 0640, require => Pack

[Puppet Users] Re: accessing variable from another manifest

2014-01-21 Thread Tim Dunphy
include function specifying ssh::params. So if anyone out there cares to enlighten on that issue, that'd be great. Glad however that I was able to get this working. Thanks! Tim On Tue, Jan 21, 2014 at 11:22 PM, Tim Dunphy wrote: > Hello all, > > I'm attempting to follow along

[Puppet Users] accessing variable from another manifest

2014-01-21 Thread Tim Dunphy
Hello all, I'm attempting to follow along in the puppet book with the ssh module lesson. I'm at the part where I'm attempting to use a variable that's been set in another class called ssh::params. When I run the puppet on the client I get the following error: [root@beta:~] #puppet agent --test -

Re: [Puppet Users] ssh module dependency failure

2014-01-16 Thread Tim Dunphy
; inherits 'base' { include web } node 'beta.mydomain.com' inherits 'webserver' { include mysql, cassandra, mongo, memcached, proftpd, ssh } Any ideas why this error is now occurring? Thanks Tim On Thu, Jan 16, 2014 at 12:55 AM, Andrea Cappelli wrote: >

[Puppet Users] ssh module dependency failure

2014-01-15 Thread Tim Dunphy
Hi All, I'm writing to you today because I am attempting to follow along in the "Pro Puppet" book I am attempting the ssh module example from page 39. I am getting the following error on the client when I try to implement it: [root@beta:~] #puppet agent --test --server puppet.mydomain.com info:

[Puppet Users] logstash module to control service

2014-01-11 Thread Tim Dunphy
Hey all, I've created a number of puppet modules that control services in the form of init scripts on the hosts it controls. However I recently created a logstash init script and a puppet module to control it. It also should push out a config file. And the logstash module cannot control the log

[Puppet Users] trouble sharing a file in a module

2014-01-07 Thread Tim Dunphy
hey all, Having a little trouble sharing a file as part of a module I'm attempting to use. This is the error that I'm seeing: [root@beta:~] #puppet agent --test --server puppet.mydomain.com info: Caching catalog for beta.jokefire.com info: Applying configuration version '1389142209' err: /Stage

Re: [Puppet Users] sudo class not found

2014-01-07 Thread Tim Dunphy
onds Thanks for the clue-by-four! :) Tim On Tue, Jan 7, 2014 at 2:28 AM, Andrey Kozichev wrote: > init.pp should be inside the manifests folder. > On 7 Jan 2014 07:03, "Tim Dunphy" wrote: > >> Hey all, >> >> I'm attempting to follow along with the pu

[Puppet Users] sudo class not found

2014-01-06 Thread Tim Dunphy
Hey all, I'm attempting to follow along with the puppet pro book. And I'm trying to create my first module without much success. This is the error that I'm getting when I do a puppet run: [root@puppet:/etc/puppet] #puppet agent --test Info: Retrieving plugin Error: Could not retrieve catalog fr

[Puppet Users]

2014-01-01 Thread Tim Dunphy
Hi All, I am getting this error when trying to register a new host with my puppet server: Warning: Unable to fetch my node definition, but the agent run will continue: Warning: Error 400 on SERVER: Access denied for user 'puppet'@'localhost' (using password: YES) Info: Retrieving plugin Error: /F

[Puppet Users] puppet server complains of time sync

2012-06-23 Thread Tim Dunphy
Hello list, I am having an issue where a puppet agent on a client complains that clocks are out of sync between it and it's master - err: Could not send report: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed. This is often because the time is out

Re: [Puppet Users] Autoscaling with Puppet

2012-05-13 Thread Tim Dunphy
I use scalr for this purpose.. http://scalr.net/ I think they did away with the free version of it recently. But if you ask me what they're asking is well worth it! Autoscales up and down based on server load. Works with both AWS and rackspace cloud. -tim On Sun, May 13, 2012 at 9:28 PM, de w

Re: [Puppet Users] Re: puppet on solaris 11

2012-02-16 Thread Tim Dunphy
15:43:33 -0800 2012', >  group   => '0', >  mode    => '644', >  mtime   => 'Tue Jan 03 15:43:33 -0800 2012', >  owner   => '0', >  type    => 'file', > } > > > > > > > On Feb 15, 8:

Re: [Puppet Users] puppet on solaris 11

2012-02-15 Thread Tim Dunphy
ich wrote: > Puppet package for solaris are available from OpenCSW.org and are kept > up to date by the maintainer. You may find this easier and cleaner > then mucking around with source and gem installs. > > -- > Later, > Darin > > > > On Wed, Feb 15, 2012 at 4:40 PM

  1   2   >