Re: [Puppet Users] Modifying a FACT Value In a Manifest

2012-02-29 Thread Peter Bukowinski
On Feb 29, 2012, at 1:10 PM, Matt Mencel wrote: > In my network every subnets default gateway is X.X.X.1. That router gateway > is always running ntpd which I want to give be default as the ntp server in > every hosts ntp.conf. > > Since there is no official "default gateway" fact yet, what I

Re: [Puppet Users] Puppet Master VMs

2012-03-01 Thread Peter Bukowinski
On Mar 1, 2012, at 4:18 PM, Scott Merrill wrote: > Is anyone running their Puppet Master server(s) as virtual guests? If > so, how big are those VMs in terms of memory and virtual CPUs, and how > many Puppet clients are they serving? > > Thanks! > Scott I run puppetmaster (2.7.11) and dashboard

Re: [Puppet Users] Puppet condition based on variable.

2012-03-01 Thread Peter Bukowinski
In this case, you should check for the variable's value, as well: <% if has_variable?("mysqlsrv") and mysqlsrv == 'mysqlsrv' %> But it sounds like you might be having a variable scoping issue. Where in your nodes.pp file do you have $mysqlsrv defined? -- Peter (from phone) On Mar 1, 2012, at 1

Re: [Puppet Users] Different versions for server and agents

2012-03-12 Thread Peter Bukowinski
On Mar 12, 2012, at 10:03 AM, Julien C. wrote: > Hi, > > Due to severe heterogeneity among my servers (OS and version), I started my > puppet infrastructure by deploying agents by hand (from the tarball). That > way, I'm sure that I have the same version everywhere. > > Having found up-to-date

Re: [Puppet Users] puppet-dashboard running on puppet-server (SL6)

2012-03-13 Thread Peter Bukowinski
On Mar 13, 2012, at 9:37 AM, Arnau Bria wrote: > Hi all, > > I've installed a new puppet-server and I wanted to add > puppet-dash-board for reports (only). > > # rpm -qa|grep puppet|sort > puppet-2.7.11-2.el6.noarch > puppet-dashboard-1.2.6-1.el6.noarch > puppet-server-2.7.11-2.el6.noarch > >

Re: [Puppet Users] Use onlyif in EXEC

2012-03-14 Thread Peter Bukowinski
On Mar 14, 2012, at 5:00 PM, Eugene Vilensky wrote: >>> On Monday, March 12, 2012 5:52:53 PM UTC-5, ed209 wrote: Checkout the 'creates' property, it seems like a cleaner way of doing this: http://docs.puppetlabs.com/references/2.6.8/type.html#exec >>> >>> >>> Pardon th

Re: [Puppet Users] Use onlyif in EXEC

2012-03-14 Thread Peter Bukowinski
On Mar 14, 2012, at 5:20 PM, Peter Bukowinski wrote: > On Mar 14, 2012, at 5:00 PM, Eugene Vilensky wrote: > >>>> On Monday, March 12, 2012 5:52:53 PM UTC-5, ed209 wrote: >>>>> >>>>> Checkout the 'creates' property, it seems

Re: [Puppet Users] Re: Use onlyif in EXEC

2012-03-15 Thread Peter Bukowinski
On Mar 15, 2012, at 8:54 AM, jcbollinger wrote: > > > On Mar 14, 4:40 pm, Peter Bukowinski wrote: >> On Mar 14, 2012, at 5:20 PM, Peter Bukowinski wrote: >>> On Mar 14, 2012, at 5:00 PM, Eugene Vilensky wrote: >> >>>> If the "creates"

Re: [Puppet Users] The Trifecta: correct?

2012-03-16 Thread Peter Bukowinski
On Mar 16, 2012, at 10:21 AM, jimbob palmer wrote: > The Core Types Cheat Sheet at > http://projects.puppetlabs.com/projects/puppet/wiki/Core_Types_Cheat_Sheet/ > says: > > > The Trifecta > > Package/file/service: Learn it, live it, love it. If you can only do this, > you can still do a lo

Re: [Puppet Users] Re: CentOS 5 packages in EPEL are outdated ?

2012-03-16 Thread Peter Bukowinski
On Mar 16, 2012, at 4:44 PM, Michael Stahnke wrote: > On Fri, Mar 16, 2012 at 11:55 AM, Todd Zullinger wrote: >> Julien C. wrote: >>> >>> The dashboard integration part. I ended up using yup.puppetlabs.com and it >>> works fine :-) >> >> >> Good to know. I wonder if the dashboard packages sh

Re: [Puppet Users] Different versions for server and agents

2012-03-16 Thread Peter Bukowinski
Markus, yes. As long as the master's version is equal to or greater than the agents, it will work. I can't speak for future master releases, though. -- Peter (from phone) On Mar 16, 2012, at 5:42 PM, Markus Falb wrote: > On 13.3.2012 00:22, vagn scott wrote: >> On 03/12/2

Re: [Puppet Users] Disable polling interval

2012-03-17 Thread Peter Bukowinski
In another word, How to stop that script to make any changes on the > agent without removing from nodes.pp > > Thanks > Afroz Hussain Are you using an exec resource to run the script? Why not let puppet keep running on its regular interval and use a cron resource to schedule the scr

Re: [Puppet Users] import manifest inside subdirectory

2012-03-20 Thread Peter Bukowinski
On Mar 20, 2012, at 12:47 PM, Pablo Fernandez wrote: > Hi, > > I am trying to import some manifests manually (outside the modules tree) and > it does not seem to work fine. I have the files: > manifests/site.pp > manifests/data/file1.pp > > Inside site.pp I do: > import "data/file1.pp" > >

Re: [Puppet Users] i can't use yum to install any package!!!

2012-03-22 Thread Peter Bukowinski
On Mar 22, 2012, at 9:29 AM, 妖狐 wrote: > > Hi:all > when i run this command > puppet agent --no-daemonize --debug > > I get "wrong number of arguments" all over the place: > > debug: Puppet::Type::Package::ProviderRpm: Executing '/bin/rpm --version' > wrong number of arguments (2 for 1) > debu

Re: [Puppet Users] How can I get puppet onto a closed network ?

2012-03-22 Thread Peter Bukowinski
I'd copy down from the yum.puppetlabs.com site all the packages in the products and dependencies repos and set up your own local repos. Point your rhel boxes at it and install that way. The repos would be easier to mirror locally if puppetlabs setup an rsync server for them, but right now scrap

Re: [Puppet Users] Case statements in a file directive

2012-04-17 Thread Peter Bukowinski
Looks like you're missing a question mark in the selector in your source parameter. It should look like this: source => $::architecture ? { /(i386|i586|i686)/ => "puppet:///files/32/usr/local/nagios/libexec", x86_64 => "puppet:///files/64/usr/local/nagios/libexec", } -- Pete

Re: [Puppet Users] What is the "false" directory?

2012-04-24 Thread Peter Bukowinski
Looks like you have an error in your filebucket definition. Did you, perhaps, put quotes around "false" when you defined the path? -- Peter On Apr 24, 2012, at 8:13 AM, Sans wrote: > Dear all, > > Since last night, Puppet is started creating a directory, named false in the > present working

Re: [Puppet Users] What is the "false" directory?

2012-04-24 Thread Peter Bukowinski
Glad you got it sorted. You've discovered the importance of quoting and *not* quoting. The best practice is to single quote any string that does not contain a variable. If you're using a variable, use double quotes so it gets interpreted properly. Quotes should *not* be used around any of puppet

Re: [Puppet Users] What is the "false" directory?

2012-04-25 Thread Peter Bukowinski
Reported. http://projects.puppetlabs.com/issues/14173 -- Peter On Apr 24, 2012, at 5:04 PM, Krzysztof Wilczynski wrote: > Hi, > > On Tuesday, April 24, 2012 6:38:27 PM UTC+1, Nigel Kersten wrote: > This should get reported as a bug though. > > We should probably only accept absolute paths for

Re: [Puppet Users] Using Puppet to manage preexisting servers

2012-05-16 Thread Peter Bukowinski
My first experience with puppet was puppetizing an already deployed 500-node HPC cluster. The cluster admin was kind enough to pull a node out of the cluster so I could test my manifest/modules on it without affecting production nodes. Once I was confident I had it dialed in, I converted while r

Re: [Puppet Users] Puppet not applying my config

2012-05-24 Thread Peter Bukowinski
#x27;, >} > } > > Thanks in advance! Try adding an 'ensure => file,' attribute to the beginning of the file resource block. I believe puppet's default behavior is to *not* create a resource unless ensure is used to specify it. -- Peter Bukowinski -- You receiv

Re: [Puppet Users] exclude puppetmaster from default

2012-05-30 Thread Peter Bukowinski
On May 30, 2012, at 12:13 PM, Andrei-Florian Staicu wrote: > Hi all, > > Can you tell me if the puppetmaster (which is also a puppet node) can > be excluded from the default node definition? > The idea is that new unclassified nodes should get the puppet.conf and > auth.conf files by default, but

Re: [Puppet Users] Nvidia driver install - condition for install

2012-06-29 Thread Peter Bukowinski
On Jun 29, 2012, at 3:49 PM, Nan Liu wrote: > On Fri, Jun 29, 2012 at 12:23 PM, Dan White wrote: >> - Mike Reed wrote: >>> Hello all, >>> >>> I'd like to use puppet to install an Nvidia driver on a local workstation. >>> I've written the following manifest for this puprpose: >>> >>> clas

Re: [Puppet Users] Re: Puppet recipe to copy and execute a shell file

2011-06-17 Thread Peter Bukowinski
> absent to file failed: > > > > > > Could not set file on ensure: No such file or directory - > > > > > > /tmp/QoS/QoS.sh.puppettmp at /etc/puppet/manifests/site.pp:7 > > > > > > notice: //Exec[/tmp/QoS/QoS.sh (http://QoS.sh)]: Dependency > >

Re: [Puppet Users] Puppet Newbie - Problem with Define

2011-09-02 Thread Peter Bukowinski
On Friday, September 2, 2011 at 10:46 AM, Mitch Anderson wrote: > I'm just starting out with puppet, and I'm trying to get one of the > new environments I'm managing using puppet. The site is apache/php, > so I've been trying to use one of the prewritten apache modules... > without any luck... so I

Re: [Puppet Users] How to check if a given "directory" exists??

2011-09-28 Thread Peter Bukowinski
On Sep 28, 2011, at 9:37 AM, Sans wrote: > Dear all, > > I have a module like this: > > class mom_priv_config{ >file { >'config': >owner => 'root', group => 'root', mode=> '0644', >name=> '/var/torque/mom_priv/config', >content => template('w_node

Re: [Puppet Users] problem with generate function in template

2011-10-04 Thread Peter Bukowinski
On Oct 5, 2011, at 12:11 AM, deet wrote: > The env is Solaris 10, facter 1.5.9, puppet 2.6.8, ruby 1.8.7 p302. > > I'm trying to call the generate function inside of an erb template > and getting an error that the generate function doesn't exist. > The following snippet from http://docs.puppetlab

Re: [Puppet Users] Not able to execute shell script

2011-05-20 Thread Peter Bukowinski
On Thursday, May 19, 2011 at 11:58 PM, Sumith Sudhakaran wrote: Hi, > > After configuring puppet ( 2.6.8 ) in RHEL 5 update 6, I am able to execute > commands individually but I am not able execute the shell script, its giving > error only. Somebody please help me how can I execute a shell scrip

Re: [Puppet Users] Puppet fileserver path

2011-05-25 Thread Peter Bukowinski
On Wednesday, May 25, 2011 at 8:10 AM, Sumith Sudhakaran wrote: Hi, > > Is it possible, to change the default puppet file server path. > > [files] > path /var/lib/puppet/files > > > -- > Regards > > Sumith Yes. You can any location / multiple locations in /etc/puppet/fileserver.conf. I us

Re: [Puppet Users] writing custom facts

2011-06-14 Thread Peter Bukowinski
One option is to save dd_code lines as a separate script, have puppet ensure its presence on each machine with a file statement, and then call it by explicit path in the Facter.add block. -- Peter (from phone) On Jun 14, 2011, at 7:39 AM, Sans wrote: > Dear all, > > I see that writing a cust

Re: [Puppet Users] puppet clients

2011-06-14 Thread Peter Bukowinski
Try quoting your node names, e.g. node 'ubuntu2.ttinet' { -- Peter M. Bukowinski Systems Engineer Janelia Farm Research Campus, HHMI On Tuesday, June 14, 2011 at 11:26 AM, Craig White wrote: > > On Jun 13, 2011, at 5:02 PM, Nan Liu wrote: > > > On Mon, Jun 13, 2011 at 4:19 PM, Craig White

Re: [Puppet Users] Puppet recipe to copy and execute a shell file

2011-06-16 Thread Peter Bukowinski
It sounds like you haven't set up the puppet fileserver yet. Choose a directory that will hold files you want to copy to clients. I use /opt/files, so that's what is in my example. Create fileserver.conf in the same directory as puppet.conf and add these lines: [files] path /opt/files allow *

Re: [Puppet Users] Multiple execs within a class

2012-07-06 Thread Peter Bukowinski
the thoughts. Puppet manifests do not run in a top-down manner, but instead run semi-randomly. Because your file and exec resources need to run in a specific order, you need to define that order specifically. You can accomplish this by keeping the order you have and simply adding a 'requ

Re: [Puppet Users] Puppet not upgrading to newer version of Ruby

2012-07-06 Thread Peter Bukowinski
On Jul 6, 2012, at 11:01 AM, Benjamin Lei wrote: > I have upgraded my default Ruby (1.8.6) to a newer one (1.8.7). But whenever > I run Puppet, it seems to somehow constantly run under Ruby 1.8.6. How do I > fix this? What is the output of 'which ruby' and 'which puppe

Re: [Puppet Users] Re: Multiple execs within a class

2012-07-06 Thread Peter Bukowinski
gure out a more elegant > solution to this hack that I've put together. The file won't be pulled down on every run unless is gets removed from /tmp. Because you can't count on files sticking around in /tmp, I don't like to use it as a destination for any of my file resources

Re: [Puppet Users] Access denied for user 'dashboard'@'localhost' to database 'dashboard_production'

2012-07-06 Thread Peter Bukowinski
ashboard'@'localhost' to database > 'dashboard_production' > > (See full trace by running task with --trace) > > > please help! Your created a database 'dashboard'. Make sure to put that name into the 'production:' section of your [da

Re: [Puppet Users] execute a command if a package isn't installed, then install the package

2012-07-14 Thread Peter Bukowinski
use the 'resolvconf --disable-updates' exec resource's 'unless' parameter to test for a running unbound daemon prior to installing the package. -- Peter Bukowinski -- You received this message because you are subscribed to the Google Groups "Puppet Users" gr

Re: [Puppet Users] Re: problems with puppetdb

2012-07-15 Thread Peter Bukowinski
How did you install/upgrade it? Mine runs on RHEL6. The config files I set when I installed the initial version did not get modified during the upgrade process. My ports are still as expected. -- Peter On Jul 15, 2012, at 10:09 PM, Peter Brown wrote: > It also seems to be ignoring my port set

Re: [Puppet Users] Re: mcollective puppetd plugin does not work

2012-07-30 Thread Peter Bukowinski
The agent enable/disable is documented in the output of 'puppet help agent' as well as here: http://docs.puppetlabs.com/man/agent.html Your output of 'puppet agent --server=puppet --test --noop' shows that you have a 'puppetdlock' file (in /var/lib/puppet/state by default), but that puppet is

Re: [Puppet Users] service resource type

2012-08-06 Thread Peter Bukowinski
y much for help. Rost, Is what you pasted about the entire 'myservice' resource definition or did you leave our the 'ensure' lines for brevity? Make sure you have an 'ensure => running," line in the service definition if you want puppet to ensure that state.

Re: [Puppet Users] service resource type

2012-08-06 Thread Peter Bukowinski
sh" >> } >> >> >> Do you have any idea on how to use this parameter? >> >> Thans very much for help. > > Rost, > > Is what you pasted about the entire 'myservice' resource definition or did > you leave our the 'ensur

Re: [Puppet Users] exec executes remote command but the actual script not run

2012-08-08 Thread Peter Bukowinski
that copies the tar file to the node and the exec resource that extracts it -- either via a notify parameter in the file resource or a require parameter in the exec resource. -- Peter Bukowinski -- You received this message because you are subscribed to the Google Groups "Puppet Users" gro

Re: [Puppet Users] exec executes remote command but the actual script not run

2012-08-09 Thread Peter Bukowinski
exists. > > One last thing. If you haven't done so already, set up a dependency between > the file resource that copies the tar file to the node and the exec resource > that extracts it -- either via a notify parameter in the file resource or a > require parameter in the e

Re: [Puppet Users] exec executes remote command but the actual script not run

2012-08-10 Thread Peter Bukowinski
On Aug 10, 2012, at 9:04 AM, jcbollinger wrote: > > > On Thursday, August 9, 2012 7:24:23 AM UTC-5, pmbuko wrote: > Adding this parameter to your file resource, > > notify => Exec['Deploy Code'], > > and these parameters to your exec resource, > > require=> File['/var/tmp/deploy.

[Puppet Users] Dashboard fails to import report from Fedora 17 node

2012-08-17 Thread Peter Bukowinski
Greetings, I'm testing Fedora 17 in our environment and have come across an interesting/annoying issue (that may or may not be isolated to my environment). Puppet runs fine on the test node but the reports are failing to import to dashboard and are showing up as background task failures with th

Re: [Puppet Users] Puppet-Dashboard nodes showing up as unreported

2012-08-29 Thread Peter Bukowinski
will start processing the backlogged puppet reports. -- Peter Bukowinski On Aug 29, 2012, at 1:19 PM, Adam Hamner wrote: > Hello, > I have followed the documentation at > http://docs.puppetlabs.com/dashboard/manual/1.2/bootstrapping.html to try to > setup dashboard but after

Re: [Puppet Users] Autosign frequency

2012-08-29 Thread Peter Bukowinski
How many nodes is your puppetmaster currently servicing? I have one servicing about 700 nodes, splayed over an hour check-in interval, and any new nodes I add (that fall into my autosign subdomain) get signed immediately on their first puppet run. -- Peter Bukowinski On Aug 29, 2012, at 8:50

Re: [Puppet Users] Is there a puppet module for tomcat and apache

2012-09-05 Thread Peter Bukowinski
multiple results. http://forge.puppetlabs.com/modules?q=tomcat&commit=Go http://forge.puppetlabs.com/modules?q=apache&commit=Go -- Peter Bukowinski -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us

Re: [Puppet Users] Re: Dashboard fails to import report from Fedora 17 node

2012-09-08 Thread Peter Bukowinski
No, it's still unresolved. I only have one Fedora 17 client at the moment so it's not a big deal yet, but it's only a matter of time until I have more. I'll submit it as a bug so it gets some attention. -- Peter Bukowinski On Sep 8, 2012, at 4:47 PM, tmv wrote: > &

Re: [Puppet Users] Re: Systems Provisioning

2012-09-18 Thread Peter Bukowinski
all cycle.) 4. It cleans the host's existing puppet cert. I have this script up on github, if you want to see how I'm doing it. It pushes the limits of bash sanity, but it works well. https://github.com/pmbuko/misc-scripts/blob/master/deployserv.sh -- Peter Bukowinski -- You received th

Re: [Puppet Users] case statement exec

2012-10-31 Thread Peter Bukowinski
> "grep -e '^\*\.\*;local4.none.*rsyslog$' ${config}", notify => Service[$servicename], } file { '/tmp/.syslog_restarted': ensure => file, content => '.', notify => Service[$servicename], } }

Re: [Puppet Users] How do you install a yum repo?

2012-11-20 Thread Peter Bukowinski
On Nov 20, 2012, at 4:15 PM, Laurence Cope wrote: > Hi > > I am trying to install a yum repo using puppet, so they can install a > package. But i am struggling. I cannot find much help online at all. > > The only code I got working was as follows, but it works first time, but > additional tim

Re: [Puppet Users] How does facter get ipaddress?

2012-11-29 Thread Peter Bukowinski
On Nov 29, 2012, at 3:16 PM, Bret Wortman wrote: > I think the problem I'm having with not being able to run puppet for up to 90 > minutes after a reboot is related to this error, which goes away some time in > that time period: > > # puppet agent -t > Info: Retrieving plugin > Timed out seekin

Re: [Puppet Users] Re: puppet dashboard inventory

2012-12-13 Thread Peter Bukowinski
On Dec 13, 2012, at 4:09 PM, vioilly wrote: > Just trying to get help here. > > My puppetdb server is called puppet-server3. My dashboard server is > puppet-server2. I can run inventory commands against my puppetdb and get > results. > > For example - i have a puppet-client2.test.net machine r

Re: [Puppet Users] puppet dashboard inventory

2012-12-14 Thread Peter Bukowinski
On Dec 13, 2012, at 4:55 PM, vioilly wrote: > Hi, > > I believe I have done that. > > So on my puppet master (puppet-server1) I have modified the puppet.conf file > and added the following: > > [master] > > storeconfigs = true > storeconfigs_backend = puppetdb > > Also puppetdb.c

Re: [Puppet Users] How to install a module from master to agent node?

2013-01-08 Thread Peter Bukowinski
No modules or classes are applied by default so you will need to tell puppet what to do. In this case, you can run the following from the agent (where module_class is the name of the class the module applies): puppet apply -e 'include module_class' Alternatively, you can put the following in s

Re: [Puppet Users] How to have one file depend on many packages

2013-05-07 Thread Peter Bukowinski
On May 7, 2013, at 12:38 PM, Bret Wortman wrote: > Here's a puzzler (though I'm sure the answer is obvious and I'm just not > seeing it): > > I have a manifest where I'm listing about 40-50 packages that I want the > system to remove, and a file that I want to create only after successful > r

Re: [Puppet Users] How to indicate multiple dependency?

2013-05-08 Thread Peter Bukowinski
On May 8, 2013, at 6:52 AM, Bret Wortman wrote: > What's the right/best way to indicate that a particular entry in a manifest > (a file in this case) depends on successful installation of over 30 packages, > all indicated in the same manifest? I could do this, but it seems cumbersome: > > pack

Re: [Puppet Users] How to indicate multiple dependency?

2013-05-08 Thread Peter Bukowinski
The 'before' metaparameter is an inverse version of the 'require' metaparameter. Where the 'require' parameter forces the parent resource to sync *after* the indicated resource, the 'before' parameter acts as a pause button on the indicated resource (in this case, file2), preventing it from sync

Re: [Puppet Users] New to Puppet bash: command not found

2013-06-15 Thread Peter Bukowinski
Make sure the puppet binaries are in your path. -- Peter (from phone) > On Jun 15, 2013, at 12:11 PM, gfdadd...@gmail.com wrote: > > I have installed PE 2.8 server > None of the commands work =, for example... puppet --server list, puppet > agent --test,puppet agent --test --server=`hostname`,

Re: [Puppet Users] Puppet for Cassandra cluster automation

2013-07-02 Thread Peter Bukowinski
Besides MCollective, which is the ideal choice, any tool that allows you to run a shell command -- in this case, 'puppet agent -t' -- on remote systems will work. Even -- perish the thought! -- an ssh for loop. :) -- Peter On Jul 2, 2013, at 7:56 PM, Jingyan Wang wrote: > Hi, > > I am using

Re: [Puppet Users] How to download host specific file

2013-07-10 Thread Peter Bukowinski
<%= some_facter_fact %> <% end -%> # inverse match example <% if @hostname != ("node1") then -%> option1 = <%= another_facter_fact %> <% end -%> # this or that match <% if @hostname == ("node3" or "node4") then -%> option2 = <

Re: [Puppet Users] Recommended method of running puppet periodically on mac os x

2013-07-10 Thread Peter Bukowinski
ere: http://docs.puppetlabs.com/guides/installation.html#with-launchd -- Peter Bukowinski -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users

Re: [Puppet Users] Puppet Razor doesn't recognize Scientific Linux?

2013-07-10 Thread Peter Bukowinski
Actually, you get a different error pointing to init.pp. You also need to modify manifests/init.pp on line 42 to include 'Scientific'. -- Peter Bukowinski On Jul 10, 2013, at 8:36 PM, Stefan Lasiewski wrote: > I am using Scientific Linux 6.4. Scientific Linux is a derivati

Re: [Puppet Users] Recommended method of running puppet periodically on mac os x

2013-07-11 Thread Peter Bukowinski
On Jul 11, 2013, at 5:19 AM, Paul Tötterman wrote: >> I just responded to you ask.puppetlabs.com post, but I'll duplicate the >> reply here. > > Thank you Peter, much appreciated. > > You wouldn't happen to know of a resource that collects puppet & osx wisdom? > > Cheers, > Paul Other than

Re: [Puppet Users] Puppet: chaining and conditionals

2013-08-15 Thread Peter Bukowinski
class { "class1": } -> class { "$class2": } -> class { "class3": } -> class { "class4": } } class null_class { } -- Peter Bukowinski On Aug 15, 2013, at 1:33 PM, Sergey Arlashin wrote: > Thank you for your reply. > This looks nice

Re: [Puppet Users] Using file and mount more efficiently

2013-08-21 Thread Peter Bukowinski
You define an array-containing variable like this: $mounts = [ 'directory1', 'directory2', 'directory3' ] You can also put newlines after the commas for easier reading. The following code should be functional: class test_case { $mounts = [ 'directory1', 'directory2',

Re: [Puppet Users] First time puppet agent setup on FreeBSD -- SSL_connect error when requesting certificate.

2013-08-21 Thread Peter Bukowinski
Stefan, If you do not have cert auto-signing enabled, the first time an agent connects to the master, you should use the -w option, e.g.: puppet agent -t -w 30 This will tell the agent to wait for the master (you) to sign the cert request. Once that's done, the rest of the puppet run should ki

Re: [Puppet Users] puppet dashboard failed tasks every night

2013-08-27 Thread Peter Bukowinski
Do you have any daily cron jobs that occur overnight? -- Peter On Aug 27, 2013, at 1:08 PM, Felipe Salum wrote: > Hi guys. > > I'm trying to find the root cause of my puppet dashboard report failed tasks > that happen every night. It works without any error all day long but when I > connect

Re: [Puppet Users] puppet dashboard database options

2013-08-28 Thread Peter Bukowinski
Postgres is an option in Puppet Dashboard 2.0, which is due to be released *very soon* (according to the session I attended at Puppet Conf last week). https://github.com/sodabrew/puppet-dashboard -- Peter On Aug 28, 2013, at 9:15 AM, Ankit Mittal wrote: > Dear All, > > Please help to find o

Re: [Puppet Users] Puppet under HA Environment

2013-08-29 Thread Peter Bukowinski
There *is* a (semi-)randomizer. Look at the splay option in the puppet.conf http://docs.puppetlabs.com/references/latest/configuration.html#splay -- Peter (from phone) On Aug 29, 2013, at 10:21 PM, Stuart Cracraft wrote: > I think there should be a randomizer built-in to prevent this without t

Re: [Puppet Users] puppet dashboard

2013-09-05 Thread Peter Bukowinski
Postgres will be supported in Dashboard 2.0, but it has not been released yet. When it is released, you will find it here: https://github.com/sodabrew/puppet-dashboard While you're waiting, you can watch the talk that Dashboard's new lead developer gave at PuppetConf last month: http://www.youtu

Re: [Puppet Users] best practice

2013-09-05 Thread Peter Bukowinski
To run puppet manually, you should first disable the service: puppet apply -e 'service { "puppet": ensure => stopped, enable => false }' To manually apply a manifest, point it at a local manifest like so: puppet apply /path/to/manifest.pp -- Peter (from phone) On Sep 5, 2013, at 6:44 P

Re: [Puppet Users] Puppet agent and puppet master

2013-09-16 Thread Peter Bukowinski
ld restart the httpd service any time it notices and copies over a changed httpd.conf file. An exec resource containing a "service httpd restart" command is not required. -- Peter Bukowinski On Sep 16, 2013, at 8:40 AM, Adeel Bhatti wrote: > Thanks for your reply ! > This would

Re: [Puppet Users] if/or regex entry

2013-09-18 Thread Peter Bukowinski
not familiar with ruby. > > Thanks in advance for the help. > > Cheers, > > Mike Since you're doing regex matching you need to use the '=~' operator instead of '==', like so: if ( $::hostname =~ /^foo/ ) or ( $::hostname =~ /^bar/ ) { -- Peter Bukowinski

Re: [Puppet Users] All nodes stopped reporting to puppet enterprise console

2013-09-19 Thread Peter Bukowinski
service called 'pe-puppet-dashboard-workers' to process the incoming reports into its database. Do you see a large number of pending jobs in the Background Tasks section in the upper-left corner of the console? If so, start or restart the 'pe-puppet-dashboard-workers' serv

Re: [Puppet Users] System manifests & parse order

2013-09-26 Thread Peter Bukowinski
On Sep 26, 2013, at 8:37 AM, Bret Wortman wrote: > Is there a way to set up my system so that I can do something like this in my > site.pp file: > > import 'nodes/*.pp' > import 'node-groups/*.pp' > > What I'm looking for is a way to have a node-groups/webserver.pp file which > specifies the

Re: [Puppet Users] Generating a variable based on the hostname

2013-09-27 Thread Peter Bukowinski
A custom fact that uses regex to grab the fourth, dash-separated value from the hostname seems like a good way to go as it would make the $env value accessible globally. Alternatively, you can use a selector within your manifests: $env = $hostname ? { /-dev-/ => 'dev', /-int-/ =>

[Puppet Users] Re: quiet exec script output

2013-09-30 Thread Peter Bukowinski
Puppet is doing what it is supposed to do: report changed resources. Puppet isn't aware of the content of your script, so it treats each run (that has an exit code of 0) as if something has changed. I'm guessing that your script is currently executing each time puppet runs? Can you describe wha

Re: [Puppet Users] puppet class if

2013-10-11 Thread Peter Bukowinski
domain.com' { ... } For a regex match, you'd use the equal-tilde: if $hostname =~ /^server/ { ... } To negate a match, you put the not (!) in front of the entire comparison, e.g. if ! $hostname == 'server1.domain.com' { ... } I like to add parentheses around my

Re: [Puppet Users] puppet class if

2013-10-11 Thread Peter Bukowinski
On Oct 11, 2013, at 9:06 AM, Werner Flamme wrote: > Peter Bukowinski [11.10.2013 14:39]: >> On Oct 11, 2013, at 5:48 AM, Jakub Bittner wrote: >> >>> Hello, >>> >>> I created puppet class and I want the file operation to be executed on all >>>

Re: [Puppet Users] How to get Puppet Ent Agent for Mac Mountain Lion?

2013-11-12 Thread Peter Bukowinski
Puppet Enterprise does not currently support Mac OS X client nodes. You will still be able to apply classes, but none of the advanced features that depend upon mcollective (e.g. Live Management) will work unless you do some serious fiddling -- which kinda defeats the purpose of using Puppet Ente

Re: [Puppet Users] Re: nodes.pp on puppetmaster vs. puppet agent on puppet client

2013-11-25 Thread Peter Bukowinski
latest changes immediately, you can use 'puppet agent -t' instead of restarting the service. -- Peter Bukowinski > On Nov 26, 2013, at 12:08 AM, Stuart Cracraft wrote: > > But it has to be activated in nodes > to fetch, no? > >> On Nov 25, 2013, at 9:05 PM, R

Re: [Puppet Users] Detect when files are put in a directory? And alternatives?

2014-01-02 Thread Peter Bukowinski
puppet, just saying that it's possible. -- Peter Bukowinski > On Jan 2, 2014, at 6:39 PM, Shark Laser wrote: > > > I'm a puppet newbie but have gone through the tutorial and now read most of a > book on the subject.(So please tell me if I am approaching the probl

Re: [Puppet Users] First time Puppet user, need installation assistance

2014-01-09 Thread Peter Bukowinski
nks! You're likely seeing that error because Mac OS is not a supported platform for Puppet Enterprise. Supported platforms are listed here: http://puppetlabs.com/puppet/requirements. You'll need to use Puppet Open Source. -- Peter Bukowinski -- You received this message because you are s

Re: [Puppet Users] puppet installation help

2014-01-09 Thread Peter Bukowinski
pectively. A full list of commands that changed in puppet 2.6 is listed here: http://docs.puppetlabs.com/guides/tools.html -- Peter Bukowinski -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiv

Re: [Puppet Users] First time Puppet user, need installation assistance

2014-01-09 Thread Peter Bukowinski
On Jan 9, 2014, at 10:30 AM, J Neitzey wrote: > I downloaded Puppet 2.7.x from http://puppetlabs.com/misc/download-options. > > This is just a package installer. > > I don't see Mac Enterprise to download any where. Is that the correct > installation? Yes, either the 2.7.x or the 3.x versio

Re: [Puppet Users] First time Puppet user, need installation assistance

2014-01-09 Thread Peter Bukowinski
On Jan 9, 2014, at 10:45 AM, J Neitzey wrote: > I installed the 2.7.x version package. Am I supposed to be able to go to an > internal server website now and see the console? > > I'm guessing now that the video webinar is not a Mac. > http://puppetlabs.com/webinars/special-topic-using-puppet-

Re: [Puppet Users] puppet jobs list?

2014-02-01 Thread Peter Bukowinski
I get pinged by headhunters via LinkedIn. Have you tried posting/searching there? -- Peter > On Feb 1, 2014, at 10:14 AM, Jason Antman wrote: > > Is there a puppet jobs list or board anywhere? (not jobs at PL, jobs > dealing with Puppet) > > If not, where would you advertise/post (or look, I

Re: [Puppet Users] problem with File[path]

2014-02-05 Thread Peter Bukowinski
up => root, > mode => '0755', > source => 'puppet:///modules/nrpeplugins/${pname}' > } > > } > > thanks, > peter You're getting the error because you've used single quotes in the file definition. If you want puppet to inte

[Puppet Users] Bug(?) in puppetlabs-firewall module prevents successful install/upgrade to PE 3.2

2014-03-04 Thread Peter Bukowinski
anyone else run into this? In any case, I'd recommend waiting to upgrade until you hear otherwise. -- Peter Bukowinski -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving email

Re: [Puppet Users] Re: Bug(?) in puppetlabs-firewall module prevents successful install/upgrade to PE 3.2

2014-03-06 Thread Peter Bukowinski
mation. Just drop your updated module into the same folder and either move the old one out or rename it by prepending some text to it so that "puppetlabs-firewall*" doesn't match it, e.g. "DISABLED-puppetlabs-firewall-1.0.0.tar.gz". -- Peter Bukowinski -- You received th

Re: [Puppet Users] exclusion/exception in server.pp file

2014-03-12 Thread Peter Bukowinski
17.3./ { $ntp_heure = "ntp.domain.fr" $fusioninventory_proxy = "http://proxy.domain.fr:8080"; $resolv_servers = $::ipaddress ? { '172.17.3.4' => [ 'a.b.c.d', 'w.x.y.z' ], default => [ '172.30.12.11', '172.30.12.2' ],

Re: [Puppet Users] add user to certain hosts

2014-03-13 Thread Peter Bukowinski
nks > > - Philippe You may already be aware that putting node-specific logic in your puppet manifests is not a best practice, but I'll help you with the syntax error. Your if conditional needs to use '==' to test the fact value, not a single equal which is used for assigning valu

Re: [Puppet Users] What are puppetd and puppetca?

2014-03-14 Thread Peter Bukowinski
The video must be fairly old. Those commands are deprecated. Instead of 'puppetd', it's now 'puppet agent'. Instead of 'puppetca', it's now 'puppet cert'. -- Peter > On Mar 14, 2014, at 1:04 AM, pengyu...@gmail.com wrote: > > Hi, > > The following video mentioned puppetd and puppetca (it is

Re: [Puppet Users] Make sure folder is fully copied

2014-03-17 Thread Peter Bukowinski
esource to install the entire folder, and then notify an exec resource that runs the script. If you'd rather not have the package in a repo, you can put the package in place using a file resource and have the package resource require the file resource. -- Peter Bukowinski > On Mar 17

Re: [Puppet Users] Re: Most trivial site.pp throwing errors

2014-03-18 Thread Peter Bukowinski
r at 'add-user'; > expected '}' at /etc/puppet/manifests/site.pp:11 on node bb10-x64-rhel60 You must use 'include' and not 'import' here. 'import' can only specify files, not classes. See the docs here: http://docs.puppetlabs.com/puppet/latest

Re: [Puppet Users] conditional statement in config.pp

2014-03-20 Thread Peter Bukowinski
x27;: > ensure => present, > owner => $owner, > group => $group, > mode => '0644', > backup => false, > content => template("ssh_config_ipa.erb"), > } > } > else > { > f

Re: [Puppet Users] Re: mount point directory permissions

2014-03-21 Thread Peter Bukowinski
s => '2', require => File['/app_dir'], notify => Exec['fix_mount_perms'], } exec { 'fix_mount_perms': command => 'chmod 2755 /app_dir && chown root:root /app_dir', refreshonly => true, } Setting the exec's refreshonl

Re: [Puppet Users] Re: mount point directory permissions

2014-03-24 Thread Peter Bukowinski
That's what the notify parameter in the mount resource does. -- Peter > On Mar 24, 2014, at 5:38 AM, Dirk Heinrichs wrote: > > Am 21.03.2014 18:48, schrieb Peter Bukowinski: > >> exec { 'fix_mount_perms': >> command => 'chmod 2755 /app_dir

  1   2   >