Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from reallyenglish/remove_patches
Remove patches
- Loading branch information
Showing
6 changed files
with
48 additions
and
0 deletions.
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 |
---|---|---|
@@ -1,3 +1,6 @@ | ||
/.kitchen/ | ||
.kitchen.local.yml | ||
.swp | ||
.bundle/ | ||
vendor/ | ||
Gemfile.lock |
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 |
---|---|---|
|
@@ -25,6 +25,8 @@ platforms: | |
driver_config: | ||
ssh: | ||
shell: '/bin/sh' | ||
transport: | ||
name: sftp | ||
|
||
suites: | ||
- name: default | ||
|
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 @@ | ||
source 'https://rubygems.org' | ||
|
||
gem 'rspec', '~> 3.4.0' | ||
gem "test-kitchen", '~> 1.6.0' | ||
gem "kitchen-vagrant", '~> 0.19.0' | ||
# use patched kitchen-ansible | ||
gem "kitchen-ansible", '~> 0.40.1', :git => 'https://github.com/trombik/kitchen-ansible.git', :branch => 'freebsd_support' | ||
gem 'kitchen-verifier-shell', '~> 0.2.0' | ||
gem 'kitchen-verifier-serverspec', '~> 0.3.0' | ||
gem 'infrataster', '~> 0.3.2' | ||
gem 'serverspec', '~> 2.31.0' | ||
gem 'kitchen-sync', '~> 2.1.1' |
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,27 @@ | ||
node ('virtualbox') { | ||
stage 'Checkout' | ||
sh 'if [ ! -d ansible-role-hadoop-namenode ]; then mkdir ansible-role-hadoop-namenode; fi' | ||
dir('ansible-role-hadoop-namenode') { | ||
checkout scm | ||
} | ||
dir('ansible-role-hadoop-namenode') { | ||
stage 'bundle' | ||
sh 'bundle install --path vendor/bundle' | ||
sh 'if vagrant box list | grep trombik/ansible-freebsd-10.3-amd64 >/dev/null; then echo "installed"; else vagrant box add trombik/ansible-freebsd-10.3-amd64; fi' | ||
sh 'id' | ||
|
||
stage 'Syntax check' | ||
try { | ||
sh 'ansible-playbook --syntax-check -i localhost test/integration/default.yml' | ||
currentBuild.result = 'SUCCESS' | ||
} catch (err) { | ||
currentBuild.result = 'FAILURE' | ||
} | ||
|
||
stage 'bundle exec kitchen test' | ||
sh 'bundle exec kitchen test' | ||
|
||
stage 'Notify' | ||
step([$class: 'GitHubCommitNotifier', resultOnFailure: 'FAILURE']) | ||
} | ||
} |
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,2 @@ | ||
[defaults] | ||
roles_path = ../ |
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 |
---|---|---|
@@ -1,6 +1,8 @@ | ||
require 'spec_helper' | ||
require 'serverspec' | ||
|
||
sleep 30 | ||
|
||
package = 'hadoop' | ||
service = 'namenode' | ||
user = 'hdfs' | ||
|