[Puppet Users] Re: Verify variable value and set to default param if out of range?

2013-07-30 Thread Rahul Khengare
Hi Stephen, As per my understanding of your query, you want version parameter value 5.5 as default and on passing parameter value its become 5.3. But in your case its take version = 5.5. Correct me if i am wrong. Solution for your query is u have to construct parameterized class maria and it

[Puppet Users] Re: Enhancement to puppetlabs-vcsrepo

2013-07-30 Thread Jeffrey Watts
Has anyone had time to look at my diff? Thanks again, Jeffrey. On Fri, Jul 26, 2013 at 4:04 PM, Jeffrey Watts wrote: > Hello! I was looking at using the puppetlabs-vcsrepo module for a > project, but it seems to be missing a feature I need. Specifically, I need > to be able to do one of the f

[Puppet Users] Re: Augeas, fstab and duplicate lines: How to test ? (onlyif ? not_include ?) ... Examples ?

2013-07-30 Thread Sneha More
On Tuesday, July 30, 2013 2:56:59 AM UTC+5:30, haral...@gmail.com wrote: > > Hi, > > I am trying to define a new type that will insert a new filesystem line > into /etc/fstab. > > However, no matter what I tried, it will insert a new line each time. > > Something like this doesn't work > > augeas

[Puppet Users] Re: Verify variable value and set to default param if out of range?

2013-07-30 Thread Stephen Brown II
Well, I understand that much, but I want to validate that the parameter passed to the called class is valid. Right now I'm doing the logic for setting the valid releases in the params class, like this: case $::osfamily { 'RedHat': { $available_releases = ['5.5', '10.0'] } 'Debian': {

[Puppet Users] Re: puppet apply --hiera_config --> Error: Could not find class

2013-07-30 Thread jcbollinger
On Monday, July 29, 2013 1:53:04 PM UTC-5, Werner Dijkerman wrote: > > Hi there, > > I'm running into an problem which I can resolve. It is bugging me for > couple of days now. > Goal: CentOS 6.4 freshly installed incl puppet 3.2.3 and I want to install > puppet master, puppetdb, mod_passenger

Re: [Puppet Users] Re: Augeas, fstab and duplicate lines: How to test ? (onlyif ? not_include ?) ... Examples ?

2013-07-30 Thread Sneha More
Hi, The solution which i have given you is nothing but the another form of what you have done. So i think in your case this will not work either. The problem is not with your logic of onlyif condition, its syntactical problem. I found following things while solving your problem: If i use the co

[Puppet Users] Re: Verify variable value and set to default param if out of range?

2013-07-30 Thread jcbollinger
On Monday, July 29, 2013 1:38:17 PM UTC-5, Stephen Brown II wrote: > > Greetings all, > > I have a feeling I'm trying to be a bit too clever for my own good, or > making the mistake of treating the declarative language as a procedural. > But at any rate, here is my issue. > > I would like to se

[Puppet Users] Re: Large puppet file in /tmp directory

2013-07-30 Thread jcbollinger
On Monday, July 29, 2013 12:15:24 PM UTC-5, Mark Hatch wrote: > > I saw that one of my managed nodes has a 41 GB file in the "/tmp" > directory. It's filename is "puppet20130725-63530-1ylx5vy". Any idea what > is causing such a large file to be created? Is there a file of the same or simil

[Puppet Users] Vagrant Puppet Provision VM

2013-07-30 Thread chengkai liang
Hi All, I am using Vagrant to provision a box (CentOS 6.x) with puppet provisioner. The box is built by using veewee, with ruby 1.8.7 and puppet 3.2 iinstalled, and the vagrant environment layout is, . ├── Gemfile ├── Gemfile.lock ├── Rakefile ├── Vagrantfile ├── definitions │ └── centos-6.3.

[Puppet Users] Re: puppet apply --hiera_config --> Error: Could not find class

2013-07-30 Thread Werner Dijkerman
Hi John, Thanks for your answer. This will help me a lot. I already had some doubt if this module was good enough and already had some ideas about how to go on. But that will take some time and I had an small hope that this issue was very simple to solve. So, I'll continue the 'users::adduser'

Re: [Puppet Users] Re: Augeas, fstab and duplicate lines: How to test ? (onlyif ? not_include ?) ... Examples ?

2013-07-30 Thread Kristof Willaert
Hi, you probably already tested this already, but how about: onlyif => "match *[spec = \"${fs_dev}\"] size == 0" Regards, k ** ** On Tue, Jul 30, 2013 at 3:54 PM, Sneha More wrote: > Hi, > The solution which i have given you is nothing but the another form of > what you have done. > So i

[Puppet Users] Failed to parse template, wrong number of arguments (create_resources)

2013-07-30 Thread Jay Christopherson
I'm having some issues trying to track down a problem I'm having parsing a simple template, using create_resources and Hiera. Here's my setup (abridged): ../hieradata/settings.yaml: *global:* * variables:* *env: foo* * * *appSpecific:* * serverName: someServer* ../modules/test/manifests/

[Puppet Users] Re: Puppet, Yum, Cassandra, openjdk and --nodeps

2013-07-30 Thread Paul Pham
Appreciate the input guys. You're right about the --nodeps flag being an RPM thing, I was hoping there might be something similar I could leverage from the yum provider, but it looks like the yum provider does not currently support "install_options" anyway, so it's kind of moot. It seems like t

Re: [Puppet Users] Puppet, Yum, Cassandra, openjdk and --nodeps

2013-07-30 Thread Paul Pham
Thanks for this suggestion btw Nikola, this might be the most practical and easiest way to solve this specific problem. I'm just also curious about how folks are solving the general case, as well. On Friday, July 26, 2013 12:50:03 AM UTC-7, nikolavp wrote: > > This is rather unfortunate. The onl

[Puppet Users] deleting a node causes dashboard to off into the weeds

2013-07-30 Thread Peter Berghold
Just noticed a problem. When I try to remove a node from dashboard the browser never gets data back and all the agent nodes start complaining: Warning: Unable to fetch my node definition, but the agent run will continue: 1. what's the cause of this? 2. is there a workaround? -- Peter L

[Puppet Users] Re: Failed to parse template, wrong number of arguments (create_resources)

2013-07-30 Thread Jay Christopherson
Ok, I figured out my first issues, which was a scope issue. There template reference works as: ServerName <%= scope.lookupvar('test::appcfg::serverName') %> Now I have something like this, that *was* working: *<% appcfg['backends']['nodes'].each do |server| -%>* * <%= server %>* *<% end -%>*

[Puppet Users] Re: Failed to parse template, wrong number of arguments (create_resources)

2013-07-30 Thread Jay Christopherson
And I guess I solved my own issues. I muddled around and this syntax works: *<% scope['test::appcfg']['backends']['nodes'].each do |server| -%>* * <%= server %>* *<% end -%>* On Tue, Jul 30, 2013 at 11:32 AM, Jay Christopherson wrote: > Ok, I figured out my first issues, which was a scope iss

[Puppet Users] Puppet3 key exchange on RHEL6

2013-07-30 Thread Tom Hanstra
I'm attempting to run Puppet 3.2.3 on RHEL6 and am running into key problems. The keys seem to be exchanged, or at least the puppet master receives the key from the client: lib_puppet2.library.nd.edu|root no_ora /var/lib/puppet 1029$ puppet cert list --all + "puptest1.library.nd.edu" (SHA256)

[Puppet Users] Re: Puppet3 key exchange on RHEL6

2013-07-30 Thread Tom Hanstra
This can all safely be ignored. A reboot of both the master and agent servers was able to clear things up. I'm not sure if the times were slightly off or something else, but rebooting took care of things. Tom On Tuesday, July 30, 2013 4:00:27 PM UTC-4, Tom Hanstra wrote: > > I'm attempting to

[Puppet Users] file_line assistance

2013-07-30 Thread Tom Hanstra
I'm running puppet 3.2.3 with the current (4.1.0) stdlib set from puppetlabs. I'm attempting to use file_line to add a line to a file. I've dumbed this down to basically the test script: class hs_puptest1 { file { '/tmp/testfile': ensure => present }-> file_line { 'test_line':

Re: [Puppet Users] Installing LibreOffice 4 via wheezy-backports

2013-07-30 Thread Jaap Winius
Hi folks, When my initial attempt to install libreoffice via wheezy-backports didn't work, I decided to take a less elegant approach: exec { "libreoffice-bpo": command => "/usr/bin/apt-get -t wheezy-backports libreoffice \ --yes --force-yes", onlyif => "/usr/bin/test `/usr/bin/dp

Re: [Puppet Users] Re: Augeas, fstab and duplicate lines: How to test ? (onlyif ? not_include ?) ... Examples ?

2013-07-30 Thread Sneha More
On Tue, Jul 30, 2013 at 9:42 PM, Kristof Willaert < kristof.willa...@gmail.com> wrote: > Hi, > > you probably already tested this already, but how about: > > onlyif => "match *[spec = \"${fs_dev}\"] size == 0" > > Regards, > > k > > Hi Kristof, Even your solution : onlyif => "match *[spe

Re: [Puppet Users] Re: Perform action when exported resources change

2013-07-30 Thread David Schmitt
On 22.07.2013 08:58, George Brown wrote: Hi Sneha, This is for a GPFS (IBM parallel file system) cluster. When a new client is added it needs to be added by an node that is already part of the cluster. I'm trying to automate this through puppet E.g. node80 has just been provisioned After insta

Re: [Puppet Users] Re: Installing MSI failed with errror: The network name cannot be found.

2013-07-30 Thread Josh Cooper
Hi Tinu, On Thu, Jul 25, 2013 at 11:33 PM, tinu wrote: > Hello Josh > > Here the output from puppet agent --test --debug --trace: > > ruby 1.8.7 (2012-02-08 patchlevel 358) [i386-mingw32] > C:\Program Files (x86)\Puppet Labs\Puppet\bin>puppet agent --test --debug > --trace > ... > debug: Package

Re: [Puppet Users] Re: Puppet, Yum, Cassandra, openjdk and --nodeps

2013-07-30 Thread Keith Burdis
On 30 Jul 2013 18:57, "Paul Pham" wrote: > Do most folks who use puppet not use yum? Or are most people okay with letting puppet install dependencies automagically? Puppet has different package providers and I use the appropriate one depending on what I want it to do. If I want Puppet to just in

Re: [Puppet Users] Puppet Support for Windows

2013-07-30 Thread Josh Cooper
Hi Damian, On Sun, Jul 28, 2013 at 1:03 PM, wrote: > > Hi Josh, > > Did PuppetLabs ever get anywhere with ticket 13249. I'm guessing not as > it hasn't been updated for months. I see that PE 3 is now available and > that there has been plenty of activity on the Windows side of things (we > are