-
Notifications
You must be signed in to change notification settings - Fork 419
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 #392 from aboe76/travis_integration
add initial travis integration
- Loading branch information
Showing
6 changed files
with
131 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 |
---|---|---|
@@ -0,0 +1,76 @@ | ||
--- | ||
driver: | ||
name: docker | ||
|
||
driver_config: | ||
use_sudo: false | ||
privileged: true | ||
provision_command: mkdir -p /run/sshd | ||
run_command: /lib/systemd/systemd | ||
|
||
platforms: | ||
- name: debian-9 | ||
driver_config: | ||
provision_command: | ||
- apt-get install udev net-tools -y | ||
- name: ubuntu-18.04 | ||
driver_config: | ||
provision_command: | ||
- apt-get install udev net-tools -y | ||
- name: centos-7 | ||
driver_config: | ||
provision_command: | ||
- yum install udev net-tools -y | ||
|
||
provisioner: | ||
name: salt_solo | ||
log_level: info | ||
require_chef: false | ||
salt_version: latest | ||
formula: salt | ||
salt_copy_filter: | ||
- .kitchen | ||
- .git | ||
pillars: | ||
top.sls: | ||
base: | ||
'*': | ||
- salt | ||
salt.sls: | ||
salt: | ||
master: | ||
fileserver_backend: | ||
- rootfs | ||
file_roots: | ||
base: | ||
- /srv/salt | ||
pillar_roots: | ||
base: | ||
- /srv/pillar | ||
minion: | ||
master: localhost | ||
fileserver_backend: | ||
- rootfs | ||
file_roots: | ||
base: | ||
- /srv/salt | ||
pillar_roots: | ||
base: | ||
- /srv/pillar | ||
|
||
verifier: | ||
name: inspec | ||
sudo: true | ||
reporter: | ||
- cli | ||
inspec_tests: | ||
- path: test/integration/default | ||
|
||
suites: | ||
- name: salt | ||
provisioner: | ||
state_top: | ||
base: | ||
'*': | ||
- salt.master | ||
- salt.minion |
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 @@ | ||
sudo: required | ||
cache: bundler | ||
language: ruby | ||
|
||
services: | ||
- docker | ||
|
||
before_install: | ||
- bundle install | ||
|
||
env: | ||
matrix: | ||
- INSTANCE: salt-debian-9 | ||
- INSTANCE: salt-ubuntu-1804 | ||
- INSTANCE: salt-centos-7 | ||
|
||
script: | ||
- bundle exec kitchen verify ${INSTANCE} | ||
|
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,7 @@ | ||
source "https://rubygems.org" | ||
|
||
gem "test-kitchen", '>=1.23.2' | ||
gem "kitchen-docker" | ||
gem "kitchen-salt", ">=0.2.5" | ||
gem "kitchen-inspec" | ||
|
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
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 @@ | ||
control 'salt packages' do | ||
title 'should be installed' | ||
|
||
describe package('salt-master') do | ||
it { should be_installed } | ||
end | ||
|
||
describe package('salt-minion') do | ||
it { should be_installed } | ||
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,14 @@ | ||
control 'salt services' do | ||
title 'should be running' | ||
|
||
describe service('salt-master') do | ||
it { should be_enabled } | ||
it { should be_running } | ||
end | ||
|
||
describe service('salt-minion') do | ||
it { should be_enabled } | ||
it { should be_running } | ||
end | ||
|
||
end |