Skip to content

Commit 8a69984

Browse files
committed
update travis file
Signed-off-by: Patrick Münch <patrick.muench1111@gmail.com>
1 parent 67f007d commit 8a69984

File tree

9 files changed

+53
-229
lines changed

9 files changed

+53
-229
lines changed

.travis.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1+
---
2+
language: ruby
3+
cache: bundler
14
rvm:
25
- 1.9.3
3-
- 2.0.0
4-
language: ruby
5-
script: bundle exec rake run_all_linters
6+
- 2.0
7+
- 2.2
8+
9+
bundler_args: --without integration
10+
script: bundle exec rake

controls/postgres_spec.rb

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# encoding: utf-8
2+
#
3+
# Copyright 2016, Patrick Muench
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# author: Christoph Hartmann
18+
# author: Dominik Richter
19+
# author: Patrick Muench
20+
21+
title 'Postgres server config'
22+
23+
only_if do
24+
command(postgres.service).exist?
25+
end
26+
27+
control 'apache-01' do
28+
impact 1.0
29+
title 'Apache should be running'
30+
desc 'Apache should be running.'
31+
describe service(postgres.service) do
32+
it { should be_installed }
33+
it { should be_running }
34+
end
35+
end

default/puppet/Modulefile

Lines changed: 0 additions & 11 deletions
This file was deleted.

default/puppet/Puppetfile

Lines changed: 0 additions & 7 deletions
This file was deleted.

default/puppet/manifests/site.pp

Lines changed: 0 additions & 9 deletions
This file was deleted.

default/roles/postgresql.json

Lines changed: 0 additions & 21 deletions
This file was deleted.

default/serverspec/postgresql_spec.rb

Lines changed: 0 additions & 115 deletions
This file was deleted.

default/serverspec/spec_helper.rb

Lines changed: 0 additions & 63 deletions
This file was deleted.

inspec.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: postgres-hardening
2+
title: Hardening Framework Apache Hardening Test Suite
3+
maintainer: Hardening Framework Team
4+
copyright: Hardening Framework Team
5+
copyright_email: hello@dev-sec.io
6+
license: Apache 2 license
7+
summary: Test-suite for best-practice postgres hardening
8+
version: 0.1.0
9+
supports:
10+
- os-family: unix

0 commit comments

Comments
 (0)