test(inspec): fix reference to suse after gem train update
* https://github.com/inspec/train/pull/505
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# Overide by OS
|
# Overide by Platform
|
||||||
pg_port = '5432'
|
pg_port = '5432'
|
||||||
if os[:family] == 'debian' or os[:name] == 'suse'
|
if platform[:family] == 'debian' or platform[:family] == 'suse'
|
||||||
pg_port = '5433'
|
pg_port = '5433'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
# Overide by OS
|
# Overide by Platform
|
||||||
service_name = 'postgresql'
|
service_name = 'postgresql'
|
||||||
pg_port = 5432
|
pg_port = 5432
|
||||||
if os[:name] == 'centos' and os[:release].start_with?('6')
|
if platform[:name] == 'centos' and platform[:release].start_with?('6')
|
||||||
service_name = 'postgresql-9.6'
|
service_name = 'postgresql-9.6'
|
||||||
elsif os[:family] == 'debian' or os[:name] == 'suse'
|
elsif platform[:family] == 'debian' or platform[:family] == 'suse'
|
||||||
pg_port = 5433
|
pg_port = 5433
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user