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 <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.
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.

Reply via email to