[Puppet Users] Avoiding disaster

2009-06-23 Thread martin
I've taken is to run two puppetmasters[1] and only push the changes to one of them at a time, and waiting for the changes to stew before pushing to the other. This way I won't take down a whole site at once. How have you solved this problem? [1] <http://blogs.sun.com/martin> chee

[Puppet Users] Øresund puppet users

2009-07-18 Thread martin
terested... [1] <http://en.wikipedia.org/wiki/%C3%98resund> cheers, /Martin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googl

[Puppet Users] Re: Solaris /etc/user_attr file - anyone ever tried to manage this?

2009-08-11 Thread martin
gid => 90, ... ensure => role, profiles => "Postgres Administration" } Start by reading through the user[1] type in the documentation, it contains most of what you need. If you have more specific questions, just drop me a line.

[Puppet Users] Re: Failed to retrieve current state of resource: No child processes

2009-08-11 Thread martin
had enough time to spare to start debuging it,as it only happens once in a blue moon. I've attributed to weird installs of Solaris on old systems, but since we now have it on both Debian & Solaris it seems to be a systemic thing... cheers, /Martin --~--~-~--~~~---~--~

[Puppet Users] Re: ZFS provider does not delete - user or puppet error?

2009-09-03 Thread martin
eate] + add_properties + [...@resource[:name]]) >      end > >      def delete >          zfs(:destroy, @resource[:name]) >      end > It is calling destroy(), but it isn't defined. Rename "def delete" to "def destroy" and it should work - I'll file a bug.

[Puppet Users] Re: Apache load balancing problem with 0.25.0

2009-09-09 Thread martin
On Sep 9, 5:35 pm, Martin Englund wrote: > Inspecting the code where it fails makes me scratch my head (code > included at the bottom). The variable "format" is, according to the > error message, "text/html" - but that should have matched then when > clause &quo

[Puppet Users] Re: Problem installing Solaris Datastream Package

2009-09-29 Thread martin
on look like? When I install package streams I use: package { "SFWrsync": adminfile => "/etc/pkgadmin", source => "http://$pkg_server/packages/$hardwareisa/$name.pkg"; } cheers, /Martin --~--~-~--~~~---~--~~ You received t

[Puppet Users] Re: how to update solaris packages without keeping local copies

2008-10-16 Thread martin
(think lots and lots of packages) > it is not very well known, but pkgadd can take an URL as dtastream, i.e. pkgadd -d http://yourserver.com/pkgs/SUNWxyz.pkg I haven't checked if puppet supports this, but it is worth investigating :) cheers, /Martin --~--~-~--~~~---

[Puppet Users] Re: Thread error in tagmail

2008-10-27 Thread martin
No, unfortunately (or not) it only happened once, but I'll file a bug report... (I'm going to upgrade the production puppetmaster soon, and I'll see if the error reoccurs) cheers, /Martin On Oct 27, 5:37 pm, "Andrew Shafer" <[EMAIL PROTECTED]> wrote: >

[Puppet Users] Re: Weird error message

2008-10-30 Thread martin
nt } /M On Oct 30, 5:45 pm, "Andrew Shafer" <[EMAIL PROTECTED]> wrote: > What does the definition of that file resource look like? > > On Thu, Oct 30, 2008 at 10:38 AM, Martin Englund <[EMAIL PROTECTED]>wrote: > > > > > Folks, > > >

[Puppet Users] Re: Weird error message

2008-10-30 Thread martin
/usr/ops/bin/create-zpool.sh]: Failed to retrieve current state of resource: undefined method `[]' for :che:Symbol info: Sent transaction report in 0.15 seconds notice: Finished catalog run in 1.18 seconds /M On Oct 30, 9:44 pm, "Andrew Shafer" <[EMAIL PROTECTED]> wrot

[Puppet Users] Re: Weird error message

2008-11-05 Thread martin
It turned out that the file had gotten corrupted and unfortunately my fingers were faster than my brain, so I managed to delete the file before I could send it to the list... If it happens again I'll make sure to save a copy :) cheers, /Martin On Oct 31, 8:01 am, "Andrew Shafe

[Puppet Users] Re: Trouble running puppet from cron

2008-11-10 Thread martin
' /usr/ops/lib/ruby/1.8/benchmark.rb:308:in `realtime' /usr/ops/lib/ruby/site_ruby/1.8/puppet/util.rb:444:in `thinmark' /usr/ops/lib/ruby/site_ruby/1.8/puppet/network/client/master.rb:244:in `run' /usr/ops/lib/ruby/1.8/sync.rb:229:in `synchronize' /usr/ops/lib/ruby/site_rub

[Puppet Users] Re: Trouble running puppet from cron

2008-11-10 Thread martin
One thing I forgot to mention: if I run the script by hand (as root) it works as expected. cheers, /Martin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, sen

[Puppet Users] Re: Trouble running puppet from cron

2008-11-11 Thread martin
After debugging this some more, I noticed that I get the same error when I run it as a daemon (puppetd). Where and how does puppetd pick up the PATH it is using? cheers, /Martin On Nov 10, 12:46 pm, Martin Englund <[EMAIL PROTECTED]> wrote: > I've got a problem when I run

[Puppet Users] Re: Trouble running puppet from cron

2008-11-12 Thread martin
o set the path in puppet.conf? [puppetd] path /usr/bin:/usr/sbin:/usr/foo:/usr/bar cheers, /Martin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to

[Puppet Users] Re: Trouble running puppet from cron

2008-11-13 Thread martin
uot;. I've found out that suitableprovider returns the full list of providers, but this statement in type.rb # Find which providers are a default for this system. defaults = suitable.find_all { |provider| provider.default? } returns an empty list when r

[Puppet Users] Re: Trouble running puppet from cron

2008-11-13 Thread martin
Minor correction: it is suitableprovider() which returns an empty list, while it successfully loads all providers, but provider.suitable? always evaluates to false. cheers, /Martin On Nov 13, 8:04 pm, martin <[EMAIL PROTECTED]> wrote: > I'm one step closer now :) > > It t

[Puppet Users] Re: Trouble running puppet from cron

2008-11-13 Thread martin
try that. > I fixed the virtual fact, and got the correct PATH. But it still fails when run through cron (even though the PATH contain all commands the providers are looking for). Another thing which could be wrong are the facts. What is the best way to dump them from withi

[Puppet Users] Re: Trouble running puppet from cron

2008-11-13 Thread martin
e why... > Can't it be the confines which evaluates to false? cheers, /Martin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegrou

[Puppet Users] Re: Trouble running puppet from cron

2008-11-13 Thread martin
does not exist debug: file groupmod does not exist err: Could not create ipfilter: Could not find a default provider for group And groupmod is in /usr/sbin with mode 755 cheers, /Martin - baffled and ready for bed --~--~-~--~~~---~--~~ You received this message

[Puppet Users] Re: Could not write crontab for root: Invalid user: root

2008-11-18 Thread martin
A couple of questions: 1) what does passwd look like before and after puppet 2) what does pam.conf look like before and after puppet? (in the zone) cheers, /Martin On Nov 17, 2:35 pm, Bruno B <[EMAIL PROTECTED]> wrote: > I'm not using LDAP or NIS. The users are managed with /etc

[Puppet Users] Re: Puppet Camp

2009-05-04 Thread martin
I vote for the week before the Velocity conference, as a lot of people will be in the Bay Area and staying a few extra days is easy for us "out of towners" cheers, /Martin On Apr 27, 9:39 am, Andrew Shafer wrote: > And decent Mexican food... > > Get it all arranged an

[Puppet Users] Re: Managing core files using coreadm (Solaris + Puppet)

2009-05-29 Thread martin
rhead really isn't that much, but if you want to get it down as much as possible: create a new type which runs "coreadm" without any options (which outputs the contents of /etc/coreadm.conf) and parse that, and adjust the incorrect values. cheers, /Martin On May 28, 2:10 am, Greg wrote:

Re: [Puppet Users] "Each" loop issue

2014-07-04 Thread Martin
in for all your hard work! Cheers, Martin 2014-07-03 23:01 GMT-03:00 Henrik Lindberg : > On 2014-03-07 23:00, martin.li...@gmail.com wrote: > >> Hi Ellison, >> >> That's right. That seems to be the case. >> I've been googling around, and seems that th

Re: [Puppet Users] "Each" loop issue

2014-07-04 Thread Martin
Henrik, Didn't know about "Ask". I've added to the bookmarks for the next time ;) Thanks! 2014-07-04 10:53 GMT-03:00 Henrik Lindberg : > On 2014-04-07 14:59, Martin wrote: > >> Henrik, >> >> Thank you for such clear reply!.. I'll start

[Puppet Users] iptables and number of ports

2014-07-31 Thread martin
Hi, I'm trying to manage iptables with 'puppetlabs/firewall/1.0.2'. I use hiera to pass arguments to the firewall module like that: '032 accept dns traffic': source: '0.0.0.0/0' dport: '53' My problem is that after applying the configuration to a node iptables -nL shows: ACCEPT ud

Re: [Puppet Users] iptables and number of ports

2014-08-01 Thread martin
That is was I thought. Thanks for help. On Thursday, July 31, 2014 11:57:51 PM UTC+1, Trevor Vaughan wrote: > > This is fine, multiport can handle one or more ports and is a safe generic > way to handle this situation. > > Trevor > > > On Thu, Jul 31, 2014 at 12:23 PM, > > wrote: > >> Hi, >> >>

Re: [Puppet Users] Anyone really using Postgres for a Hiera backend?

2015-05-13 Thread Martin
Funny, I'd rather ask: is anyone *not* using Postgres? On Wed 13 May 2015 at 18:45 leam hall wrote: > Just wondering. I found some options but don't see any under current > development. > > Leam > > > -- > Mind on a Mission > > -- > You received this message becaus

Re: [Puppet Users] Can we install.. Oracle, weblogic, Notepad++ and tomcat using Puppet

2015-06-24 Thread Martin
/configure/manage software is this: 1. Identify the requirements for your specific piece of software 2. (hopefully) find a suitable module on the forge 3. integrate with the rest of your environment I'm sorry but I can't give a more specific answer to that. regards, Martin On Wed, Ju

Re: [Puppet Users] rpm installation ordering question and yum repos

2015-07-27 Thread Martin
We simply use YUM priorities for that: http://wiki.centos.org/PackageManagement/Yum/Priorities On Fri, Jul 24, 2015 at 6:30 PM Vince Skahan wrote: > Like many sites, we have internal yum repos that contain our > internally-created rpms, as well as some other repos that are internal > mirrors of

Re: [Puppet Users] rpm installation ordering question and yum repos

2015-07-27 Thread Martin
Oh I misread the question sorry :) -- Yes the stages is probably the right approach. /Martin On Mon, Jul 27, 2015 at 2:18 PM Martin wrote: > We simply use YUM priorities for that: > > http://wiki.centos.org/PackageManagement/Yum/Priorities > > > On Fri, Jul 24, 2015 at 6:

Re: [Puppet Users] Release Note Notification

2015-07-28 Thread Martin
Hi, not sure wether those are official (but I think so): * https://groups.google.com/forum/#!forum/puppet-announce * https://groups.google.com/forum/#!forum/puppet-security-announce /Martin On Tue, Jul 28, 2015 at 2:13 PM Michael Speth wrote: > Greetings, > Is there a way to rec

Re: [Puppet Users] Augeas failing when acting on smb.conf

2015-08-04 Thread Martin
Hi, While no help at all for Augeas: Why don't you simply use a template? It would also get rid of the exec at the end? /Martin On Mon 3 Aug 2015 at 23:04 Fabrizio Zelaya wrote: > Hello everyone! > > I am trying to run puppet agent on a SL-6 Machine and one action I'm >

Re: [Puppet Users] Utopic leaving apt.puppetlabs.com

2015-08-20 Thread Martin
Please don't remove it or at least provide some kind of archive (not arguing that there will be no updates, just don't remove the files). On Thu, Aug 20, 2015 at 5:55 PM Melissa Stone wrote: > Ubuntu Utopic 14.10 reached end of life on 2015-07-23 [1], so we are no > longer building new packages

Re: [Puppet Users] Utopic leaving apt.puppetlabs.com

2015-08-20 Thread Martin
tty much captures the whole point of having a release archive. /Martin On Thu, Aug 20, 2015 at 6:33 PM Christopher Wood wrote: > On Thu, Aug 20, 2015 at 04:08:00PM +, Martin wrote: > >Please don't remove it or at least provide some kind of archive (not > >arguing that

Re: [Puppet Users] trouble with hiera %{calling_module} and puppet defines

2012-03-16 Thread Martin Willemsma
Hi Florian, Interesting post. I was planning the same sort of approach for apache vhosts with hiera and create_resources. This is good proof that the idea works. Are you using this approach in other modules as well, if so which? Regards, Martin 2012/3/16 Gary Larizza : > Ahh, > > G

Re: [Puppet Users] Unknown function hiera

2012-04-04 Thread Martin Willemsma
For me restarting apache was enough /etc/init.d/apache restart --- Kind regards, Martin Willemsma 2012/4/4 Andreas Paul : > Hi there, > > for some reason I can't use hiera functions in my manifests. > Here are the relevant config files: > > cat /etc/pupp

Re: [Puppet Users] puppet + mysql = central users administration for yours servers

2012-04-25 Thread Martin Willemsma
To read in English use Google translate: http://translate.google.com/translate?sl=ru&tl=en&js=n&prev=_t&hl=en&ie=UTF-8&layout=2&eotf=1&u=http%3A%2F%2Fhabrahabr.ru%2Fcompany%2Fbadoo%2Fblog%2F142708%2F Martin 2012/4/25 banuchka : > Hi all, > > article in

Re: [Puppet Users] Installing up to date puppet on Ubuntu

2012-05-22 Thread Martin Alfke
ter enabling the puppetlabs repository? What versions are shown when running apt-cache policy puppet ? Regards, Martin > > Setting up puppet (0.25.4-2ubuntu6.7) . > > > I tried installing via gems: > > sudo gem install puppet > > which does give: > > Succes

Re: [Puppet Users] puppet on Xen Server

2012-05-31 Thread Martin Willemsma
se are not installed yet on this machine. --- Best regards Martin 2012/6/1 Timothy Sutton : > I've only ever installed a handful of 3rd-party tools on XenServer, > but it was usually a matter of finding EL5-compatible rpms from an > external repo and installing those. > > Tim > &

[Puppet Users] MCollective not all nodes answer to commands when using aes_security plugin

2012-06-06 Thread Martin Willemsma
'STUCK' in the messagebus and arrives late on the client. Any hints on were to tackle this issue are more then welcome and really appreciated . This issue is blocking the implementation of mcollective on our platform which is more than just sad Currently I'm using MCollective 2.0.0 on Ubu

Re: [Puppet Users] MCollective not all nodes answer to commands when using aes_security plugin

2012-06-07 Thread Martin Willemsma
ork part. 2012/6/7 R.I.Pienaar : > > > - Original Message - >> From: "Martin Willemsma" >> To: "Puppet Users" >> Sent: Thursday, June 7, 2012 7:11:41 AM >> Subject: [Puppet Users] MCollective not all nodes answer to commands when >&g

Re: [Puppet Users] MCollective not all nodes answer to commands when using aes_security plugin

2012-06-08 Thread Martin Willemsma
arn: Ignoring a message that did not pass security validations I'm adjusting my manifest to ensure the mcollective service is not running on nodes < 512 ram. 2012/6/8 R.I.Pienaar : > > > - Original Message - >> From: "Martin Willemsma" >> To: puppe

Re: [Puppet Users] Conditional with variable from facter

2012-06-18 Thread Martin Alfke
... } } 'Debian': { ... } default: { ... } } Also take a look on the documentation: http://docs.puppetlabs.com/guides/language_guide.html#conditionals - Marti

Re: [Puppet Users] Puppet can't successfully restart puppetd

2012-06-27 Thread Martin Alfke
y's > there to start puppet up again. > > I've worked around this using exec { "echo service puppet restart | at > now+5min" } in the past, but this is quite the hack. Personally I have > found the cron model much more convenient that the long-running agent.

Re: [Puppet Users] Puppet / Passenger and Firewall

2012-06-27 Thread Martin Alfke
41 on any agent to allow access from master. when you use dashboard you need to open port 3000 on the master from any agent. when you use separate dashboard mysql database you need top open connection from aster to db server. hth, Martin -- You received this message because you are subscrib

Re: [Puppet Users] Puppet can't successfully restart puppetd

2012-07-04 Thread Martin Alfke
nit.d/puppet restart &' > > Nice! Thanks very much, Martin, that works really nicely. > > > Before I blindly try this how does the above work... > > I call this midway through a puppet run and it does no harm to the current > run but > loads new configu

[Puppet Users] hash to_yaml in erb template not giving valid yaml

2012-07-05 Thread Martin Willemsma
" irb(main):004:0> I see several snippets on the internets to write a facts.yaml file to be used with Mcollective. None of them work for me. Puppet version: 2.7.12 OS: Ubuntu 10.04 Any hints on how to fix this issue? --- kind regards, Martin Willemsma -- You received this message because

Re: [Puppet Users] Questions for puppet 2.6.8 client certificate management

2011-06-17 Thread Martin Alfke
d for the master only. On the client we also recursivley delete the puppet ssl dir. Kind regards, Martin > > -- > T.J. Yang > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post t

Re: [Puppet Users] Geppetto is ready

2011-06-21 Thread Martin Willemsma
in /tmp/apache/.git/ warning: You appear to have cloned an empty repository Maybe its an option to clone an empty repo and just give a warning instead of bailing out. -- Martin Willemsma 2011/6/21 Henrik Lindberg > Geppetto 1.0 is released and ready for download. We want all the feedbac

Re: [Puppet Users] How to manage many nodes easily?

2011-06-21 Thread Martin Willemsma
#x27; In a separate file $fqdn.pp I place the definitions for a node. Are there more people using this kind of approach? --- Martin 2011/6/21 Carles Amigó > We had the same problem and we just separated each node (or group of nodes) > in one file and then we load them using the following

Re: [Puppet Users] ANNOUNCE: Puppet 2.7.0 Released

2011-06-22 Thread Martin Willemsma
the deamon process once a week, but would like to use 2.7.0 right after upgrade. --- Martin 2011/6/22 Frederik Wagner > > Hi, > > thanks for the new version, I was looking forward to it since > puppetcamp A'dam... > > Just a minor issue: Installation from the gem gives a r

Re: [Puppet Users] apt-key and untrusted packages

2011-06-22 Thread Martin Alfke
On 06/22/2011 11:29 PM, Craig White wrote: > Perhaps this is a Debian/Ubuntu question and not a puppet problem but... > > Seems as though the key is good but the install failed. > > # apt-key list > /etc/apt/trusted.gpg > > --- snip --- > > pub 2048R/7F0CEB10 2010-02-05 >

Re: [Puppet Users] How to manage many nodes easily?

2011-06-22 Thread Martin Alfke
, ... } Within your node definition you call the class with desired parameter: node 'node1' { class application::add { appname => 'app1' } class application::add { appname => 'app3' } } Kind regards, Martin > > 2011/6/21 Chris Phill

[Puppet Users] Re: How to manage many nodes easily?

2011-06-22 Thread Martin Alfke
On Jun 23, 7:44 am, Martin Alfke wrote: > On 06/23/2011 04:35 AM, flex wrote: > > > These is another question, i have many defines which will apply an > > application to sepcified path, called as: > > > application::add { "app1": path => "/var/app1&

Re: [Puppet Users] Re: How to manage many nodes easily?

2011-06-23 Thread Martin Alfke
alling the define you just have to make sure that the give name is uniq. > > 2011/6/23 Martin Alfke mailto:tux...@gmail.com>> > > > > On Jun 23, 7:44 am, Martin Alfke <mailto:tux...@gmail.com>> wrote: > > On 06/23/2011 04:35 AM, flex wrote:

Re: [Puppet Users] How to add extra lines in the existing files?

2011-06-23 Thread Martin Alfke
On 06/23/2011 12:55 PM, Sans wrote: > Dear all, > > As in the title, how do I add some extra lines in a existing file and > check every time for its presence? I just don't want to copy over the > existing file for some good reason (system files etc.). > > Any idea how should I do that? cheers!! >

Re: [Puppet Users] How to add extra lines in the existing files?

2011-06-23 Thread Martin Alfke
fers you a flexible way to build up features by yourself: http://projects.puppetlabs.com/projects/1/wiki/Development_Practical_Types (This shows how to build up a reusable type for append_if_no_such_line.) my 5pence. kind regards, Martin > >> Cheers, >> >> Nico >> > &

Re: [Puppet Users] Re: error with puppet

2011-06-25 Thread Martin Alfke
On 24.06.2011, at 22:59, jcbollinger wrote: > > > On Jun 24, 3:30 am, Neelam wrote: >> err: Could not retrieve catalog from remote server: hostname was not >> match with the server certificate >> warning: Not using cache on failed catalog >> err: Could not retrieve catalog; skipping run >> >>

Re: [Puppet Users] puppet terminating - continually forcing itself to stop

2011-07-05 Thread Martin Alfke
On 07/05/2011 03:19 PM, Brian Gallew wrote: > I was seeing the behavior on my Solaris boxes when running Puppet under > SMF. The issue, in my case, was that I was trying to work around an SMF > bug. My "workaround" was to "svcadm disable puppetd;svccfg import > /var/svc/manifest/network/puppetd.x

Re: [Puppet Users] Downgrading RubyGems using Package provider => gem

2011-07-08 Thread Martin Willemsma
8, 2.6.4 --- Martin 2011/7/8 Ryan Conway : > Hey everyone, > > I'm experiencing an issue resulting from the way RubyGems works when > dealing with multiple gem versions. > > When managing a gem through the Package provider, setting ensure to a > version lower than a curre

[Puppet Users] Re: Skipping Tags?

2011-07-20 Thread John Martin
Doug, We've been successful with software deployments and Puppet has done a great job. We deploy to Tomcat, JBoss, Coldfusion and Apache web sited. In some cases we've needed to tie in a shell script which were nearly impossible to get right in Puppet. One of the keys to your question was that

[Puppet Users] Re: How to use notify to invoke something prior to a change

2011-07-20 Thread John Martin
Nan - that is an interesting approach to call Puppet from Puppet. I'll have to give that a try and experiment. Thanks! -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubs

Re: [Puppet Users] Adding users to groups

2011-07-22 Thread Martin Alfke
an I do to fix this? I don't always want to assign the user to that > group as its primary? Is this a Debian system? On Debian the user add command automatically adds a primary group with the same name as the username. What happens when you run the useradd command directly? Kind

Re: [Puppet Users] Adding users to groups

2011-07-22 Thread Martin Alfke
On Jul 22, 2011, at 4:23 PM, Oliver Beattie wrote: > Hi, > > Yes, this is Debian (Ubuntu). If I specify groups (not gid) surely the groups > the user gets added to should be secondary, not primary? > > If I run the command directly I get the same error (although not if I > lowercase the g of

[Puppet Users] Re: exec onlyif not working properly

2011-07-23 Thread John Martin
I believe your issue is that your grep command will ALWAYS return 0 since it will see it's one process in the process list. You must add a second grep to ignore it. Try the following: unless => "/bin/ps -aux |/usr/bin/grep '/data/service' | grep -v grep" -John -- You received

[Puppet Users] Re: service start/stop

2011-07-25 Thread John Martin
And adding to Craig's comment, you should "sudo su -" to root in order to run the service script in same fashion as Puppet will. Sometimes the user environment is setup differently (i.e. JAVA_HOME). John -- You received this message because you are subscribed to the Google Groups "Puppet Users

Re: [Puppet Users] module creation

2011-07-26 Thread Martin Alfke
Hi Roni, best to start with learning puppet: http://docs.puppetlabs.com/learning/ If you look for special modules you want to check the module forge: http://forge.puppetlabs.com/ There you will find lots of modules also covering apache, php and mysql. hth, Martin On 07/26/2011 01:52 PM, Rony

[Puppet Users] Re: Custom fact question

2011-08-01 Thread John Martin
The Fact will get downloaded ahead of the manifest being compiled. You just need to add a require => Service[myservice] to the config file. John -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@g

Re: [Puppet Users] Writing custom manifest

2011-08-02 Thread Martin Alfke
group => root, source => 'puppet:///files/usr/local/apache/etc/', recurse => true, } exec { '/usr/local/apache/bin/apachectl graceful': refreshonly => true, subscribe => File['/usr/local/apache/etc/'], } Regards, Ma

Re: [Puppet Users] distribute a website

2011-08-02 Thread Martin Alfke
xf pwiki.tar.gz", > subscribe => File["/srv/www/pwiki.tar.gz"] > } > } add the following line to your exec resource: refreshonly => true, Regards, Martin > > -- > You received this message because you are subscribed to the Google G

[Puppet Users] Re: How to query other classes/defines configurations in the same node?

2011-08-05 Thread John Martin
Case 1: I have gone to a model where I have a manifests/conf directory akin to /etc which contains the configuration for each service and application. In your case I would have a zabbix_conf class and in the node, I would simple reference the var $zabbix_conf::server_ip. The beauty of this is my

[Puppet Users] Re: pluginsync before catalogue?

2011-08-05 Thread John Martin
Hey John, I've been using environments quite some time with lots of success. I love the idea of creating a bootstrap environment which I never thought of. This gave me an idea to address an issue I'm trying to tackle. A client s using Puppet for their app setup/deployment. We provide the sysop

[Puppet Users] Re: Step by step guide to setting user passwords

2011-08-05 Thread John Martin
You can also use the ralsh command where the user is created as long as puppet is installed. The command will spit out the complete user dsl. ralsh user student Also, make sure the password is in single quotes so $ doesn't get interpreted. -John -- You received this message because you a

[Puppet Users] Re: Is accessing vars from different class safe?

2011-08-06 Thread John Martin
It doesn't sound safe since it sounds like you don't alway install the class. I would lean towards a configuratios class that you can reference to determine if it is or will be installed. I would pass in that value as a parameter to the backup class instead on internally referencing across class

[Puppet Users] Re: Config files based on rpm version

2011-08-07 Thread John Martin
You could creat a fact that returns the version number of the package installed. Then in the configuration file use Boolean logic to set values and blocks of the config file templates accordingly. Note that there is a puppet function you will need to compare the version strings however I don't kn

[Puppet Users] Re: pluginsync before catalogue?

2011-08-08 Thread John Martin
John- Thanks for that in-depth feedback. It was great and something to chew on. I'm going to need to evaluate the integrity risk to the isolation requirements of the client to see which practice makes most sense. I do agree that the addition module approach would add to the consistency. It occ

[Puppet Users] HP-UX user resource and shared homedir

2011-08-09 Thread Martin Alfke
n ' ' Usage: usermod.sam [-p [-u [-o]] [-g [-G [, [-d [-m]] [-s ] [-c ] [-f ] [-e ] [-l ] When using the above command with copy and paste everything is working as expected. Any help? Regards, Martin -- You received this message because you are subscribed to the Google Groups &q

[Puppet Users] Re: HP-UX user resource and shared homedir

2011-08-09 Thread Martin Alfke
On Aug 9, 10:27 am, Martin Alfke wrote: > Hi, > > on HP-UX we want some users to have the same homedir. > > Homedir is managed by puppet as file resource. > > We now want to move the users to another primary group. > > useradd.sam complains: > > err: /User[XX

Re: [Puppet Users] question about tags

2011-08-16 Thread Martin Alfke
tral spot > > Thanks > Harold > Every class is also usable as tag: e.g. class ssh { ... } the string "ssh" can be used as tag. I have not yet used tags in nodes.pp. Kind regards, Martin -- You received this message because you are subscribed to the Google Groups &

Re: [Puppet Users] Re: copying files to the agent that matched hostname

2011-08-16 Thread Martin Alfke
Hi San, On 08/16/2011 08:46 PM, Sans wrote: > Thanks John! Is $hostname a puppet built-in variable like > $operatingsystem, $fqdn etc? These varaibles are made available to puppet by facter. You can run facter on command line to see facter output. Regards, Martin > > -San >

Re: [Puppet Users] Help Getting Puppet to run on HP-UX (as a client)

2011-08-17 Thread Martin Alfke
/projects/puppet/wiki/Puppet_HP-UX Kind regards, Martin On 08/17/2011 03:35 PM, jmckin...@thezenith.com wrote: > OK< I need a little help here. > > I am trying to get puppet working on an HP-UX 11.31 server. > > I have ruby, ruby gems, facter and puppet installed (albeit not >

Re: [Puppet Users] Requiring types in other classes

2011-08-24 Thread Martin Alfke
On 08/24/2011 11:54 AM, Jonathan Gazeley wrote: > Hi, > > Sorry if this is a basic question, but I can't find the answer in the > docs. I know about fully-qualified variables, but how can I reference a > type that is defined in a different class, so I can require/subscribe it? > > In this simple

[Puppet Users] Odd certificate problem

2011-08-24 Thread Martin Arendtsen
and can connect and apply the configuration. On client that can't connect I also tried to clear out the ssl directory to make it create a new request but without any luck. Does anyone have an idea for me how to get on? Regards /Martin -- You received this message because you are subsc

Re: [Puppet Users] Some beginner's questions...

2011-08-29 Thread Martin Alfke
ensure => present, source => ... } file { "a/b": ensure => absent, } Also take a look on the documentation: http://docs.puppetlabs.com/references/latest/type.html#file > > Thanks in advance, Kind regards, Martin -- You received this message bec

Re: [Puppet Users] fail to exec apt-get upgrade (change from notrun to 0 failed...)

2011-09-14 Thread Martin Alfke
On 14.09.2011, at 18:16, Stoyan Nikolov wrote: > There isn't a problem with the "apt-get upgrade -y" command, because as i > wrote in the original post, If i run that exact same command on the machine > it works just fine. > > Here's the output of the "apt-get upgrade -y; echo $?" > > root@a

Re: [Puppet Users] puppet agent memory useage

2011-09-23 Thread Martin Alfke
ory leak in ruby. On some platforms we upgraded ruby to version 1.8.7 patchlevel 334. On older systems (like RHEL4) we created a daily cronjob which restarts puppet. Martin -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to t

[Puppet Users] Puppet throws error when evaluating block after statement

2011-11-17 Thread Martin Alfke
ame') } } when running a test: tests/init.pp base_users::usermanagement { 'alfke': gid => 1024, uid => 1024, comment => 'Martin Alfke', } The following error shows up: Could not parse for environment production: Could not match

[Solved] [Puppet Users] Puppet throws error when evaluating block after statement

2011-11-17 Thread Martin Alfke
On 17.11.2011, at 14:49, jcbollinger wrote: > > > On Nov 17, 2:18 am, Martin Alfke wrote: >> Hi, >> >> using the following manifests inside a module: >> >> define base_users::usermanagement($gid='', $uid='', $groups='&#

[Puppet Users] vcstype not checking out specified revision

2011-11-18 Thread Martin Willemsma
ed outcome. I get master, but I want last -1 ON the host: repotest # git log --pretty=format:"%H" 7eebd18175200b671360bd2a17967813faf39ae2 <-- This is the commit I get 4875fecc5f796f86fbc67cba11d80808d4cb6976 <-- This is the commit I want a810eed9961aa9df0dd797378eb281a98e37601

[Puppet Users] Re: vcstype not checking out specified revision

2011-11-18 Thread Martin Willemsma
Sorry did not specify my versions: Puppet 2.7.6 puppet-vcsrepo # git pull Already up-to-date. Description:Ubuntu 10.04.2 LTS git version 1.7.0.4 2011/11/18 Martin Willemsma : > Hi, > > I want to use Vcsrepo type to specify what version gets checked out > under a directory.  

[Puppet Users] Is package gem and provider gem usage in one puppet run possible?

2011-11-25 Thread Martin Alfke
rst puppet run? Note1: Using stages will not solve this. Note2: We would not like to execute a puppet restart after ruby1.9.1 package installation. Thank you, Kind regards, Martin -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To p

Re: [Puppet Users] Crashed my Puppet master?

2011-11-28 Thread Martin Willemsma
I think your only option is to restore from backup? I deleted my CA per accident and restored the ssl dir from backup. No problem while restarting kind regards, Martin 2011/11/28 Bernd Adamowicz : > I made a really bad mistake today by deleting all files below /var/lib/puppet > on one

Re: [Puppet Users] Is it possible to conditionally replace a file ?

2011-11-29 Thread Martin Alfke
On 28.11.2011, at 19:18, Stefan Schulte wrote: >> [...] >> Thanks for responding. >> I agree, globally customizing the defaults is one way to go, but I am >> shooting for the second option. >> > > If you do not want the gobal defaults copied why are you using > managehome => true? > > If you

Re: [Puppet Users] Could find template at /modules//templates

2011-11-29 Thread Martin Alfke
on the wiki: http://projects.puppetlabs.com/projects/1/wiki/Puppet_Modules Kind regards, Martin -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To u

Re: [Puppet Users] Is it possible to chain events from an Exec?

2011-12-14 Thread Martin Alfke
done if the exec resource command is executed. > ># extract local file > exec { "unpack_archive_$name": > command => $command, > cwd => $targetDir, > creates => "$targetDir/$appName", > refreshonly => true, > logoutput =>

Re: [Puppet Users] Re: Is it possible to chain events from an Exec?

2011-12-14 Thread Martin Alfke
Edd, On 14.12.2011, at 11:54, Edd Grant wrote: > Martin, > > r.e. your comment: "The command will only get executed in case that > $targeDir/$appName does not exists. The command will always return > 0 !!" can I ask what you were referring

Re: [Puppet Users] Is it possible to chain events from an Exec?

2011-12-14 Thread Martin Alfke
Hi Edd, On 14.12.2011, at 13:27, Edd Grant wrote: > Hi Martin, > > I have swapped all the subscribes out for requires as per your > suggestion but copy_archive_$name still runs every time. Any ideas? The exec check_unpacked_archive_exists_$name is parsed and validated on every run

Re: [Puppet Users] How to change the time interval in dashboard for a node is considered unresponsive

2011-12-16 Thread Martin Willemsma
Hi Antonio, I believe this is the setting your looking for: In /config/settings.yml: # Amount of time in seconds since last report before a node is considered no longer reporting no_longer_reporting_cutoff: 144000 restart dashboard Regards, Martin 2011/12/16 Antonio Xanxess : >

  1   2   3   4   5   6   7   8   >