Skip to content

Commit 246f6d8

Browse files
committed
Resolving kitchen.yml platform name
1 parent eb232ba commit 246f6d8

2 files changed

Lines changed: 10 additions & 8 deletions

File tree

attributes/default.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
default['dnsmasq']['managed_hosts_bag'] = 'managed_hosts'
1313
default['dnsmasq']['user'] = 'dnsmasq'
1414
default['dnsmasq']['stublistener'] = if platform?('ubuntu') && node['platform_version'].to_i <= 20
15-
'yes'
15+
node['dnsmasq']['enable_dhcp'] ? 'no' : 'yes'
1616
else
1717
'no'
1818
end

kitchen.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ verifier:
1313
name: inspec
1414

1515
platforms:
16-
- amazonlinux-2
17-
- debian-9
18-
- debian-10
19-
- centos-7
20-
- centos-8
21-
- ubuntu-1804
22-
- ubuntu-2004
16+
- name: amazonlinux-2
17+
- name: debian-9
18+
- name: debian-10
19+
- name: centos-7
20+
- name: centos-8
21+
- name: ubuntu-18.04
22+
- name: ubuntu-20.04
2323

2424
suites:
2525
- name: default
@@ -39,3 +39,5 @@ suites:
3939
tftp-root: '/var/lib/tftpboot'
4040
enable-tftp: null
4141
interface: 'eth1'
42+
43+
- name: nodhcp

0 commit comments

Comments
 (0)