Skip to content

Commit 9f86ca8

Browse files
committed
adjust travis.yml and fix permissions for debian os
Signed-off-by: Patrick Münch <[email protected]>
1 parent c487e54 commit 9f86ca8

File tree

4 files changed

+37
-10
lines changed

4 files changed

+37
-10
lines changed

.kitchen.yml

+6-5
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ platforms:
3939
- name: oracle-6.7
4040
driver:
4141
image: oraclelinux:6.7
42-
- name: oracle-7.1
42+
- name: oracle-7
4343
driver:
44-
image: oraclelinux:7.1
44+
image: oraclelinux:7
4545
pid_one_command: /usr/lib/systemd/systemd
4646
- name: debian-7
4747
driver:
@@ -82,7 +82,8 @@ suites:
8282
- fedora-23
8383
- fedora-24
8484
- oracle-6.7
85-
- oracle-7.1
85+
- oracle-7
86+
- debian-7
8687
attributes:
8788
postgresql:
8889
enable_pgdg_apt: true
@@ -98,7 +99,7 @@ suites:
9899
verifier:
99100
inspec_tests:
100101
- https://github.com/dev-sec/postgres-baseline
101-
- name: default-apt_9.1
102+
- name: default-apt91
102103
run_list:
103104
- recipe[postgresql::server]
104105
- recipe[postgres-hardening]
@@ -113,7 +114,7 @@ suites:
113114
- fedora-23
114115
- fedora-24
115116
- oracle-6.7
116-
- oracle-7.1
117+
- oracle-7
117118
attributes:
118119
postgresql:
119120
enable_pgdg_apt: true

.travis.yml

+27-4
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,39 @@ matrix:
2121
- rvm: 2.3.3
2222
bundler_args: "--without guard tools"
2323
script: bundle exec rake $SUITE
24-
env: SUITE=test:integration OS='centos'
24+
env: SUITE=test:integration OS='centos-6.7'
2525
- rvm: 2.3.3
2626
bundler_args: "--without guard tools"
2727
script: bundle exec rake $SUITE
28-
env: SUITE=test:integration OS='oracle'
28+
env: SUITE=test:integration OS='centos-7'
2929
- rvm: 2.3.3
3030
bundler_args: "--without guard tools"
3131
script: bundle exec rake $SUITE
32-
env: SUITE=test:integration OS='ubuntu'
32+
env: SUITE=test:integration OS='oracle-6.7'
3333
- rvm: 2.3.3
3434
bundler_args: "--without guard tools"
3535
script: bundle exec rake $SUITE
36-
env: SUITE=test:integration OS='debian'
36+
env: SUITE=test:integration OS='oracle-7'
37+
- rvm: 2.3.3
38+
bundler_args: "--without guard tools"
39+
script: bundle exec rake $SUITE
40+
env: SUITE=test:integration OS='ubuntu-12.04'
41+
- rvm: 2.3.3
42+
bundler_args: "--without guard tools"
43+
script: bundle exec rake $SUITE
44+
env: SUITE=test:integration OS='ubuntu-14.04'
45+
- rvm: 2.3.3
46+
bundler_args: "--without guard tools"
47+
script: bundle exec rake $SUITE
48+
env: SUITE=test:integration OS='ubuntu-16.04'
49+
- rvm: 2.3.3
50+
bundler_args: "--without guard tools"
51+
script: bundle exec rake $SUITE
52+
env: SUITE=test:integration OS='debian-7'
53+
- rvm: 2.3.3
54+
bundler_args: "--without guard tools"
55+
script: bundle exec rake $SUITE
56+
env: SUITE=test:integration OS='debian-8'
57+
allow-failures:
58+
- env: SUITE=test:integration OS='fedora-24'
59+
- env: SUITE=test:integration OS='fedora-23'

Berksfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ source 'https://supermarket.getchef.com'
44

55
metadata
66

7-
cookbook 'postgresql', '>= 4.0.6'
7+
cookbook 'postgresql', '>= 6.0.0'
88
cookbook 'apt'
99
cookbook 'chef-solo-search', git: 'https://github.com/edelight/chef-solo-search'

recipes/hardening.rb

+3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
directory File.join('/var/lib/postgresql/', dir) do
2626
mode '0700'
2727
end
28+
directory File.join('/etc/postgresql/', node['postgresql']['version'], 'main') do
29+
mode '0700'
30+
end
2831
end
2932

3033
change_notify = node['postgresql']['server']['config_change_notify']

0 commit comments

Comments
 (0)