[Puppet Users] Re: run module although with time condition, but also possibilty execute even so not in that time frame

2013-09-05 Thread Andreas Dvorak
Hi John, many thanks for this full description. After my holiday next week I will try to set this up. Best regards, Andreas -- 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

[Puppet Users] Configuring a Windows Domain Controller (DC) using puppet

2013-09-05 Thread Harsh Desai
Hi Has anyone tried configuring a windows 2008 server as a Domain controller using puppet manifests? I am looking for the DC to act as a DHCP, DNS server and setup Active Directory Domain services. Thanks Harsh -- You received this message because you are subscribed to the Google Groups "Pu

Re: [Puppet Users] if then statement within file resource

2013-09-05 Thread Frederiko Costa
Hi, I believe in that case you should use selectors to make it work. http://docs.puppetlabs.com/puppet/2.7/reference/lang_conditional.html#selectors Or you can use the 'if' outside the file resource. Something like this: $template_name = $manufacter ? { 'ibm' => "${module_name}/ibm.inittab.e

Re: [Puppet Users] if then statement within file resource

2013-09-05 Thread svrsvr91
Hi i am trying the same it is not working can u explain me how it worked file { "/etc/inittab": owner => root, group => root, mode => 0644, if $manufacturer=IBM { content => template("${module_name}/ibm.inittab.erb")}, else { content => te

Re: [Puppet Users] basic case statement question

2013-09-05 Thread Frederiko Costa
Hi, To me, this would look like this. You're assigning the 'server' variable using =>, rather than =: class { '::ntp': case $timezone { 'PDT': { servers = [ '0.us.pool.ntp.org', '1.us.pool.ntp.org', ' 2.us.pool.ntp.org', '3.us.pool.ntp.org'] } default: { fa

Re: [Puppet Users] Re: Puppet and RHN Satellite - Queensberry rules required?

2013-09-05 Thread Dan White
I have Cobbler built repository mirrors of all the repos I use. I use ensure => present Puppet sets up files in /etc/yum.repos.d and points to my Cobbler-mirrors The yumrepo type includes an "exclude" parameter if you need it. I do not see that it would be a problem getting Puppet to "play ni

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

[Puppet Users] migrating to puppetdb

2013-09-05 Thread Darin Perusich
Hello All, I'm looking to migrate from ActiveRecord to PuppetDB for storeconfigs and was going to export the existing data with "puppet storeconfigs export", sounds simple enough. The problem I'm hitting is the export attempts to connect to a sqlite3 DB but I'm using mysql for storeconfigs. The he

Re: [Puppet Users] Puppet under HA Environment

2013-09-05 Thread Rich Burroughs
One of my former co-workers did a talk about Mcollective at PuppetConf. People involved in this thread might find it useful :) He gives some examples about doing rolling restarts, you could do something very similar with orchestrating agent runs. http://puppetlabs.com/presentations/intro-systems-o

[Puppet Users] best practice

2013-09-05 Thread Stuart Cracraft
Hi everybody! So for non-automated physical/manual application of single specific patterns or sets of puppet patterns on an entirely manual basis, what is best practice and/or where is it described? Meaning what is the way to stop the puppet agent from running automatically and instead require

[Puppet Users] JOB: San Bruno, Systems Administrator - Aconex Ltd

2013-09-05 Thread denmat
Hi all, We are currently looking for a Systems Administrator (Linux and a tiny bit of Windows (MSSQL)). Our clients are large building developers that use our product for document storage and workflows. Main deal is supporting that you will be supporting the main application (JAVA) and doing all

[Puppet Users] Re: Puppet and RHN Satellite - Queensberry rules required?

2013-09-05 Thread Stephen Wallace
Steven, Whilst I'm not a Satellite guru, it should be considered merely as repo only. Satellite as far as I am aware does not pro-actively visit any boxes and perform maintenance on them. It does provide the opportunity for boxes to update themselves. I'd be interested to hear other people's e

Re: [Puppet Users] migrating to puppetdb

2013-09-05 Thread Ken Barber
You might need to move your storeconfigs specific settings into the [main] block of your puppet.conf ... instead of [master] for this operation to succeed, since the storeconfigs command doesn't look into the [master] block I believe. On Thu, Sep 5, 2013 at 2:01 PM, Darin Perusich wrote: > Hello

[Puppet Users] Custom Function that uses powershell

2013-09-05 Thread carllindelof
Hi All, Is there anyone who has written a custom function calling powershell that returns a value? The case we are trying to use the puppet module *scheduled_task *and it works really well! The problem is that we don't want to declare our password in the declaration so we would like to set us

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

2013-09-05 Thread Pete Hartman
Being able to set the timeout long enough gave us enough data to find the problem. Our SPARC build of OpenSSL used some configuration options that were, shall we say, non-optimal :-). On a corrected OpenSSL build the SPARC times are now in the same ballpark as the x86 times. Thanks again for

[Puppet Users] Puppet and RHN Satellite - Queensberry rules required?

2013-09-05 Thread Steven James
Hi, A little off topic perhaps, but thought somebody may have some insights with the following. I'm trying to anticipate and plan for any contests between Puppet and RHN Satellite. The thought to try and get them to play together may be as follows; Satellite will 1) Provision a base RH ser

Re: [Puppet Users] basic case statement question

2013-09-05 Thread Frederiko Costa
Ohh.. my bad. You're actually instantiating the parametized class ntp. I accidentally thought you were writing your module. In that case, you might want to try using selectors. But I don't remember from the top of my head if the fail() function would work. Let's stick with the 'case' anyway ... T

Re: [Puppet Users] basic case statement question

2013-09-05 Thread Greg Coit
Frederiko, That worked perfectly! I was trying to be too fancy I guess. Thank you for the help Greg On Thursday, September 5, 2013 11:27:02 AM UTC-7, Frederiko Costa wrote: > > Ohh.. my bad. You're actually instantiating the parametized class ntp. I > accidentally thought you were writin

Re: [Puppet Users] basic case statement question

2013-09-05 Thread Greg Coit
Thank you for the reply Frederiko. Unfortunately, that doesn't seem to be the issue. The following is from the pupetlabs/ntep docs and works: class { '::ntp': servers => [ '0.us.pool.ntp.org', '1.us.pool.ntp.org', '2.us.pool.ntp.org', '3.us.pool.ntp.org'], } Greg On Thursday, Septem

[Puppet Users] puppet dashboard

2013-09-05 Thread Ankit Mittal
Dear All, Please help to find the latest version of puppet Dashboard in which i can use postgre database. -- 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 puppe

[Puppet Users] Odd behaviour trying to specify restart command for service on windows

2013-09-05 Thread Adam Scarborough
Hi i'm having a strange issue and was wondering if anyone could help I have the following resource defined for a windows service: service{'Tomcat7': ensure => running, restart => 'c:/windows/system32/cmd.exe /c c:/Tomcat7/bin/RestartService.bat' } in this case both 'c:/

Re: [Puppet Users] Re: --graph Node[somethingwronghere]

2013-09-05 Thread ureal frank
On Thu, Sep 5, 2013 at 2:25 PM, jcbollinger wrote: > > > On Wednesday, September 4, 2013 11:40:01 AM UTC-5, ureal frank wrote: >> >> Hi, >> >> >> I am trying to debug some abnormal behavior here and to help me figure >> out what is happening, I've run the agent with --graph option. >> >> And meanw

[Puppet Users] basic case statement question

2013-09-05 Thread Greg Coit
Hi all, I'm using the puppetlabs/ntp module and would like to define the ntp servers based on the fact timezone: #ntp class { '::ntp': case $timezone { PDT: { servers => [ '0.us.pool.ntp.org', '1.us.pool.ntp.org', '2.us.pool.ntp.org', '3.us.pool.ntp.org'], } default: { fail("

[Puppet Users] Puppet Forge max upload size?

2013-09-05 Thread vkanakala
Hello, Can somebody here pass on the question to puppetforge maintainers please? I'm trying to upload a new release of my module which is about 25MB, but I'm getting an nginx error saying the size is too large. But the default install case for my module needs the bunch of jar files that come al

Re: [Puppet Users] Random Yum errors during provisioning

2013-09-05 Thread Stuart Cracraft
Did you do a ps -ef | grep yum? It tells you the pid. I wouldn't kill it. Let it finish its other work. If the pid isn't present, remove the pid-file and retry. If that fails, you have some serious troubleshooting to do tracing the process, googling the web for the error message, and other dril

Re: [Puppet Users] Re: Random Yum errors during provisioning

2013-09-05 Thread jcbollinger
On Wednesday, September 4, 2013 9:41:46 AM UTC-5, Glenn Poston wrote: > > We've disabled yum-updatesd on our nodes. > > Thanks John, > > Further investigation has shown that after any package update/install, yum > automatically runs the following command… > > /usr/bin/python /usr/bin/yum --secur

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

[Puppet Users] Re: Exec type's 'onlyif' and 'unless' commands run even with --noop

2013-09-05 Thread jcbollinger
On Wednesday, September 4, 2013 8:01:31 AM UTC-5, Vladimir Brik wrote: > > Hello, > > I have noticed that commands specified in 'onlyif' and 'unless' > parameters of the Exec type are always executed, even if --noop option > is given on command line or the resource's noop parameter is set to t

[Puppet Users] Re: Nicer Lookup

2013-09-05 Thread Simon Hönscheid
Am Donnerstag, 5. September 2013 15:16:59 UTC+2 schrieb jcbollinger: > > > > On Wednesday, September 4, 2013 4:18:01 PM UTC-5, Simon Hönscheid wrote: >> >> Hi List, >> >> I have a hashmap/array construct where i want to lookup data. my current >> lookup looks like that: >> >> foo_uses_a

[Puppet Users] Re: --graph Node[somethingwronghere]

2013-09-05 Thread jcbollinger
On Wednesday, September 4, 2013 11:40:01 AM UTC-5, ureal frank wrote: > > Hi, > > > I am trying to debug some abnormal behavior here and to help me figure out > what is happening, I've run the agent with --graph option. > > And meanwhile I've found that under resources.odt I see a Class[Main] no

[Puppet Users] Re: Nicer Lookup

2013-09-05 Thread jcbollinger
On Wednesday, September 4, 2013 4:18:01 PM UTC-5, Simon Hönscheid wrote: > > Hi List, > > I have a hashmap/array construct where i want to lookup data. my current > lookup looks like that: > > foo_uses_a => [ $foo['bar']['a'], $foo['bar2']['a'] ], > foo_refers_b => [ $foo['bar']['b