This repository has been archived by the owner on Dec 31, 2024. It is now read-only.
forked from jhoblitt/puppet-nsstools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
226 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ Gemfile.lock | |
*.patch | ||
pkg/ | ||
*.rej | ||
.rspec_system/ | ||
spec/fixtures/manifests/ | ||
spec/fixtures/modules/ | ||
*.swp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
HOSTS: | ||
pe-aix-71-acceptance: | ||
roles: | ||
- master | ||
- dashboard | ||
- database | ||
- agent | ||
- default | ||
platform: aix-7.1-power | ||
hypervisor: aix | ||
ip: pe-aix-71-acceptance.delivery.puppetlabs.net | ||
CONFIG: | ||
type: pe | ||
nfs_server: NONE | ||
consoleport: 443 | ||
datastore: instance0 | ||
folder: Delivery/Quality Assurance/Enterprise/Dynamic | ||
resourcepool: delivery/Quality Assurance/Enterprise/Dynamic | ||
pooling_api: http://vcloud.delivery.puppetlabs.net/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
HOSTS: | ||
centos-59-x64: | ||
roles: | ||
- master | ||
platform: el-5-x86_64 | ||
box : centos-59-x64-vbox4210-nocm | ||
box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-59-x64-vbox4210-nocm.box | ||
hypervisor : vagrant | ||
CONFIG: | ||
type: git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
HOSTS: | ||
centos-64-x64: | ||
roles: | ||
- master | ||
- database | ||
- dashboard | ||
platform: el-6-x86_64 | ||
box : centos-64-x64-vbox4210-nocm | ||
box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-vbox4210-nocm.box | ||
hypervisor : vagrant | ||
CONFIG: | ||
type: pe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
HOSTS: | ||
centos-64-x64: | ||
roles: | ||
- master | ||
platform: el-6-x86_64 | ||
box : centos-64-x64-vbox4210-nocm | ||
box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-vbox4210-nocm.box | ||
hypervisor : vagrant | ||
CONFIG: | ||
type: git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
HOSTS: | ||
centos-65-x64: | ||
roles: | ||
- master | ||
platform: el-6-x86_64 | ||
box : centos-65-x64-vbox436-nocm | ||
box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-65-x64-virtualbox-nocm.box | ||
hypervisor : vagrant | ||
CONFIG: | ||
type: foss |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
HOSTS: | ||
debian-607-x64: | ||
roles: | ||
- master | ||
platform: debian-6-amd64 | ||
box : debian-607-x64-vbox4210-nocm | ||
box_url : http://puppet-vagrant-boxes.puppetlabs.com/debian-607-x64-vbox4210-nocm.box | ||
hypervisor : vagrant | ||
CONFIG: | ||
type: git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
HOSTS: | ||
debian-70rc1-x64: | ||
roles: | ||
- master | ||
platform: debian-7-amd64 | ||
box : debian-70rc1-x64-vbox4210-nocm | ||
box_url : http://puppet-vagrant-boxes.puppetlabs.com/debian-70rc1-x64-vbox4210-nocm.box | ||
hypervisor : vagrant | ||
CONFIG: | ||
type: git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
HOSTS: | ||
debian-73-x64.localhost: | ||
roles: | ||
- master | ||
platform: debian-7-amd64 | ||
box : debian-73-x64-virtualbox-nocm | ||
box_url : http://puppet-vagrant-boxes.puppetlabs.com/debian-73-x64-virtualbox-nocm.box | ||
hypervisor : vagrant | ||
CONFIG: | ||
log_level: debug | ||
type: foss |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
HOSTS: | ||
centos-64-x64: | ||
roles: | ||
- master | ||
platform: el-6-x86_64 | ||
box : centos-64-x64-vbox4210-nocm | ||
box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-vbox4210-nocm.box | ||
hypervisor : vagrant | ||
CONFIG: | ||
type: git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
HOSTS: | ||
fedora-18-x64: | ||
roles: | ||
- master | ||
platform: fedora-18-x86_64 | ||
box : fedora-18-x64-vbox4210-nocm | ||
box_url : http://puppet-vagrant-boxes.puppetlabs.com/fedora-18-x64-vbox4210-nocm.box | ||
hypervisor : vagrant | ||
CONFIG: | ||
type: git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
HOSTS: | ||
sles-11-x64.local: | ||
roles: | ||
- master | ||
platform: sles-11-x64 | ||
box : sles-11sp1-x64-vbox4210-nocm | ||
box_url : http://puppet-vagrant-boxes.puppetlabs.com/sles-11sp1-x64-vbox4210-nocm.box | ||
hypervisor : vagrant | ||
CONFIG: | ||
type: foss |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
HOSTS: | ||
sles-11sp1-x64: | ||
roles: | ||
- master | ||
platform: sles-11-x86_64 | ||
box : sles-11sp1-x64-vbox4210-nocm | ||
box_url : http://puppet-vagrant-boxes.puppetlabs.com/sles-11sp1-x64-vbox4210-nocm.box | ||
hypervisor : vagrant | ||
CONFIG: | ||
type: git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
HOSTS: | ||
ubuntu-server-10044-x64: | ||
roles: | ||
- master | ||
platform: ubuntu-10.04-amd64 | ||
box : ubuntu-server-10044-x64-vbox4210-nocm | ||
box_url : http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-10044-x64-vbox4210-nocm.box | ||
hypervisor : vagrant | ||
CONFIG: | ||
type: git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
HOSTS: | ||
ubuntu-server-12042-x64: | ||
roles: | ||
- master | ||
platform: ubuntu-12.04-amd64 | ||
box : ubuntu-server-12042-x64-vbox4210-nocm | ||
box_url : http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-12042-x64-vbox4210-nocm.box | ||
hypervisor : vagrant | ||
CONFIG: | ||
type: git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
HOSTS: | ||
ubuntu-server-1404-x64: | ||
roles: | ||
- master | ||
platform: ubuntu-14.04-amd64 | ||
box : puppetlabs/ubuntu-14.04-64-nocm | ||
box_url : https://vagrantcloud.com/puppetlabs/ubuntu-14.04-64-nocm | ||
hypervisor : vagrant | ||
CONFIG: | ||
log_level : debug | ||
type: git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
require 'spec_helper_acceptance' | ||
|
||
describe 'nsstools class' do | ||
describe 'running puppet code' do | ||
pp = <<-EOS | ||
if $::osfamily == 'RedHat' { | ||
class { 'epel': } -> Class['nsstools'] | ||
} | ||
include ::nsstools | ||
EOS | ||
|
||
it 'applies the manifest twice with no stderr' do | ||
apply_manifest(pp, :catch_failures => true) | ||
apply_manifest(pp, :catch_changes => true) | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
require 'beaker-rspec/spec_helper' | ||
require 'beaker-rspec/helpers/serverspec' | ||
|
||
unless ENV['RS_PROVISION'] == 'no' or ENV['BEAKER_provision'] == 'no' | ||
# This will install the latest available package on el and deb based | ||
# systems fail on windows and osx, and install via gem on other *nixes | ||
foss_opts = {:default_action => 'gem_install'} | ||
|
||
if default.is_pe?; then | ||
install_pe; | ||
else | ||
install_puppet(foss_opts); | ||
end | ||
|
||
hosts.each do |host| | ||
on hosts, "mkdir -p #{host['distmoduledir']}" | ||
end | ||
end | ||
|
||
RSpec.configure do |c| | ||
# Project root | ||
proj_root = File.expand_path(File.join(File.dirname(__FILE__), '..')) | ||
|
||
# Readable test descriptions | ||
c.formatter = :documentation | ||
|
||
# Configure all nodes in nodeset | ||
c.before :suite do | ||
# Install module and dependencies | ||
hosts.each do |host| | ||
on host, "mkdir -p #{host['distmoduledir']}/nsstools" | ||
result = on host, "echo #{host['distmoduledir']}/nsstools" | ||
target = result.raw_output.chomp | ||
|
||
%w(files lib manifests templates metadata.json).each do |file| | ||
path = "#{proj_root}/#{file}" | ||
next unless File.exists? path | ||
scp_to host, path, target | ||
end | ||
on host, puppet('module', 'install', 'puppetlabs-stdlib'), {:acceptable_exit_codes => [0, 1]} | ||
on host, puppet('module', 'install', 'stahnma-epel'), {:acceptable_exit_codes => [0, 1]} | ||
on host, puppet('module', 'install', 'camptocamp-openssl'), {:acceptable_exit_codes => [0, 1]} | ||
end | ||
end | ||
end |