File tree 4 files changed +15
-16
lines changed
integration/default/controls
4 files changed +15
-16
lines changed Original file line number Diff line number Diff line change 34
34
# - INSTANCE: default-opensuse-423-2018-3-py2
35
35
- INSTANCE : default-debian-8-2017-7-py2
36
36
- INSTANCE : default-ubuntu-1604-2017-7-py2
37
- # - INSTANCE: default-centos-7 -2017-7-py2
37
+ - INSTANCE : default-centos-6 -2017-7-py2
38
38
- INSTANCE : default-fedora-28-2017-7-py2
39
39
- INSTANCE : default-opensuse-leap-42-2017-7-py2
40
40
Original file line number Diff line number Diff line change @@ -53,15 +53,8 @@ platforms:
53
53
provision_command :
54
54
- zypper refresh && zypper install -y net-tools
55
55
run_command : /usr/lib/systemd/systemd
56
- # centos-6 guest fails on Debian hosts due to vsyscall issues, see
57
- # https://hub.docker.com/_/centos, "A note about vsyscall"
58
- # Disabled for `template-formula` because not `systemd` based
59
- # - name: centos-6-2018-3
60
- # driver:
61
- # image: netmanagers/salt-2018.3-py2:centos-6
62
- # run_command: /sbin/init
63
56
64
- # #S SALT 2017.7
57
+ # # SALT 2017.7
65
58
- name : debian-8-2017-7-py2
66
59
driver :
67
60
image : netmanagers/salt-2017.7-py2:debian-8
@@ -81,10 +74,6 @@ platforms:
81
74
provision_command :
82
75
- zypper refresh && zypper install -y python-pip
83
76
run_command : /usr/lib/systemd/systemd
84
- # - name: centos-6-2017-7
85
- # driver:
86
- # image: netmanagers/salt-2017.7-py2:centos-6
87
- # run_command: /sbin/init
88
77
89
78
provisioner :
90
79
name : salt_solo
Original file line number Diff line number Diff line change
1
+ # Overide by OS
2
+ service_name = 'postgresql'
3
+ if os [ :name ] == 'centos' and os [ :release ] . start_with? ( '6' )
4
+ service_name = 'postgresql-9.6'
5
+ end
6
+
1
7
control 'Postgres service' do
2
8
impact 0.5
3
9
title 'should be running and enabled'
4
10
5
- describe service ( 'postgresql' ) do
11
+ describe service ( service_name ) do
6
12
it { should be_enabled }
7
13
it { should be_running }
8
14
end
Original file line number Diff line number Diff line change @@ -5,15 +5,19 @@ postgres.port: '5432'
5
5
postgres :
6
6
# UPSTREAM REPO
7
7
# Set True to configure upstream postgresql.org repository for YUM/APT/ZYPP
8
+ {%- if not (grains.os_family == 'Debian' or grains.osfinger == 'CentOS-6') %}
8
9
use_upstream_repo : False
9
- # # Version to install from upstream repository (if upstream_repo: True)
10
- # version: '10'
10
+ {%- else %}
11
+ use_upstream_repo : True
12
+ # Version to install from upstream repository (if upstream_repo: True)
13
+ version : ' 9.6'
11
14
# # Set True to add a file in /etc/profile.d adding the bin dir in $PATH
12
15
# # as packages from upstream put them somewhere like /usr/pgsql-10/bin
13
16
# add_profile: False
14
17
# # If automatic package installation fails, use `fromrepo` to specify the
15
18
# # upstream repo to install packages from [#133, #185] (if upstream_repo: True)
16
19
# fromrepo: 'jessie-pgdg'
20
+ {%- endif %}
17
21
18
22
# ### MACOS
19
23
# # Set to 'postgresapp' OR 'homebrew' for MacOS
You can’t perform that action at this time.
0 commit comments