Add basic test suite
This commit is contained in:
parent
97fac49bfd
commit
112580daa1
2
.gitignore
vendored
2
.gitignore
vendored
@ -4,3 +4,5 @@ metadata.json
|
||||
*.swp
|
||||
*.tmp
|
||||
/.project
|
||||
.kitchen/
|
||||
.kitchen.local.yml
|
||||
|
40
.kitchen.yml
Normal file
40
.kitchen.yml
Normal file
@ -0,0 +1,40 @@
|
||||
---
|
||||
driver:
|
||||
name: vagrant
|
||||
|
||||
platforms:
|
||||
- name: centos-7.2
|
||||
|
||||
provisioner:
|
||||
name: salt_solo
|
||||
salt_install: bootstrap
|
||||
salt_bootstrap_url: https://bootstrap.saltstack.com
|
||||
salt_version: latest
|
||||
formula: firewalld
|
||||
pillars:
|
||||
top.sls:
|
||||
base:
|
||||
'*':
|
||||
- firewalld
|
||||
firewalld.sls:
|
||||
firewalld:
|
||||
enabled: True
|
||||
IndividualCalls: 'no'
|
||||
LogDenied: 'off'
|
||||
services:
|
||||
glusterfs:
|
||||
short: glusterfs
|
||||
description: 'GlusterFS network filesystem'
|
||||
ports:
|
||||
tcp:
|
||||
- 24007-24008
|
||||
- 49152-49200
|
||||
|
||||
suites:
|
||||
- name: default
|
||||
provisioner:
|
||||
salt_bootstrap_options: -X -d
|
||||
state_top:
|
||||
base:
|
||||
'*':
|
||||
- firewalld
|
@ -0,0 +1,6 @@
|
||||
require 'serverspec'
|
||||
set :backend, :exec
|
||||
|
||||
describe service('firewalld') do
|
||||
it { should be_running }
|
||||
end
|
Loading…
Reference in New Issue
Block a user