Re: [Puppet Users] Re: rspec first steps troubles

2012-05-25 Thread Tim Sharpe
Hi Markus,

For more information on what that script does, check out 
http://rspec-puppet.com/setup/ (also contains a step by step guide for how to 
setup rspec-puppet in your modules manually).

Cheers,
Tim

On Saturday, 26 May 2012 at 5:39 AM, Matthaus Litteken wrote:

> This is related to https://github.com/rodjek/rspec-puppet/issues/15
> and http://projects.puppetlabs.com/issues/11191. It looks like there
> is a setup script in rspec-puppet called rspec-puppet-init to handle
> this problem. Alternatively, the workaround that bodepd mentions in
> the github issue is to just create an empty site.pp, so `touch
> /Users/mafalb/.puppet/manifests/site.pp` should also address this
> problem for you.
> 
> HTH
> -matthaus
> 
> On Fri, May 25, 2012 at 12:33 PM, Markus Falb  (mailto:markus.f...@fasel.at)> wrote:
> > On 25.5.2012 14:51, Atha Kouroussis wrote:
> > > Hi Markus,
> > > you are missing an opening statement. Try:
> > > 
> > > require 'spec_helper'
> > > describe 'class::name', :type => :class do
> > > describe 'irqbalance' do
> > > it { should include_class('irqbalance') }
> > > it { should include_class('irqbalance::data') }
> > > it { should contain_package('irqbalance').with(:ensure => 'installed') }
> > > end
> > > end
> > > 
> > 
> > 
> > Thank you, that helped.
> > I am getting another error messages like
> > 
> > Puppet::Error:
> >   Could not parse for environment production: No file(s) found for
> > import of '/Users/mafalb/.puppet/manifests/site.pp'
> > 
> > but i am getting closer.
> > --
> > Kind Regards, Markus Falb
> > 
> 
> 
> 
> 
> -- 
> Matthaus Litteken
> Release Manager, Puppet Labs
> 
> -- 
> 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 
> (mailto:puppet-users@googlegroups.com).
> To unsubscribe from this group, send email to 
> puppet-users+unsubscr...@googlegroups.com 
> (mailto:puppet-users+unsubscr...@googlegroups.com).
> For more options, visit this group at 
> http://groups.google.com/group/puppet-users?hl=en.
> 
> 


-- 
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 unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Learning Puppet Virtual Machine vs. Parallels Desktop = linux kernel panic

2012-05-25 Thread Nick Fagerlund
Ygor, Stefan, thanks so much for tracking this down. I will add these 
instructions to the Learning Puppet front page. 

On Friday, May 25, 2012 11:32:18 AM UTC-7, Stefan Lasiewski wrote:
>
> Thank you Ygor, this works! 
>
> Now that you mention it, I remember that the Parallels virtual SCSI and 
> SATA devices do not always play well with RedHat or FreeBSD. 
>
> -= Stefan
>
> On Friday, May 25, 2012 6:52:11 AM UTC-7, Ygor wrote:
>>
>> I fought with this about three months ago and got the answer out of 
>> Parallels Tech Support:
>>
>> 1. Convert your VmWare virtual Machine but do not run it.
>> 2. Go to Virtual Machine drop-down menu -> Configure -> Hardware -> Hard 
>> Disk 1 and change its location from SATA to IDE (e.g. IDE 0:1).
>> 3. Run your Virtual Machine.
>>
>> It works for me.  Please let me know if it works for you.
>>
>> On May 24, 2012, at 8:33 PM, Stefan Lasiewski wrote:
>>
>> I am attempting to use the Learning Puppet VM [1] with Parallels Desktop 
>> 7 on a Mac (Snow Leopard).
>>
>> Unfortunately, Parallels does not support OVF images, so I must try the 
>> VMX image. Parallels has the ability to convert VMware images, although I 
>> don't know if this works well.
>>
>> If I attempt to import the VMX image using Parallels, I run into two 
>> problems. I will include the screenshots on Google+ (See link [2])
>>
>>1. Parallels fails to detect the operating system in the VMX image. 
>>Please see the screenshot at [2]. Regardless, I went ahead with the 
>> import 
>>of this image and Parallels says the import was successful. 
>>2. After importing the image, I boot the Virtual Machine. However, 
>>the OS is unable to find any of the LVM volume groups, and the the kernel 
>>panics. 
>>
>> I am unsure if this is a problem with the VMX image, or if Parallels is 
>> doing something wrong. The main problem seems to be that LVM cannot create 
>> the volume group.
>>
>> I know this is a long shot, but I am hoping there are other Mac or 
>> Parallels users out there who have tried the Learning Puppet VM.
>>
>> Thank you for your help,
>>
>> -= Stefan
>>
>> [1] http://info.puppetlabs.com/download-learning-puppet-VM.html
>> [2] 
>> https://plus.google.com/photos/103621378732713508804/albums/5746257600756103185
>>
>> Hopefully link [2] works.
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Puppet Users" group.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msg/puppet-users/-/3HCfJppQ5IoJ.
>> To post to this group, send email to puppet-users@googlegroups.com.
>> To unsubscribe from this group, send email to 
>> puppet-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at 
>> http://groups.google.com/group/puppet-users?hl=en.
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/XSPcs5wQ4ZQJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Re: Announcing Razor

2012-05-25 Thread Michael Stahnke
Replaces core.  The readme on that site is accurate, from what I recall.

http://stahnma.fedorapeople.org/ruby/README.txt

On Fri, May 25, 2012 at 9:12 AM, Trevor Vaughan  wrote:
> Does this use alternatives, or does it replace the core?
>
> Thanks for putting this together!
>
> Trevor
>
> On Fri, May 25, 2012 at 10:49 AM, Michael Stahnke
>  wrote:
>> I have Ruby 1.9 (the build from Fedora 17) available for EL6 variants.
>>  It's not super-tested, but I've used it for some tests/experiments.
>>
>> http://stahnma.fedorapeople.org/ruby/
>>
>>
>>
>> Mike
>>
>>
>>
>> On Thu, May 24, 2012 at 8:13 PM, Trevor Vaughan  
>> wrote:
>>> Nan,
>>>
>>> Using the 'alternatives' system is probably your best bet.
>>>
>>> Slap it in /opt and register it with 'alternatives'.
>>>
>>> man 8 alternatives (I couldn't find a better reference online)
>>>
>>> Trevor
>>>
>>> On Thu, May 24, 2012 at 8:36 PM, Nan Liu  wrote:
 On Thu, May 24, 2012 at 2:57 PM, Gmoney  wrote:
> This sounds great, looks like when you try to do the puppet apply that
> it does not support install on RedHat 6. Any update on that? i tried
> modifing the file:
>
> /etc/puppet/modules/mongodb/manifests/init.pp
>
> Added the following, but it still coughs, any help would be
> apprecitaed, thanks.
>
> 'RedHat': {
>        $location = 'http://downloads-distro.mongodb.org/repo/redhat'
>      }

 Well, the location is inserted into an apt repo a few lines below:

 apt::source { '10gen':
  location    => $location,
  ...
 }

 That's just not not going to work in RHEL. This needs to be
 conditional which use apt::source on debian family and yum on redhat.
 I admit this module was pretty minimal, so any updates such as
 including support RHEL would be very much appreciated.

 After that, you are probably going to have another hurdle with Ruby
 1.9. I started building RPMs, but not quite ready:
 https://build.opensuse.org/package/show?package=Ruby-1.9.3&project=home%3Ananliu.
 I don't know the best way to get Ruby 1.9 on RHEL, so suggestions are
 welcomed.

 Thanks,

 Nan

 --
 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 unsubscribe from this group, send email to 
 puppet-users+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/puppet-users?hl=en.

>>>
>>>
>>>
>>> --
>>> Trevor Vaughan
>>> Vice President, Onyx Point, Inc
>>> (410) 541-6699
>>> tvaug...@onyxpoint.com
>>>
>>> -- This account not approved for unencrypted proprietary information --
>>>
>>> --
>>> 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 unsubscribe from this group, send email to 
>>> puppet-users+unsubscr...@googlegroups.com.
>>> For more options, visit this group at 
>>> http://groups.google.com/group/puppet-users?hl=en.
>>>
>>
>> --
>> 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 unsubscribe from this group, send email to 
>> puppet-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at 
>> http://groups.google.com/group/puppet-users?hl=en.
>>
>
>
>
> --
> Trevor Vaughan
> Vice President, Onyx Point, Inc
> (410) 541-6699
> tvaug...@onyxpoint.com
>
> -- This account not approved for unencrypted proprietary information --
>
> --
> 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 unsubscribe from this group, send email to 
> puppet-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/puppet-users?hl=en.
>

-- 
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 unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Re: rspec first steps troubles

2012-05-25 Thread Matthaus Litteken
This is related to https://github.com/rodjek/rspec-puppet/issues/15
and http://projects.puppetlabs.com/issues/11191. It looks like there
is a setup script in rspec-puppet called rspec-puppet-init to handle
this problem. Alternatively, the workaround that bodepd mentions in
the github issue is to just create an empty site.pp, so `touch
/Users/mafalb/.puppet/manifests/site.pp` should also address this
problem for you.

HTH
-matthaus

On Fri, May 25, 2012 at 12:33 PM, Markus Falb  wrote:
> On 25.5.2012 14:51, Atha Kouroussis wrote:
>> Hi Markus,
>> you are missing an opening statement. Try:
>>
>> require 'spec_helper'
>> describe 'class::name', :type => :class do
>> describe 'irqbalance' do
>> it { should include_class('irqbalance') }
>> it { should include_class('irqbalance::data') }
>> it { should contain_package('irqbalance').with(:ensure => 'installed') }
>> end
>> end
>
> Thank you, that helped.
> I am getting another error messages like
>
> Puppet::Error:
>       Could not parse for environment production: No file(s) found for
> import of '/Users/mafalb/.puppet/manifests/site.pp'
>
> but i am getting closer.
> --
> Kind Regards, Markus Falb
>



-- 
Matthaus Litteken
Release Manager, Puppet Labs

-- 
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 unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Re: rspec first steps troubles

2012-05-25 Thread Markus Falb
On 25.5.2012 14:51, Atha Kouroussis wrote:
> Hi Markus, 
> you are missing an opening statement. Try:
> 
> require 'spec_helper'
> describe 'class::name', :type => :class do
> describe 'irqbalance' do
> it { should include_class('irqbalance') }
> it { should include_class('irqbalance::data') }
> it { should contain_package('irqbalance').with(:ensure => 'installed') }
> end
> end

Thank you, that helped.
I am getting another error messages like

Puppet::Error:
   Could not parse for environment production: No file(s) found for
import of '/Users/mafalb/.puppet/manifests/site.pp'

but i am getting closer.
-- 
Kind Regards, Markus Falb



signature.asc
Description: OpenPGP digital signature


Re: [Puppet Users] question about Cusctom Facts

2012-05-25 Thread mparrad
Hi Jeff,

On Friday, May 25, 2012 10:42:20 AM UTC-4, Jeff McCune wrote:
>
> On Fri, May 25, 2012 at 6:17 AM, mparrad  wrote:
>
>> Hi Jeff
>>
>>
>> On Thursday, May 24, 2012 5:50:03 PM UTC-4, Jeff McCune wrote:
>>>
>>> On Thu, May 24, 2012 at 1:33 PM, Marco Parra D. >> > wrote:
>>>
 But my question was can I change the path where puppet copi the custom 
 facts?

>>>
>>> Yes, this is the plugindest puppet agent option.
>>>
>>> What is it currently set to?  You can check using puppet agent 
>>> --configprint plugindest
>>>
>>
>> Here is the output for this:
>>
>> puppet agent --configprint plugindest
>>
>
> I think you forgot to copy and paste the output.
>

Sorry , here is now:

C:\Windows\system32>puppet agent --configprint plugindest
C:/ProgramData/PuppetLabs/puppet/var/lib

 

>
> In general there are a couple of key points.
>
> First, custom facts distributed via Puppet pluginsync are always available 
> in your manifests.
>
> Second, if you distribute your custom facts via pluginsync you should use 
> facter --puppet to load them with Facter.  Keep in mind Facter and Puppet 
> are two separate applications which is why --puppet is necessary.
>
> Third, Facter (and Puppet) load things from multiple places.  This is how 
> our plugin system works.  With regard to Facter the libraries that come 
> bundled in the package are installed to C:\Program Files (x86)\Puppet 
> Labs\Puppet\facter\lib.  You shouldn't ever need to tell Facter to load 
> things from this path since it will load from here automatically.  Also, 
> you shouldn't ever put your own custom facts in this location since the 
> package may overwrite the directory on an upgrade.
>
> Hope this helps.
>

Thank you Jeff, this clarify me how puppet and facter works with custom 
facts.
 

>
> -Jeff
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/2mnqFoZXmqYJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Learning Puppet Virtual Machine vs. Parallels Desktop = linux kernel panic

2012-05-25 Thread Stefan Lasiewski
Thank you Ygor, this works! 

Now that you mention it, I remember that the Parallels virtual SCSI and 
SATA devices do not always play well with RedHat or FreeBSD. 

-= Stefan

On Friday, May 25, 2012 6:52:11 AM UTC-7, Ygor wrote:
>
> I fought with this about three months ago and got the answer out of 
> Parallels Tech Support:
>
> 1. Convert your VmWare virtual Machine but do not run it.
> 2. Go to Virtual Machine drop-down menu -> Configure -> Hardware -> Hard 
> Disk 1 and change its location from SATA to IDE (e.g. IDE 0:1).
> 3. Run your Virtual Machine.
>
> It works for me.  Please let me know if it works for you.
>
> On May 24, 2012, at 8:33 PM, Stefan Lasiewski wrote:
>
> I am attempting to use the Learning Puppet VM [1] with Parallels Desktop 7 
> on a Mac (Snow Leopard).
>
> Unfortunately, Parallels does not support OVF images, so I must try the 
> VMX image. Parallels has the ability to convert VMware images, although I 
> don't know if this works well.
>
> If I attempt to import the VMX image using Parallels, I run into two 
> problems. I will include the screenshots on Google+ (See link [2])
>
>1. Parallels fails to detect the operating system in the VMX image. 
>Please see the screenshot at [2]. Regardless, I went ahead with the import 
>of this image and Parallels says the import was successful. 
>2. After importing the image, I boot the Virtual Machine. However, the 
>OS is unable to find any of the LVM volume groups, and the the kernel 
>panics. 
>
> I am unsure if this is a problem with the VMX image, or if Parallels is 
> doing something wrong. The main problem seems to be that LVM cannot create 
> the volume group.
>
> I know this is a long shot, but I am hoping there are other Mac or 
> Parallels users out there who have tried the Learning Puppet VM.
>
> Thank you for your help,
>
> -= Stefan
>
> [1] http://info.puppetlabs.com/download-learning-puppet-VM.html
> [2] 
> https://plus.google.com/photos/103621378732713508804/albums/5746257600756103185
>
> Hopefully link [2] works.
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" group.
> To view this discussion on the web visit 
> https://groups.google.com/d/msg/puppet-users/-/3HCfJppQ5IoJ.
> To post to this group, send email to puppet-users@googlegroups.com.
> To unsubscribe from this group, send email to 
> puppet-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/puppet-users?hl=en.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/WZfKVc-F3DQJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] advice on module/class refactoring for defines

2012-05-25 Thread Tim Mooney

In regard to: Re: [Puppet Users] advice on module/class refactoring for...:


Note the define for config() within the init.pp for ldconfig.  That's now
out of favor.  Moving that define into it's own file in
modules/ldconfig/manifests/config.pp is straightforward, but it leaves
me with questions about where the exec should be.


I would say include 'ldconfig' in define ldconfig::config, then the
define is self contained, and you don't need remember include ldconfig
everywhere.


Thanks Nan.  Not certain why that wasn't obvious to me before you pointed
it out, but it's perfect.  :-)

Tim
--
Tim Mooney tim.moo...@ndsu.edu
Enterprise Computing & Infrastructure  701-231-1076 (Voice)
Room 242-J6, IACC Building 701-231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164

--
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 unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Re: advice on module/class refactoring for defines

2012-05-25 Thread Tim Mooney

In regard to: [Puppet Users] Re: advice on module/class refactoring for...:



On May 24, 7:43 pm, Nan Liu  wrote:

I would say include 'ldconfig' in define ldconfig::config, then the
define is self contained, and you don't need remember include ldconfig
everywhere.


+1

That's all around the best available option.  It's much nicer than the
original version, even, because users don't have to separately include
class 'ldconfig' before they can use the define.


Agreed, that's something I was hoping to avoid.

Thanks,

Tim
--
Tim Mooney tim.moo...@ndsu.edu
Enterprise Computing & Infrastructure  701-231-1076 (Voice)
Room 242-J6, IACC Building 701-231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164

--
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 unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Re: Announcing Razor

2012-05-25 Thread Trevor Vaughan
Does this use alternatives, or does it replace the core?

Thanks for putting this together!

Trevor

On Fri, May 25, 2012 at 10:49 AM, Michael Stahnke
 wrote:
> I have Ruby 1.9 (the build from Fedora 17) available for EL6 variants.
>  It's not super-tested, but I've used it for some tests/experiments.
>
> http://stahnma.fedorapeople.org/ruby/
>
>
>
> Mike
>
>
>
> On Thu, May 24, 2012 at 8:13 PM, Trevor Vaughan  
> wrote:
>> Nan,
>>
>> Using the 'alternatives' system is probably your best bet.
>>
>> Slap it in /opt and register it with 'alternatives'.
>>
>> man 8 alternatives (I couldn't find a better reference online)
>>
>> Trevor
>>
>> On Thu, May 24, 2012 at 8:36 PM, Nan Liu  wrote:
>>> On Thu, May 24, 2012 at 2:57 PM, Gmoney  wrote:
 This sounds great, looks like when you try to do the puppet apply that
 it does not support install on RedHat 6. Any update on that? i tried
 modifing the file:

 /etc/puppet/modules/mongodb/manifests/init.pp

 Added the following, but it still coughs, any help would be
 apprecitaed, thanks.

 'RedHat': {
        $location = 'http://downloads-distro.mongodb.org/repo/redhat'
      }
>>>
>>> Well, the location is inserted into an apt repo a few lines below:
>>>
>>> apt::source { '10gen':
>>>  location    => $location,
>>>  ...
>>> }
>>>
>>> That's just not not going to work in RHEL. This needs to be
>>> conditional which use apt::source on debian family and yum on redhat.
>>> I admit this module was pretty minimal, so any updates such as
>>> including support RHEL would be very much appreciated.
>>>
>>> After that, you are probably going to have another hurdle with Ruby
>>> 1.9. I started building RPMs, but not quite ready:
>>> https://build.opensuse.org/package/show?package=Ruby-1.9.3&project=home%3Ananliu.
>>> I don't know the best way to get Ruby 1.9 on RHEL, so suggestions are
>>> welcomed.
>>>
>>> Thanks,
>>>
>>> Nan
>>>
>>> --
>>> 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 unsubscribe from this group, send email to 
>>> puppet-users+unsubscr...@googlegroups.com.
>>> For more options, visit this group at 
>>> http://groups.google.com/group/puppet-users?hl=en.
>>>
>>
>>
>>
>> --
>> Trevor Vaughan
>> Vice President, Onyx Point, Inc
>> (410) 541-6699
>> tvaug...@onyxpoint.com
>>
>> -- This account not approved for unencrypted proprietary information --
>>
>> --
>> 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 unsubscribe from this group, send email to 
>> puppet-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at 
>> http://groups.google.com/group/puppet-users?hl=en.
>>
>
> --
> 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 unsubscribe from this group, send email to 
> puppet-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/puppet-users?hl=en.
>



-- 
Trevor Vaughan
Vice President, Onyx Point, Inc
(410) 541-6699
tvaug...@onyxpoint.com

-- This account not approved for unencrypted proprietary information --

-- 
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 unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Re: Puppet on Windows: Avoid download msi files if they aren't going to be installed

2012-05-25 Thread Jeff McCune
On Fri, May 25, 2012 at 5:43 AM, jcbollinger wrote:

>
> On May 25, 3:58 am, tiochan  wrote:
>
> This stanza:
>
> > file { 'C:\\SOFTWARE\\7z920.msi':
> > source  => 'puppet://puppet.upc.edu/modules/windows/7z920.msi',
> > }
>
> tells Puppet that there is supposed to be a file C:\\SOFTWARE\
> \7z920.msi on the system, and its content is supposed to exactly match
> that of puppet://puppet.upc.edu/modules/windows/7z920.msi.  That's
> altogether independent of whatever use that file may have.  If the
> file is missing when Puppet runs then it will download a fresh copy.
> If it is present then Puppet will check its content; it will download
> a fresh copy only if the content does not match.
>
> If you do not want the file downloaded every time then either
> 1) leave it in place where Puppet puts it (per your instructions), or
> 2) remove that stanza, because it is a lie if you don't actually want
> the file to be there.
>
>
> > A band of having a software repository mounted as a mapped drive... Is
> > possible to avoid that the msi file to being downloaded if it is not
> going
> > to be installed?
>
>
> If you make the MSI file accessible to the system via a mapped drive
> or network share then you can exercise option (2) above without losing
> the ability to run the installer.
>

You can also provide a plain HTTP(S) URI to the source parameter and it
will only be downloaded if it's not already installed.

-Jeff

-- 
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 unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Re: Announcing Razor

2012-05-25 Thread Michael Stahnke
I have Ruby 1.9 (the build from Fedora 17) available for EL6 variants.
  It's not super-tested, but I've used it for some tests/experiments.

http://stahnma.fedorapeople.org/ruby/



Mike



On Thu, May 24, 2012 at 8:13 PM, Trevor Vaughan  wrote:
> Nan,
>
> Using the 'alternatives' system is probably your best bet.
>
> Slap it in /opt and register it with 'alternatives'.
>
> man 8 alternatives (I couldn't find a better reference online)
>
> Trevor
>
> On Thu, May 24, 2012 at 8:36 PM, Nan Liu  wrote:
>> On Thu, May 24, 2012 at 2:57 PM, Gmoney  wrote:
>>> This sounds great, looks like when you try to do the puppet apply that
>>> it does not support install on RedHat 6. Any update on that? i tried
>>> modifing the file:
>>>
>>> /etc/puppet/modules/mongodb/manifests/init.pp
>>>
>>> Added the following, but it still coughs, any help would be
>>> apprecitaed, thanks.
>>>
>>> 'RedHat': {
>>>        $location = 'http://downloads-distro.mongodb.org/repo/redhat'
>>>      }
>>
>> Well, the location is inserted into an apt repo a few lines below:
>>
>> apt::source { '10gen':
>>  location    => $location,
>>  ...
>> }
>>
>> That's just not not going to work in RHEL. This needs to be
>> conditional which use apt::source on debian family and yum on redhat.
>> I admit this module was pretty minimal, so any updates such as
>> including support RHEL would be very much appreciated.
>>
>> After that, you are probably going to have another hurdle with Ruby
>> 1.9. I started building RPMs, but not quite ready:
>> https://build.opensuse.org/package/show?package=Ruby-1.9.3&project=home%3Ananliu.
>> I don't know the best way to get Ruby 1.9 on RHEL, so suggestions are
>> welcomed.
>>
>> Thanks,
>>
>> Nan
>>
>> --
>> 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 unsubscribe from this group, send email to 
>> puppet-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at 
>> http://groups.google.com/group/puppet-users?hl=en.
>>
>
>
>
> --
> Trevor Vaughan
> Vice President, Onyx Point, Inc
> (410) 541-6699
> tvaug...@onyxpoint.com
>
> -- This account not approved for unencrypted proprietary information --
>
> --
> 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 unsubscribe from this group, send email to 
> puppet-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/puppet-users?hl=en.
>

-- 
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 unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] question about Cusctom Facts

2012-05-25 Thread Jeff McCune
On Fri, May 25, 2012 at 6:17 AM, mparrad  wrote:

> Hi Jeff
>
>
> On Thursday, May 24, 2012 5:50:03 PM UTC-4, Jeff McCune wrote:
>>
>> On Thu, May 24, 2012 at 1:33 PM, Marco Parra D. 
>> wrote:
>>
>>> But my question was can I change the path where puppet copi the custom
>>> facts?
>>>
>>
>> Yes, this is the plugindest puppet agent option.
>>
>> What is it currently set to?  You can check using puppet agent
>> --configprint plugindest
>>
>
> Here is the output for this:
>
> puppet agent --configprint plugindest
>

I think you forgot to copy and paste the output.

In general there are a couple of key points.

First, custom facts distributed via Puppet pluginsync are always available
in your manifests.

Second, if you distribute your custom facts via pluginsync you should use
facter --puppet to load them with Facter.  Keep in mind Facter and Puppet
are two separate applications which is why --puppet is necessary.

Third, Facter (and Puppet) load things from multiple places.  This is how
our plugin system works.  With regard to Facter the libraries that come
bundled in the package are installed to C:\Program Files (x86)\Puppet
Labs\Puppet\facter\lib.  You shouldn't ever need to tell Facter to load
things from this path since it will load from here automatically.  Also,
you shouldn't ever put your own custom facts in this location since the
package may overwrite the directory on an upgrade.

Hope this helps.

-Jeff

-- 
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 unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Learning Puppet Virtual Machine vs. Parallels Desktop = linux kernel panic

2012-05-25 Thread Patrick Debois
Shameless plug here - In the current beta version Veewee is now able to 
build Parallels systems.


https://github.com/jedi4ever/veewee

That might be useful to create your environment, as there is no real 
need to import it?

And it will install ruby and puppet



On 25/05/12 15:52, Dan White wrote:
I fought with this about three months ago and got the answer out of 
Parallels Tech Support:


1. Convert your VmWare virtual Machine but do not run it.
2. Go to Virtual Machine drop-down menu -> Configure -> Hardware -> 
Hard Disk 1 and change its location from SATA to IDE (e.g. IDE 0:1).

3. Run your Virtual Machine.

It works for me.  Please let me know if it works for you.

On May 24, 2012, at 8:33 PM, Stefan Lasiewski wrote:
I am attempting to use the Learning Puppet VM [1] with Parallels 
Desktop 7 on a Mac (Snow Leopard).


Unfortunately, Parallels does not support OVF images, so I must try 
the VMX image. Parallels has the ability to convert VMware images, 
although I don't know if this works well.


If I attempt to import the VMX image using Parallels, I run into two 
problems. I will include the screenshots on Google+ (See link [2])


 1. Parallels fails to detect the operating system in the VMX image.
Please see the screenshot at [2]. Regardless, I went ahead with
the import of this image and Parallels says the import was
successful.
 2. After importing the image, I boot the Virtual Machine. However,
the OS is unable to find any of the LVM volume groups, and the
the kernel panics.

I am unsure if this is a problem with the VMX image, or if Parallels 
is doing something wrong. The main problem seems to be that LVM 
cannot create the volume group.


I know this is a long shot, but I am hoping there are other Mac or 
Parallels users out there who have tried the Learning Puppet VM.


Thank you for your help,

-= Stefan

[1] http://info.puppetlabs.com/download-learning-puppet-VM.html
[2] 
https://plus.google.com/photos/103621378732713508804/albums/5746257600756103185


Hopefully link [2] works.

--
You received this message because you are subscribed to the Google 
Groups "Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/3HCfJppQ5IoJ.
To post to this group, send email to puppet-users@googlegroups.com 
.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com 
.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.


--
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 unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.


--
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 unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Learning Puppet Virtual Machine vs. Parallels Desktop = linux kernel panic

2012-05-25 Thread Dan White
I fought with this about three months ago and got the answer out of Parallels 
Tech Support:

1. Convert your VmWare virtual Machine but do not run it.
2. Go to Virtual Machine drop-down menu -> Configure -> Hardware -> Hard Disk 1 
and change its location from SATA to IDE (e.g. IDE 0:1).
3. Run your Virtual Machine.

It works for me.  Please let me know if it works for you.

On May 24, 2012, at 8:33 PM, Stefan Lasiewski wrote:
> I am attempting to use the Learning Puppet VM [1] with Parallels Desktop 7 on 
> a Mac (Snow Leopard).
> 
> Unfortunately, Parallels does not support OVF images, so I must try the VMX 
> image. Parallels has the ability to convert VMware images, although I don't 
> know if this works well.
> 
> If I attempt to import the VMX image using Parallels, I run into two 
> problems. I will include the screenshots on Google+ (See link [2])
> Parallels fails to detect the operating system in the VMX image. Please see 
> the screenshot at [2]. Regardless, I went ahead with the import of this image 
> and Parallels says the import was successful. 
> After importing the image, I boot the Virtual Machine. However, the OS is 
> unable to find any of the LVM volume groups, and the the kernel panics. 
> I am unsure if this is a problem with the VMX image, or if Parallels is doing 
> something wrong. The main problem seems to be that LVM cannot create the 
> volume group.
> 
> I know this is a long shot, but I am hoping there are other Mac or Parallels 
> users out there who have tried the Learning Puppet VM.
> 
> Thank you for your help,
> 
> -= Stefan
> 
> [1] http://info.puppetlabs.com/download-learning-puppet-VM.html
> [2] 
> https://plus.google.com/photos/103621378732713508804/albums/5746257600756103185
> 
> Hopefully link [2] works.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" group.
> To view this discussion on the web visit 
> https://groups.google.com/d/msg/puppet-users/-/3HCfJppQ5IoJ.
> To post to this group, send email to puppet-users@googlegroups.com.
> To unsubscribe from this group, send email to 
> puppet-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/puppet-users?hl=en.

-- 
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 unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Announce: Razor technical webinar - Tue May 29 11am PT

2012-05-25 Thread Scott Johnston
We'll be holding a technical webinar for the recently announced Razor
provisioning tool next Tue May 29 11am PT.  Nan Liu from Puppet Labs and
Nick Weaver from EMC, the Razor technical leads, will be there to discuss
its capabilities and field your questions.

You can sign-up to get the webinar login details here:
http://puppetlabs.com/resources/webinars/

Two blog posts from Nan and Nick about Razor here:
http://puppetlabs.com/blog/puppet-razor-module/
http://nickapedia.com/2012/05/21/lex-parsimoniae-cloud-provisioning-with-a-razor/


Thanks,

sj

-- 
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 unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Learning Puppet Virtual Machine vs. Parallels Desktop = linux kernel panic

2012-05-25 Thread Stefan Lasiewski
I am attempting to use the Learning Puppet VM [1] with Parallels Desktop 7 
on a Mac (Snow Leopard).

Unfortunately, Parallels does not support OVF images, so I must try the VMX 
image. Parallels has the ability to convert VMware images, although I don't 
know if this works well.

If I attempt to import the VMX image using Parallels, I run into two 
problems. I will include the screenshots on Google+ (See link [2])

   1. Parallels fails to detect the operating system in the VMX image. 
   Please see the screenshot at [2]. Regardless, I went ahead with the import 
   of this image and Parallels says the import was successful. 
   2. After importing the image, I boot the Virtual Machine. However, the 
   OS is unable to find any of the LVM volume groups, and the the kernel 
   panics. 
   
I am unsure if this is a problem with the VMX image, or if Parallels is 
doing something wrong. The main problem seems to be that LVM cannot create 
the volume group.

I know this is a long shot, but I am hoping there are other Mac or 
Parallels users out there who have tried the Learning Puppet VM.

Thank you for your help,

-= Stefan

[1] http://info.puppetlabs.com/download-learning-puppet-VM.html
[2] 
https://plus.google.com/photos/103621378732713508804/albums/5746257600756103185

Hopefully link [2] works.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/3HCfJppQ5IoJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Re: Passenger on redhat 6

2012-05-25 Thread Russell Harrison
On Thursday, May 24, 2012 3:58:27 AM UTC-4, David Schmitt wrote:
>
> Hi, 
>
>
> does anyone have a mod_passenger for RHEL6 from a trusted source, where I 
> *don't* have to compile on the server? I'm trying to upgrade the 
> puppetmaster/dashboard here and the docs on the wiki 
> (http://projects.puppetlabs.com/projects/1/wiki/Using_Passenger) are not 
> helpful either. 
>

Passenger will be coming to the EPEL repos soon.  Its been a long process 
but a lot of work has gone into getting this done in a way that conforms to 
the Fedora guidelines.  Once this finial question has been worked out I'd 
consider those packages to be THE source for installing onto RHEL / CentOS 
/ Fedora systems.

 https://bugzilla.redhat.com/show_bug.cgi?id=470696#c132

Russell

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/9NBXQQ21S94J.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] question about Cusctom Facts

2012-05-25 Thread mparrad
Hi Jeff

On Thursday, May 24, 2012 5:50:03 PM UTC-4, Jeff McCune wrote:
>
> On Thu, May 24, 2012 at 1:33 PM, Marco Parra D. 
> wrote:
>
>> But my question was can I change the path where puppet copi the custom 
>> facts?
>>
>
> Yes, this is the plugindest puppet agent option.
>
> What is it currently set to?  You can check using puppet agent 
> --configprint plugindest
>

Here is the output for this:

puppet agent --configprint plugindest

 

>  
>
>> because when I run puppet agent, my custom facts were copied to 
>> c:\programdata\puppetlabs\**facter\lib\facter
>> and facter didn't see it,
>>
>
> How did you install Puppet?  Puppet shouldn't be copying custom facts into 
> this directory, the default location on Windows is 
> C:\ProgramData\PuppetLabs\puppet\var\lib
>
> Here's a screenshot of the default behavior of the MSI packages published 
> at https://downloads.puppetlabs.com/windows/
>

I installed using MSI file for 2.7.14 version, using default install 

>
> http://links.puppetlabs.com/windows_msi_plugindest.png
>
> In the screenshot, you can see puppet agent downloads and loads plugins 
> from C:\ProgramData\PuppetLabs\puppet\var\lib, facter doesn't load facts 
> from here without the --puppet option, and that the plugindest setting is 
> set to C:\ProgramData\PuppetLabs\puppet\var\lib
>  
>
>> but when I set the variable FACTERLIB on window to:
>>
>> set FACTERLIB=C:\Program Files (x86)\Puppet Labs\Puppet\facter\lib\facter;
>> **C:\ProgramData\PuppetLabs\**puppet\var\lib\facter
>>
>
> You really shouldn't have to set FACTERLIB at all.
>

Oh, I see, now If I run:

C:\Windows\system32>facter --puppet udp_status
true

I got the value, but, now my doubt is, Can I use my custom facts inside my 
modules?...
 

>
> facter did see the custom fact:
>>
>> C:\Windows\system32>facter udp_status
>>
>> C:\Windows\system32>set FACTERLIB=C:\Program Files (x86)\Puppet 
>> Labs\Puppet\facter\lib\facter;**C:\ProgramData\PuppetLabs\**
>> puppet\var\lib\facter
>>
>> C:\Windows\system32>facter udp_status
>> true
>>
>> is there a way to change that?
>>
>
But If I don't stup FACTERLIB, facter on windows agent don't find my custom 
facts, facter is reading the facts on c:\Program Files (x86)\Puppet 
Labs\facter\lib\facter, not in the 
C:\ProgramData\PuppetLabs\var\lib\folder

 

>
> Yes, this is the plugindest setting in puppet.conf.  Please let me know if 
> the default behavior is something other than the setting 
> of  C:\ProgramData\PuppetLabs\puppet\var\lib
>
>  
I'll try adding plugingdest in puppet.conf on windows node... If I change 
this value, Can I mess something else? I need use facter without --puppet...

Thanks you Jeff 

-Jeff
>


Best regards.. 

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/Q6mQxkOwZTQJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Re: Puppet not applying my config

2012-05-25 Thread jcbollinger


On May 24, 7:05 pm, macmichael01  wrote:
> I am running puppet 2.7.11 on my puppet client and puppet master.
> I generated and signed my certs but for some reason my configurations
> are not
> being applied on my client box.
>
> When running the following command it appears to be pulling the
> configurations
> but does not apply them. Is there a special command that I need to
> run
> initially to make this happen?


No, but look here:


> info: Retrieving plugin
> err: /File[/var/lib/puppet/lib]: Could not evaluate: Could not
> retrieve information from environment production source(s)
> puppet://puppet.example.com/plugins


That looks like a misconfiguration, probably of the client.  Puppet is
looking for its own plugins under /var/lib/puppet/lib, but that
directory doesn't exist.  Those plugins include everything Puppet
would use to apply the catalog, so it's not surprising that nothing is
applied.

I don't know how Puppet got into this strange state, but you could try
to solve it by configuring the correct directory via a 'libdir'
parameter in the [main] section of puppet.conf.


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@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Re: Puppet not applying my config

2012-05-25 Thread jcbollinger


On May 24, 7:42 pm, Peter Bukowinski  wrote:
> On May 24, 2012, at 8:05 PM, macmichael01  wrote:

> > Here is the configuration that I am trying to apply:
>
> > /etc/puppet/manifests/site.pp
> > node default {
> >    file { "/srv/test_file.txt":
> >        owner => 'root',
> >        group => 'root',
> >        mode  => '0777',
> >    }
> > }
>
> > Thanks in advance!
>
> Try adding an 'ensure => file,' attribute to the beginning of the file 
> resource block.


Yes, do, but that's not the problem.


>I believe puppet's default behavior is to *not* create a resource unless 
>ensure is used to specify it.


That is mistaken.  Generally speaking, the default value for 'ensure'
parameters is "present" or some equivalent value.  There has to be
some default value because otherwise the resource declaration is
meaningless.  Puppet's default might actually be "file" for this
resource type, but it makes no actual difference in this case.


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@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Re: rspec first steps troubles

2012-05-25 Thread Atha Kouroussis
Hi Markus, 
you are missing an opening statement. Try:

require 'spec_helper'
describe 'class::name', :type => :class do
describe 'irqbalance' do
it { should include_class('irqbalance') }
it { should include_class('irqbalance::data') }
it { should contain_package('irqbalance').with(:ensure => 'installed') }
end
end

Cheers, 
Atha


On Friday, May 25, 2012 at 8:35 AM, Markus Falb wrote:

> I try do implement tests for my puppet code and was playing with
> rspec-puppet but the following code gives me errors
> 
> require 'spec_helper'
> describe 'irqbalance' do
> it { should include_class('irqbalance') }
> it { should include_class('irqbalance::data') }
> it { should contain_package('irqbalance').with(:ensure => 'installed') }
> end
> 
> The errors looks like
> 
> NoMethodError:
> undefined method `include_class'
> NoMethodError:
> undefined method `contain_package'
> 
> I feel lost.
> These methods are supposed to provided by rspec-puppet ?
> 
> $ gem list|grep rspec
> rspec (2.10.0)
> rspec-core (2.10.1)
> rspec-expectations (2.10.0)
> rspec-mocks (2.10.1)
> rspec-puppet (0.1.3)
> 
> This is on OS-X
> -- 
> Kind Regards, Markus Falb



-- 
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 unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Re: advice on module/class refactoring for defines

2012-05-25 Thread jcbollinger

On May 24, 7:43 pm, Nan Liu  wrote:
> I would say include 'ldconfig' in define ldconfig::config, then the
> define is self contained, and you don't need remember include ldconfig
> everywhere.

+1

That's all around the best available option.  It's much nicer than the
original version, even, because users don't have to separately include
class 'ldconfig' before they can use the define.


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@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Re: Puppet on Windows: Avoid download msi files if they aren't going to be installed

2012-05-25 Thread jcbollinger

On May 25, 3:58 am, tiochan  wrote:

This stanza:

> file { 'C:\\SOFTWARE\\7z920.msi':
> source  => 'puppet://puppet.upc.edu/modules/windows/7z920.msi',
> }

tells Puppet that there is supposed to be a file C:\\SOFTWARE\
\7z920.msi on the system, and its content is supposed to exactly match
that of puppet://puppet.upc.edu/modules/windows/7z920.msi.  That's
altogether independent of whatever use that file may have.  If the
file is missing when Puppet runs then it will download a fresh copy.
If it is present then Puppet will check its content; it will download
a fresh copy only if the content does not match.

If you do not want the file downloaded every time then either
1) leave it in place where Puppet puts it (per your instructions), or
2) remove that stanza, because it is a lie if you don't actually want
the file to be there.


> A band of having a software repository mounted as a mapped drive... Is
> possible to avoid that the msi file to being downloaded if it is not going
> to be installed?


If you make the MSI file accessible to the system via a mapped drive
or network share then you can exercise option (2) above without losing
the ability to run the installer.


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@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] rspec first steps troubles

2012-05-25 Thread Markus Falb
I try do implement tests for my puppet code and was playing with
rspec-puppet but the following code gives me errors

require 'spec_helper'
describe 'irqbalance' do
  it { should include_class('irqbalance') }
  it { should include_class('irqbalance::data') }
  it { should contain_package('irqbalance').with(:ensure => 'installed') }
end

The errors looks like

NoMethodError:
   undefined method `include_class'
NoMethodError:
   undefined method `contain_package'

I feel lost.
These methods are supposed to provided by rspec-puppet ?

$ gem list|grep rspec
rspec (2.10.0)
rspec-core (2.10.1)
rspec-expectations (2.10.0)
rspec-mocks (2.10.1)
rspec-puppet (0.1.3)

This is on OS-X
-- 
Kind Regards, Markus Falb



signature.asc
Description: OpenPGP digital signature


Re: [Puppet Users] Puppet on Windows: Avoid download msi files if they aren't going to be installed

2012-05-25 Thread tiochan

Jeff, thank for your reply.


Really puppet downloads the file only once, this is not in fact a problem.
I re-made the previous code to simplify it:

class 7Zip() {

include software_dir

file { 'C:\\SOFTWARE\\7z920.msi':
source  => 'puppet://puppet.upc.edu/modules/windows/7z920.msi',
}

package { '7-zip 9.20':
ensure => installed,
provider => 'msi',
source => 'C:\\SOFTWARE\\7z920.msi',
}
}

I can see that if the msi has been installed (by puppet), puppet will not 
try to install again, this is correct. But always, if it has been installed 
or not, the file C:\\SOFTWARE\\7z920.msi is downloaded.

A band of having a software repository mounted as a mapped drive... Is 
possible to avoid that the msi file to being downloaded if it is not going 
to be installed?



Thanks again.




-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/4y1VTSJ2QFsJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Passenger on redhat 6

2012-05-25 Thread David Schmitt

D'oh, missed that one. I'll check it out!


Thanks, David

On 24.05.2012 22:07, Dan White wrote:

I think you misunderstood.

They are binary RPM's, not source RPM's
They contain some config files and an *.so file


“Sometimes I think the surest sign that intelligent life exists elsewhere in 
the universe is that none of it has tried to contact us.”
Bill Waterson (Calvin&  Hobbes)

- David Schmitt  wrote:

On Thu, 24 May 2012 15:26:10 +0530, Aditya Patawari
  wrote:

On Thu, May 24, 2012 at 1:28 PM, David Schmitt  wrote:

Hi,


does anyone have a mod_passenger for RHEL6 from a trusted source, where

I

*don't* have to compile on the server? I'm trying to upgrade the
puppetmaster/dashboard here and the docs on the wiki
(http://projects.puppetlabs.com/projects/1/wiki/Using_Passenger) are

not

helpful either.

I have been using Phusion Passenger repo in production since a few
months and so far no complains.
URL: http://passenger.stealthymonkeys.com/rhel/6/$basearch


Except that - as far as i understood it - those packages require a
compiler and a local compile.


Best Regards, David

--
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 unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.





--
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 unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.