Merge pull request #22 from netmanagers/master
Update testing environment
This commit is contained in:
commit
9017ad5ea2
28
.kitchen.yml
28
.kitchen.yml
@ -1,16 +1,27 @@
|
|||||||
---
|
---
|
||||||
driver:
|
driver:
|
||||||
name: vagrant
|
name: docker
|
||||||
|
|
||||||
|
driver_config:
|
||||||
|
use_sudo: false
|
||||||
|
privileged: true
|
||||||
|
provision_command: mkdir -p /run/sshd
|
||||||
|
run_command: /lib/systemd/systemd
|
||||||
|
|
||||||
platforms:
|
platforms:
|
||||||
- name: centos-7.2
|
- name: debian-9
|
||||||
|
- name: ubuntu-18.04
|
||||||
|
- name: centos-7
|
||||||
|
|
||||||
provisioner:
|
provisioner:
|
||||||
name: salt_solo
|
name: salt_solo
|
||||||
salt_install: bootstrap
|
log_level: info
|
||||||
salt_bootstrap_url: https://bootstrap.saltstack.com
|
require_chef: false
|
||||||
salt_version: latest
|
salt_version: latest
|
||||||
formula: firewalld
|
formula: firewalld
|
||||||
|
salt_copy_filter:
|
||||||
|
- .kitchen
|
||||||
|
- .git
|
||||||
pillars:
|
pillars:
|
||||||
top.sls:
|
top.sls:
|
||||||
base:
|
base:
|
||||||
@ -28,10 +39,17 @@ provisioner:
|
|||||||
- 24007-24008
|
- 24007-24008
|
||||||
- 49152-49200
|
- 49152-49200
|
||||||
|
|
||||||
|
verifier:
|
||||||
|
name: inspec
|
||||||
|
sudo: false
|
||||||
|
# cli, documentation, html, progress, json, json-min, json-rspec, junit
|
||||||
|
reporter: cli
|
||||||
|
inspec_tests:
|
||||||
|
- path: test/integration/default
|
||||||
|
|
||||||
suites:
|
suites:
|
||||||
- name: default
|
- name: default
|
||||||
provisioner:
|
provisioner:
|
||||||
salt_bootstrap_options: -X -d
|
|
||||||
state_top:
|
state_top:
|
||||||
base:
|
base:
|
||||||
'*':
|
'*':
|
||||||
|
19
.travis.yml
Normal file
19
.travis.yml
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
sudo: required
|
||||||
|
cache: bundler
|
||||||
|
language: ruby
|
||||||
|
|
||||||
|
services:
|
||||||
|
- docker
|
||||||
|
|
||||||
|
before_install:
|
||||||
|
- bundle install
|
||||||
|
|
||||||
|
env:
|
||||||
|
matrix:
|
||||||
|
- INSTANCE: default-debian-9
|
||||||
|
- INSTANCE: default-ubuntu-1804
|
||||||
|
- INSTANCE: default-centos-7
|
||||||
|
|
||||||
|
script:
|
||||||
|
- bundle exec kitchen verify ${INSTANCE}
|
||||||
|
|
7
Gemfile
Normal file
7
Gemfile
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
source "https://rubygems.org"
|
||||||
|
|
||||||
|
gem "test-kitchen", '>=1.20.0'
|
||||||
|
gem "kitchen-docker"
|
||||||
|
gem "kitchen-salt", ">=0.1.0"
|
||||||
|
gem "kitchen-inspec"
|
||||||
|
|
14
README.rst
14
README.rst
@ -1,9 +1,11 @@
|
|||||||
===========
|
=================
|
||||||
firewalld-formula
|
firewalld-formula
|
||||||
===========
|
=================
|
||||||
|
|
||||||
Salt Stack Formula to set up and configure Firewalld, dynamically managed firewall with support for network/firewall zones to define the trust level of network connections or interfaces
|
Salt Stack Formula to set up and configure Firewalld, dynamically managed firewall with support for network/firewall zones to define the trust level of network connections or interfaces
|
||||||
|
|
||||||
|
.. image:: https://travis-ci.org/saltstack-formulas/firewalld-formula.svg?branch=master
|
||||||
|
|
||||||
NOTICE BEFORE YOU USE
|
NOTICE BEFORE YOU USE
|
||||||
=====================
|
=====================
|
||||||
|
|
||||||
@ -30,7 +32,7 @@ Available states
|
|||||||
:local:
|
:local:
|
||||||
|
|
||||||
``firewalld``
|
``firewalld``
|
||||||
-------
|
-------------
|
||||||
Manage firewalld
|
Manage firewalld
|
||||||
|
|
||||||
Additional resources
|
Additional resources
|
||||||
@ -58,8 +60,7 @@ Salt Compatibility
|
|||||||
|
|
||||||
Tested with:
|
Tested with:
|
||||||
|
|
||||||
* 2014.1.x
|
* 2018.3.x (will probably work too with 2017.x.x)
|
||||||
* 2015.5.x
|
|
||||||
|
|
||||||
OS Compatibility
|
OS Compatibility
|
||||||
================
|
================
|
||||||
@ -67,4 +68,5 @@ OS Compatibility
|
|||||||
Tested with:
|
Tested with:
|
||||||
|
|
||||||
* CentOS 7
|
* CentOS 7
|
||||||
* Archlinux
|
* Debian 9
|
||||||
|
* Ubuntu 18.04
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
require 'serverspec'
|
|
||||||
set :backend, :exec
|
|
||||||
|
|
||||||
describe service('firewalld') do
|
describe service('firewalld') do
|
||||||
it { should be_running }
|
it { should be_running }
|
||||||
end
|
end
|
Loading…
Reference in New Issue
Block a user