Re: [Puppet Users] Is it possible to pass extra flags to Puppet via rspec?`

2013-06-26 Thread Nan Liu
On Wed, Jun 26, 2013 at 9:28 PM, Justin Stoller wrote: > In puppetlabs_spec_helper/puppet_spec_helper[1] which was based on a file > in Puppet[2] the confdir and vardir are explicitly set to '/dev/null' which > causes the modulepath you're seeing in Puppet "proper". > > I believe, however the subj

Re: [Puppet Users] Is it possible to pass extra flags to Puppet via rspec?`

2013-06-26 Thread Justin Stoller
It's been a while since I jumped into this code and it's late, forgive me if I say something naive inline. On Wed, Jun 26, 2013 at 8:14 PM, Nan Liu wrote: > On Wed, Jun 26, 2013 at 7:23 PM, Amos Shapira wrote: > >> I'm writing my first puppet function rspec test and am having a problem >> which

Re: [Puppet Users] most current method of configuring cisco (and force10?) devices

2013-06-26 Thread Nan Liu
On Tue, Jun 25, 2013 at 3:30 PM, Wolf Noble wrote: > I've been asked to explore the landscape of network device management via > puppet. > There are two approaches, either run an agent on the device such as juniper, or manage through a proxy agent. in particular, I'm looking to support cisco, a

Re: [Puppet Users] Is it possible to pass extra flags to Puppet via rspec?`

2013-06-26 Thread Nan Liu
On Wed, Jun 26, 2013 at 7:23 PM, Amos Shapira wrote: > I'm writing my first puppet function rspec test and am having a problem > which I don't see how to solve. > > The function (and the test) involve access to files through the File > Server. In order for the function (and the test) to work I nee

Re: [Puppet Users] Is it possible to pass extra flags to Puppet via rspec?`

2013-06-26 Thread Wolf Noble
Hi Amos, Here's what I've done: in spec/spec_helper.rb: Puppet.settings[:confdir] = "spec/fixtures" then in the class I was working on, I made a parameter: class foo( $puppetdir = $settings::confdir ){ … } then in that class's spec test: require 'spec_helper' require 'puppetlabs_spec_h

[Puppet Users] Is it possible to pass extra flags to Puppet via rspec?`

2013-06-26 Thread Amos Shapira
Hello, I'm writing my first puppet function rspec test and am having a problem which I don't see how to solve. The function (and the test) involve access to files through the File Server. In order for the function (and the test) to work I need to pass "--fileserverconf=fileserver.conf" paramet

Re: [Puppet Users] Re: Exec onlyif/unless with internal functions instead of external commands?

2013-06-26 Thread Amos Shapira
On Monday, 24 June 2013 15:40:14 UTC+10, David Schmitt wrote: > Functions are executed on the master, not on the agent, so they won't do > what you need. > Yes I keep forgetting that. > > If you really want to run code on the client it has to be a type/provider. > I was hoping to get somethi

[Puppet Users] Re: Exec onlyif/unless with internal functions instead of external commands?

2013-06-26 Thread Amos Shapira
Response inline. On Monday, 24 June 2013 11:59:06 UTC+10, Michael Dodwell wrote: > > Take a look at http://docs.puppetlabs.com/guides/custom_functions.html you > could write your own fuctions to give you something like this. > > Thanks Michael. I was hoping to add such a functionality to Puppet.

Re: [Puppet Users] Re: How to make a package dependant on a class for the repository.

2013-06-26 Thread Stack Kororā
Thanks for the quick reply! And the example! Let me review this and try it out. I will post back if I run into any issues. Thanks again! -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails

[Puppet Users] IPTables Firewall modules Question

2013-06-26 Thread Stack Kororā
Greetings, I have a question about "best practices" for the puppet firewall module. I have pasted my basic config files below and I am curious about a few things. * The ports that all nodes share in common I am adding to the modules/my_firewall/manifests/init.pp file, but the ports that are spe

Re: [Puppet Users] Puppet Enterprise 3.0 now available!

2013-06-26 Thread Nigel Kersten
On Wed, Jun 26, 2013 at 9:41 AM, Nan Liu wrote: > On Wed, Jun 26, 2013 at 1:33 AM, DEGREMONT Aurelien < > aurelien.degrem...@cea.fr> wrote: > >> It is difficult to find what's inside Puppet Enterprise (which puppet >> version, etc...). >> I'm particularly interested to understand what was changed

Re: [Puppet Users] Re: How to make a package dependant on a class for the repository.

2013-06-26 Thread Wolf Noble
Hi Stack, here's an example: https://github.com/wolfspyre/puppet-mysqlx/blob/master/manifests/v55.pp in this class I create a pair of bookend anchors, and then shove a yumrepo, and a file resource between them. Your other classes/resources can then declare a relationship to the end anchor to es

[Puppet Users] Re: How to make a package dependant on a class for the repository.

2013-06-26 Thread Stack Kororā
Thank you very much Joe. I think this exactly the path that I need but I am having trouble with it. As I said, I have multiple systems that this repo class watches over. Thus, for one of several instances, I have things like: if $osfamily == 'RedHat' { class {'repos::epel': } } The sub-cla

[Puppet Users] Re: Node collecting its own exported resource

2013-06-26 Thread mpounsett
On Monday, September 17, 2012 10:32:07 AM UTC-4, jcbollinger wrote: > > > > On Friday, September 14, 2012 11:51:34 AM UTC-5, Jon McKenzie wrote: >> >> It seems that nodes are not able to collect their own resource, but they >> can collect every other resource, with a given tag. I've validated th

Re: [Puppet Users] The handy Grail of Modules Standards

2013-06-26 Thread Alessandro Franceschi
On Wednesday, June 26, 2013 3:37:10 PM UTC+2, jcbollinger wrote: > > > > On Tuesday, June 25, 2013 4:49:49 PM UTC-5, Alessandro Franceschi wrote: >> >> >> >> On Tuesday, June 25, 2013 9:16:20 PM UTC+2, jcbollinger wrote: >>> >>> >>> So, here is a version of puppet-stdmod without class parameteriz

Re: [Puppet Users] Puppet Enterprise 3.0 now available!

2013-06-26 Thread Nan Liu
On Wed, Jun 26, 2013 at 1:33 AM, DEGREMONT Aurelien < aurelien.degrem...@cea.fr> wrote: > It is difficult to find what's inside Puppet Enterprise (which puppet > version, etc...). > I'm particularly interested to understand what was changed to have such > gain in performances. > I believe it's Pu

Re: [Puppet Users] Puppet Enterprise 3.0 now available!

2013-06-26 Thread Moses Mendoza
On Wed, Jun 26, 2013 at 1:33 AM, DEGREMONT Aurelien wrote: > Hello > > It is difficult to find what's inside Puppet Enterprise (which puppet > version, etc...). > I'm particularly interested to understand what was changed to have such gain > in performances. > > Thanks > > Aurélien > Hi Aurélien,

[Puppet Users] Dashboard in Fedora 18

2013-06-26 Thread Brunno Oliveira Prego
Hi, I tryed to install puppet dashboard in fedora 18, but it doesn't avaliable in http://yum.puppetlabs.com/fedora/f18/. I tryed a version for RHEL 6 but don't work too. Anyone here have any information about how to install dashboard in fedora 18? Tanks by attention, Brunno

Re: [Puppet Users] Re: White Paper: Migrating from Redhat satellite server to Puppet + Foreman

2013-06-26 Thread Keiran Sweet
Hey There, Sorry for the late reply on this, been a bit manic this end and am just catching up. To be honest, I don't disagree with you really on most of your points. In regards to the paper, this was that worked for this environment and there were some other factors behind the scenes (financial,

Re: [Puppet Users] Mvn task at end of chained sequence

2013-06-26 Thread Jason Edgecombe
On 06/25/2013 05:47 PM, Chris Hagan wrote: Hi puppeteers! I'm just starting out on this journey, and any help, stylistic or functional, would be greatly appreciated. This is a puppet file describing several chained steps, in a linear dependent sequence. The last, having built up all the system

Re: [Puppet Users] Puppet for Dynamic Environments (Private or Public Clouds)

2013-06-26 Thread Jason Edgecombe
On 06/25/2013 08:26 PM, Kanthi Narisetti wrote: I am looking for suggestions from puppet experts on using Puppet in Dynamic Environments. For example I have a Master/Client setup in a cloud (public or private) and I have Dev,Prod,Test,Stage environments where dev,and test environments have dynami

Re: [Puppet Users] use of exec in puppet

2013-06-26 Thread David Schmitt
the env binary is in /usr/bin and therefore your path is not wide enough. /sbin:/bin:/usr/sbin:/usr/bin is a good default. Adding /usr/local/bin and /usr/local/sbin might be good ideas depending on your setup. Regards, David On 26.06.2013 15:08, Rahmathulla Badarudeen wrote: Hi, I've trie

Re: [Puppet Users] The handy Grail of Modules Standards

2013-06-26 Thread jcbollinger
On Tuesday, June 25, 2013 4:49:49 PM UTC-5, Alessandro Franceschi wrote: > > > > On Tuesday, June 25, 2013 9:16:20 PM UTC+2, jcbollinger wrote: >> >> >> So, here is a version of puppet-stdmod without class parameterization: >> https://github.com/jcbollinger/puppet-stdmod . >> > > Ok, this is wha

Re: [Puppet Users] Mvn task at end of chained sequence

2013-06-26 Thread Ken Barber
> The output for this task is "returns: executed successfully". But the > server hasn't been started and when I look at the directory, it's clear that > the build and compile haven't even been run. Is it obvious to anyone why > this exec step says it's finished but doesn't seem to have done? The

Re: [Puppet Users] Upgrade from 2.7.20 to 2.7.22 breaks puppet-dashboard

2013-06-26 Thread Bas Toonk
Hi, We do have this same issue while upgrading from 3.1.1 to 3.2.2, any ideas? It looks like only reports from 2.6 agents are failing. - Bas On Jun 20, 2013, at 11:29 PM, Joe Benson mailto:joeben...@gmail.com>> wrote: I upgraded our puppetmaster from 2.7.20 to 2.7.22 and puppet dashboard qui

[Puppet Users] Puppet for Dynamic Environments (Private or Public Clouds)

2013-06-26 Thread Kanthi Narisetti
I am looking for suggestions from puppet experts on using Puppet in Dynamic Environments. For example I have a Master/Client setup in a cloud (public or private) and I have Dev,Prod,Test,Stage environments where dev,and test environments have dynamic guest virtual machines with new host-names et

[Puppet Users] Mvn task at end of chained sequence

2013-06-26 Thread Chris Hagan
Hi puppeteers! I'm just starting out on this journey, and any help, stylistic or functional, would be greatly appreciated. This is a puppet file describing several chained steps, in a linear dependent sequence. The last, having built up all the systemic dependencies, is to run a maven web ser

[Puppet Users] Re: Upgrade from 2.7.20 to 2.7.22 breaks puppet-dashboard

2013-06-26 Thread Bas
Hi, We do have this same issue when upgrading from 3.1.1 to 3.2.2, any ideas? - Bas On Thursday, June 20, 2013 11:29:58 PM UTC+2, Joe Benson wrote: > > I upgraded our puppetmaster from 2.7.20 to 2.7.22 and puppet dashboard > quit importing reports. I'm getting a failed task with this error m

[Puppet Users] use of exec in puppet

2013-06-26 Thread Rahmathulla Badarudeen
Hi, I've tried to to exec function in puppet for enabling module for apache. Here is the code that I am using: class apache::mod { exec { "a2enmod" : command => "a2enmod proxy_http", path => "/usr/sbin/", notify => Class["apache::service"], require => Class["apache::install"], } } But in agen

Re: [Puppet Users] Disable certain facter facts?

2013-06-26 Thread RichTea
I dont have Facter 1.7 installed right now but it would guess the disk facts come from one of the factor scripts (maybe in /opt/puppet/share/puppet/modules/stdlib/lib/facter/) you could make a manual edit to exclude some of the FS's -- <-- http://23.me.uk/2 --> <--Time flies like an arrow; fruit f

[Puppet Users] Puppi parameters in command line

2013-06-26 Thread NewUser5
Hi , I am a new puppet user. As i am not used yet to ruby and puppet I've decided to use the puppi module to deploy web applications in my company. I ve created some specific define , scripts etc and I saw recently that it was possible to pass options in command line . seen from example42 s

[Puppet Users] Re: Templates see numbers as strings

2013-06-26 Thread jcbollinger
On Tuesday, June 25, 2013 11:06:21 AM UTC-5, Claudio wrote: > > > Given the manifest: > >> $a = 1 >> $b = 1 + 0 >> $c = 1.1 >> $d = 1.1 + 0 >> $result = inline_template(" >> a <%= @a.class %> <%= @a %> >> b <%= @b.class %> <%= @b %> >> c <%= @c.class %> <%= @c %> >> d <%= @d.class %> <%= @d %> >>

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

2013-06-26 Thread DJames
Make sure you are able to see the schema. Do a mysql> show tables; if you dont see the DB, then you need to make the DB. On Friday, July 6, 2012 5:08:53 PM UTC-4, Hai wrote: > > followed the instruction for installing dashboard, and created user > > mysql -pmy_password -e "CREATE DATABASE das

Re: [Puppet Users] Puppet Enterprise 3.0 now available!

2013-06-26 Thread David Schmitt
On 26.06.2013 10:33, DEGREMONT Aurelien wrote: Hello It is difficult to find what's inside Puppet Enterprise (which puppet version, etc...). I'm particularly interested to understand what was changed to have such gain in performances. [Disclaimer: I've never touched PE] Presumably PE3 is repl

Re: [Puppet Users] Dynamically assign Static IP Addresses

2013-06-26 Thread Johan De Wit
We are using LDAP as our ENC, which contains the network interfaces as a subtree of the HOST tree. The provisioning system (cobbler) uses ldap for the configuration of the installation files (autoyast/kisckstart). Puppet will handle the re-configuration of the network. I'm trying (getting o

Re: [Puppet Users] Re: Module for tuned-adm

2013-06-26 Thread Romain Pelisse
"Provider for this is overkill" was my first impression also, but after fighting a couple of time against my own exec for it, I just said "F**k that, let's make a proper extension". Also, this is very trivial extension allowed me to demo "how to do" such extension in small Puppet workshop that I ga

Re: [Puppet Users] Puppet Enterprise 3.0 now available!

2013-06-26 Thread DEGREMONT Aurelien
Hello It is difficult to find what's inside Puppet Enterprise (which puppet version, etc...). I'm particularly interested to understand what was changed to have such gain in performances. Thanks Aurélien Le 25/06/2013 15:37, Nigel Kersten a écrit : Hello puppet-users, Puppet Enterprise 3