Re: [Puppet Users] Package install from a URL

2012-09-03 Thread Stefan Schulte
On Mon, Sep 03, 2012 at 05:26:30AM -0700, matonb wrote: > puppet-server 2.7.19 on CentOS 6.3 x64 > > I have the follow very bsaic class, which I would expect to install the > package if it's not already present on the system: > > class yum::repos::puppetlabs { > package { 'puppetlabs-releas

Re: [Puppet Users] Re: Problem with hiera arrays not obeying the hierachy

2012-09-03 Thread Aaron Grewell
The hiera function works as you described and supports strings, arrays and hashes. The hiera_array and hiera_hash functions build additive arrays and hashes that include the values of all matching variables across the entire hierarchy. For your use case you should use hiera() instead of hiera_arra

[Puppet Users] Re: Problem with hiera arrays not obeying the hierachy

2012-09-03 Thread Josh
...my hiera.conf since it would probably help. %{datacentre} is a custom fact that is set at build time: --- :hierarchy: - node/%{hostname} - common/%{datacentre} - common/common :backends: - yaml - puppet :yaml: :datadir: '/local/puppet/env/%{environment}/hieradata' :puppet: :datas

[Puppet Users] Problem with hiera arrays not obeying the hierachy

2012-09-03 Thread Josh
Versions: puppet 2.7.18, hiera 0.3.0 I have encountered a problem that is completely counter intuitive to how I thought hiera was meant to work. I have three levels in my hierarchy in the following order: - .yaml (specific to the host) - .yaml (we have multiple sites, this is info specific t

Re: [Puppet Users] Re: puppetrun failing with Error 403?

2012-09-03 Thread Harri Savolainen
I know this will resurrect very old thread, but this was very useful comment. It eventually lead to working solution. However, I was not enough (with puppet v.2.6.17). I still got 403. I added "auth any", resulting the following end of auth.conf file: __ ... path /run/ auth any method save al

[Puppet Users] Re: Class for transfering files from Server to Client

2012-09-03 Thread Dom
Hi Ajeet, Instead of using puppet for these steps, I would recommend the native package management for your operating system, then use puppet to distribute and maintain versions. For instance, RPM was designed to do all the things you require, as well as dealing with changes to the application

Re: [Puppet Users] Re: Package install from a URL

2012-09-03 Thread Jonathan Gazeley
Yes, this is correct. But note that rpm can't do dependencies like yum - you will need to install the dependencies by hand using other package{} declarations and use requires=> On 03/09/12 14:36, Mark Roggenkamp wrote: I believe it will work if you change the provider to rpm in this case (pr

[Puppet Users] Re: Package install from a URL

2012-09-03 Thread Mark Roggenkamp
I believe it will work if you change the provider to rpm in this case (provider => rpm,). Mark On Monday, September 3, 2012 8:26:30 AM UTC-4, matonb wrote: > > puppet-server 2.7.19 on CentOS 6.3 x64 > > I have the follow very bsaic class, which I would expect to install the > package if it's

Re: [Puppet Users] Package install from a URL

2012-09-03 Thread David Schmitt
On 03.09.2012 14:26, matonb wrote: puppet-server 2.7.19 on CentOS 6.3 x64 I have the follow very bsaic class, which I would expect to install the package if it's not already present on the system: class yum::repos::puppetlabs { package { 'puppetlabs-release': ensure => installed, so

[Puppet Users] Package install from a URL

2012-09-03 Thread matonb
puppet-server 2.7.19 on CentOS 6.3 x64 I have the follow very bsaic class, which I would expect to install the package if it's not already present on the system: class yum::repos::puppetlabs { package { 'puppetlabs-release': ensure => installed, source => 'http://yum.puppetlabs.com

[Puppet Users] Class for transfering files from Server to Client

2012-09-03 Thread Ajeet Raina
I have installed JBOSS application manually following these steps: [code] 1.$ su -c "yum install java-1.6.0-openjdk-devel" 2.$ java –version 3.wget http://download.jboss.org/jbossas/7.1/jboss-as-7.1.1.Final/jboss-as-7.1.1.Final.zip 4.$ unzip jboss-as-7.1.1.Final.zip -d /usr/share 5.$ adduser jbos

Re: [Puppet Users] Puppet runs extremly slow on 1 of 18 Windows Server

2012-09-03 Thread David Schmitt
On 03.09.2012 09:45, Jan Ziegler wrote: Hi, We have 18 Windows Server in the same environment. All Windows Server are build with an individual Windows Image, we created before, which means, that all Windows Machines have the same configuration except ip/mac address and hostname. 17 of those Wind

Re: [Puppet Users] erb syntaxes

2012-09-03 Thread Choon Ming Goh
Hey, Thanks it works! Funny that it didnt work before this as I swore I tried it too. my luck maybe. On Monday, September 3, 2012 12:14:54 PM UTC+8, Gonzalo wrote: > > On Mon, Sep 3, 2012 at 1:31 PM, Choon Ming Goh > > > wrote: > >> Hi guys, >> >> I'm trying to do the following in my template:

[Puppet Users] Puppet runs extremly slow on 1 of 18 Windows Server

2012-09-03 Thread Jan Ziegler
Hi, We have 18 Windows Server in the same environment. All Windows Server are build with an individual Windows Image, we created before, which means, that all Windows Machines have the same configuration except ip/mac address and hostname. 17 of those Windows Server run Puppet within 120 second