[Puppet Users] Reg : File Change Checking

2012-12-17 Thread krishna bhaskara rao
Hi, I am using below script to move files from puppet master to puppet agent. file { /usr/local/temp: ensure = file, source = puppet:///files/temp, mode = 777, } If I use this script, file always transferring from master to agent. But my requirement

[Puppet Users] Re: Run stages frustration

2012-12-17 Thread jcbollinger
On Friday, December 14, 2012 2:52:03 PM UTC-6, Jakov Sosic wrote: Hi. I am wondering why can't run stages get set inside the class? For example: class foo { stage main } A few answers from different perspectives: - Because the run stage in which a class should be applied

Re: [Puppet Users] Question on modeling multiple services sharing configuration

2012-12-17 Thread Nikola Petrov
You have a bunch of options for this if I understand you well. You can one of the following: * use augeas with virtual resources * use the concat module * use the standard template function with multiple arguments; look at http://docs.puppetlabs.com/guides/templating.html and scroll down to

Re: [Puppet Users] Re: Run stages frustration

2012-12-17 Thread Jakov Sosic
On 12/17/2012 03:44 PM, jcbollinger wrote: * Because the run stage in which a class should be applied isn't a characteristic of the class itself, but rather of how it is used Yeah, that makes sense. Aha! My own biggest objection to run stages, straight out of someone else's mouth!

Re: [Puppet Users] Reg : File Change Checking

2012-12-17 Thread 薛 鹏飞
Sincerely, Pengfei Xue 在 2012-12-17,下午8:03,krishna bhaskara rao krishna...@gmail.com 写道: Hi, I am using below script to move files from puppet master to puppet agent. file { /usr/local/temp: ensure = file, source = puppet:///files/temp, mode

Re: [Puppet Users] Puppet 3.0 fails install on Solaris 10 w/ ruby 1.8.7

2012-12-17 Thread jcbollinger
On Sunday, December 16, 2012 6:20:10 PM UTC-6, Alex Harvey wrote: On Tuesday, October 2, 2012 9:28:09 AM UTC+10, Matthaus Litteken wrote: The puppet 3 gem requires hiera, whose latest version requires json, which can be either json (a c extension), or json_pure (a ruby implementation).

[Puppet Users] Home directory dependency problems

2012-12-17 Thread j
I have a home directory being created and not removed as a user is added/removed. That is desired behavior. However, there are certain files/dirs in that home directory that I want to always remove if the user gets marked absent. Unfortunately, the dependencies lead back to the home directory,

[Puppet Users] Re: Home directory dependency problems

2012-12-17 Thread Keiran Sweet
Hi, I have found when working with user accounts it is very beneficial to create a defined type that allows you to wrap alot of functionality into one definition, thus reducing manual work and being more explicit with your requirements for user data and account configuration when they are

[Puppet Users] Rspec with rspec-hiera-puppet

2012-12-17 Thread Justin Lambert
I've been working on getting spec tests on all of my modules and am down to ones that use hiera and don't have any reasonable defaults. It looks like there is a project on GH (https://github.com/amfranz/rspec-hiera-puppet) that is designed to fill this need, but for the life of me I cannot

Re: [Puppet Users] Run stages frustration

2012-12-17 Thread Erik Dalén
This works (was added sometime during 2.6 cycle I think). class foo ($stage = main) { ... } include foo On Dec 14, 2012 9:52 PM, Jakov Sosic jso...@srce.hr wrote: Hi. I am wondering why can't run stages get set inside the class? For example: class foo { stage main } Because, if I

[Puppet Users] early clean exit from module?

2012-12-17 Thread Philip Brown
Hi folks, I've poked around the language reference, and havent found anything on this so far. I'd like to be able to force a clean early exit from a module. WITHOUT encasing the whole body of the module in an if statement. What I'm looking for: class somemodule { #no this isnt going to be a

[Puppet Users] Firewall module error

2012-12-17 Thread LTH
Trying the firewall module and we're getting a strange error. /var/lib/puppet/lib/puppet/provider/firewallchain/iptables_chain.rb:34: warning: already initialized constant Mapping /var/lib/puppet/lib/puppet/provider/firewallchain/iptables_chain.rb:37: warning: already initialized constant

[Puppet Users] tweaking emacs puppet mode ?

2012-12-17 Thread Philip Brown
I enjoy the puppet mode that comes with emacs by default. However... people in our organization prefer a slightly different formating standard. Would anyone be able to tell me what tweaks I could put in my .emacs file, to make it so that code gets autoformatted as class foo { TAB line here

[Puppet Users] tweaking emacs puppet mode ?

2012-12-17 Thread Steven VanDevender
Philip Brown writes: I enjoy the puppet mode that comes with emacs by default. However... people in our organization prefer a slightly different formating standard. Would anyone be able to tell me what tweaks I could put in my .emacs file, to make it so that code gets autoformatted

Re: [Puppet Users] Re: Duplicate class declaration because of counterintuitive class scoping

2012-12-17 Thread Kristof Willaert
[snip] While it is easy to work around this by top-scoping the class, some form of documented warning might prevent some hairpulling :) Mostly for posterity, this behaviour is indeed considered buggy (a major outstanding design issue) and is in fact documented: *

Re: [Puppet Users] tweaking emacs puppet mode ?

2012-12-17 Thread Philip Brown
On Monday, December 17, 2012 1:02:20 PM UTC-8, Steven VanDevender wrote: Philip Brown writes: ... So, one to change the tabstops thing, and one to make the closing brace outdent? You might look at the customization group for puppet, since that should list all the variables

Re: [Puppet Users] tweaking emacs puppet mode ?

2012-12-17 Thread Steven VanDevender
Philip Brown writes: On Monday, December 17, 2012 1:02:20 PM UTC-8, Steven VanDevender wrote: Philip Brown writes: ... So, one to change the tabstops thing, and one to make the closing brace outdent? You might look at the customization group for puppet, since

[Puppet Users] Re: Puppet dashboard shows all hosts unresponsive

2012-12-17 Thread efrakt
Make sure that puppet-dashboard-workers service is running, otherwise all hosts will appear unresponsive and your pending tasks will keep increasing. On Thursday, November 8, 2012 5:51:36 AM UTC-8, Karim wrote: Hi guys, I have a strange situation. I've got 1 dashboard MySQL DB accessed from

Re: [Puppet Users] puppet dashboard inventory

2012-12-17 Thread vioilly
I was doing this all wrong as Peter pointed out. I had to make sure of the following: 1 - auth.conf any auth config for facts and inventory on the puppet master had to go above this entry # this one is not stricly necessary, but it has the merit # of showing the default policy, which is deny

[Puppet Users] multiple puppet masters

2012-12-17 Thread vioilly
Hi, I would like to set up an additional puppet master but have the CA server handled by only 1 puppet master. I have set this up as per the documentation here: http://docs.puppetlabs.com/guides/scaling_multiple_masters.html I have configured my second puppet master as follows: [main] ... ca

[Puppet Users] New QA Site to Ask Puppet Questions

2012-12-17 Thread Dawn Foster
Today, we are launching the beta version of a new question and answer site where you can ask any Puppet questions or provide answers for questions from other Puppet users and developers. The idea is to give you another way to ask questions if you aren’t a fan of mailing lists or IRC. It’s similar

[Puppet Users] puppet-dashboard install not generating 'dashboard' cert

2012-12-17 Thread Michael Altfield
Hello, I'm trying to get puppet-dashboard installed on a CentOS 6.3 machine running puppet v3.0.1. I'm following the puppet-dashboard documentation here: http://docs.puppetlabs.com/dashboard/manual/1.2/configuring.html In the documentation page linked above, it says: Puppet uses SSL

Re: [Puppet Users] early clean exit from module?

2012-12-17 Thread Chad Huneycutt
I do not think what you want exists. It makes sense, as a class is not a procedural list of commands to execute, but a collection of resources, so a way to exit early does not really exist. If you just want to avoid the extra indentation and potentially misplaced closing bracket, how about this

[Puppet Users] Re: [Puppet-dev] New QA Site to Ask Puppet Questions

2012-12-17 Thread Jeff McCune
On Mon, Dec 17, 2012 at 2:13 PM, Dawn Foster d...@puppetlabs.com wrote: Today, we are launching the beta version of a new question and answer site where you can ask any Puppet questions or provide answers for questions from other Puppet users and developers. I bet nobody has a question that

Re: [Puppet Users] early clean exit from module?

2012-12-17 Thread Jakov Sosic
On 12/17/2012 09:02 PM, Philip Brown wrote: Hi folks, I've poked around the language reference, and havent found anything on this so far. I'd like to be able to force a clean early exit from a module. WITHOUT encasing the whole body of the module in an if statement. Puppet is not procedural

Re: [Puppet Users] Re: Puppet Dashboard for Rails 3

2012-12-17 Thread Aaron Stone
That's a great question! None that I know of, but I could put together some screenshots. On Sat, Dec 15, 2012 at 4:12 PM, Jakov Sosic jso...@srce.hr wrote: On 12/11/2012 12:33 AM, Aaron Stone wrote: Update: thanks to help from GitHub users @igreg and @astratto, Puppet Dashboard Rails 3 is

Re: [Puppet Users] Re: puppet dashboard 1.2.15-rc1 report search problem

2012-12-17 Thread Aaron Stone
Please try this PR: https://github.com/puppetlabs/puppet-dashboard/pull/150 On Fri, Dec 14, 2012 at 11:03 AM, ivan.arsena...@spadz.com wrote: Change ./app/views/reports/search.html.haml like this : .item - if flash[:errors].present? %div{:class = section error} %h3

Re: [Puppet Users] tweaking emacs puppet mode ?

2012-12-17 Thread Philip Brown
On Monday, December 17, 2012 1:50:38 PM UTC-8, Steven VanDevender wrote: puppet-mode is kind of rudimentary but I know the author and he would probably be amenable to improving it, if you allow him some time. that would be most appreciated -- You received this message because you

Re: [Puppet Users] early clean exit from module?

2012-12-17 Thread Philip Brown
On Monday, December 17, 2012 3:18:26 PM UTC-8, Jakov Sosic wrote: Puppet is not procedural but declarative language, so you can only declare states. Except that is not strictly true. There is an early-exit fail directive that can be used conditionally. So why not a conditional early

[Puppet Users] Re: Python PIP and Centos 6

2012-12-17 Thread 刘长元
https://github.com/puppetlabs/puppet/blob/master/lib/puppet/provider/package/pip.rb this is pip's source file. in the end, you can see this private def lazy_pip(*args) pip *args rescue NoMethodError = e if pathname = which('pip') self.class.commands :pip = pathname pip

[Puppet Users] Re: Home directory dependency problems

2012-12-17 Thread j
Thank you for the reply, however I do not see where that resolves the dependency problem. Let me paste what I've been playing with as maybe that will clarify my problem: class admins($username, $ensure='present') { if $ensure == 'present' { $dirensure = 'directory' } elsif $ensure ==

[Puppet Users] JOB: Looking for a Release Engineer at Puppet Labs

2012-12-17 Thread Matthaus Owens
Do you have a habit of making installs and deployments easy and repeatable? Do you cringe when you see someone doing manual deployments? Do you take source code and massage it into a released or deployed product? Do you strive to make the initial installation of a product as smooth as possible?

Re: [Puppet Users] early clean exit from module?

2012-12-17 Thread Peter Brown
On 18 December 2012 10:21, Philip Brown p...@bolthole.com wrote: On Monday, December 17, 2012 3:18:26 PM UTC-8, Jakov Sosic wrote: Puppet is not procedural but declarative language, so you can only declare states. Except that is not strictly true. There is an early-exit fail directive

Re: [Puppet Users] Re: [Puppet-dev] New QA Site to Ask Puppet Questions

2012-12-17 Thread Peter Brown
Any chance of using my existing puppet forge account to sign in to that site? On 18 December 2012 09:17, Jeff McCune j...@puppetlabs.com wrote: On Mon, Dec 17, 2012 at 2:13 PM, Dawn Foster d...@puppetlabs.com wrote: Today, we are launching the beta version of a new question and answer site

Re: [Puppet Users] Re: [Puppet-dev] New QA Site to Ask Puppet Questions

2012-12-17 Thread Dawn Foster
On Mon, Dec 17, 2012 at 7:43 PM, Peter Brown rendhal...@gmail.com wrote: Any chance of using my existing puppet forge account to sign in to that site? Unfortunately, not yet. I'm planning to get the user accounts integrated between Forge, Ask, bug tracker and other puppet stuff sometime next

[Puppet Users] Reg : GitHubIntegration

2012-12-17 Thread krishna bhaskara rao
Hi, How to integrate GitHub with Puppet master or agent. My requirement is I have file in GitHub Repository with different versions, I want to download latest file from GitHub Repository and need to execute it. Is it possible to do these steps using puppet master or agent script. If possible

Re: [Puppet Users] Re: [Puppet-dev] New QA Site to Ask Puppet Questions

2012-12-17 Thread Peter Brown
On 18 December 2012 14:11, Dawn Foster d...@puppetlabs.com wrote: On Mon, Dec 17, 2012 at 7:43 PM, Peter Brown rendhal...@gmail.com wrote: Any chance of using my existing puppet forge account to sign in to that site? Unfortunately, not yet. I'm planning to get the user accounts integrated

[Puppet Users] Re: Puppet and Mcollective yaml file changing when it shouldn't

2012-12-17 Thread Zane Williamson
Thank you for the recommendations. I am going to give them a try and see how they work out in production. Thanks! Zane On Thursday, December 13, 2012 5:06:54 PM UTC-8, Zane Williamson wrote: Has anyone else ran into this? debug: /Stage[main]/Mcollective/File[/var/tmp/facts.yaml]/content:

Re: [Puppet Users] Question on modeling multiple services sharing configuration

2012-12-17 Thread Roman Shaposhnik
On Mon, Dec 17, 2012 at 6:46 AM, Nikola Petrov nikol...@gmail.com wrote: You have a bunch of options for this if I understand you well. You can one of the following: * use augeas with virtual resources * use the concat module Understood. I'm leaning heavily towards augeas at this point

Re: [Puppet Users] Is it able to obtain performance metrics from puppet master?

2012-12-17 Thread Oleg Korchagin
Thanks for perply I had write perl script to get metrics from log file ( /var/log/messages in rhel, /var/log/syslog in debian ) http://pastebin.com/u0HZNesZ ( it is for xymon monitoring system ) Also, at other forum, i get 2 advice: 1) It is able to get most of this metrics at agent side,

[Puppet Users] Puppet Enterprise - debugging.

2012-12-17 Thread KK
Hi, I am currently evaluating Puppet Enterprise 2.7. I would like to know more about debugging Puppet. - Can we start Puppet Client in verbose and debug mode as we do in Puppet (opensource) with -d -v mode. - I tried to change the server.cfg file with log level verbose, Still I don't