Sha256: 3b4c487790f0ea4b8d8553e9874644c64215f9b66f3ed8ad54411512856943e7
Contents?: true
Size: 817 Bytes
Versions: 5
Compression:
Stored size: 817 Bytes
Contents
require 'rspec-puppet' # we can't use psh, because it declares things that conflict with serverspec username = ENV['TARGET_HOST'] environmentpath = "/etc/puppetlabs/code/environments" if File.directory? "#{environmentpath}/#{username}_production" environment = "#{username}_production" else environment = username end RSpec.configure do |c| c.environmentpath = environmentpath c.module_path = "#{environmentpath}/#{environment}/site" c.manifest = "#{environmentpath}/#{environment}/manifests" # Adds to the built in defaults from rspec-puppet c.default_facts = { :ipaddress => '127.0.0.1', :kernel => 'Linux', :operatingsystem => 'CentOS', :operatingsystemmajrelease => '7', :osfamily => 'RedHat', } end
Version data entries
5 entries across 5 versions & 1 rubygems