Skip to content

Commit

Permalink
fix(fedora): install dhcp-server
Browse files Browse the repository at this point in the history
  • Loading branch information
myii committed Apr 9, 2020
1 parent 984117f commit b91a3b1
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 6 deletions.
3 changes: 2 additions & 1 deletion dhcpd/osmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ Ubuntu: {}
Raspbian: {}

# os_family: RedHat
Fedora: {}
Fedora:
server: dhcp-server
CentOS: {}
Amazon: {}

Expand Down
6 changes: 3 additions & 3 deletions test/integration/default/controls/config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,10 @@ class "foo" {
title 'should be generated properly'

only_if(
'the service configuration file is only available on the Debian, RedHat ' \
'& FreeBSD platform families'
'the service configuration file is only available on the Debian, RedHat, ' \
'Fedora & FreeBSD platform families'
) do
['debian', 'redhat', 'freebsd'].include?(platform[:family])
['debian', 'redhat', 'fedora', 'freebsd'].include?(platform[:family])
end

describe file(service_config_filename) do
Expand Down
18 changes: 16 additions & 2 deletions test/integration/default/controls/yaml_dump_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@
service_config: /etc/default/isc-dhcp-server
#{common06}
YAML_DUMP
when 'redhat', 'fedora'
when 'redhat'
<<~YAML_DUMP.chomp
#{common01}
config: #{config}
Expand All @@ -237,6 +237,20 @@
service_config: /etc/systemd/system/dhcpd.service.d/override.conf
#{common06}
YAML_DUMP
when 'fedora'
<<~YAML_DUMP.chomp
#{common01}
config: #{config}
#{common02}
enable: #{enable}
#{common03}
#{common04}
server: dhcp-server
#{common05}
service: #{service}
service_config: /etc/systemd/system/dhcpd.service.d/override.conf
#{common06}
YAML_DUMP
when 'suse'
<<~YAML_DUMP.chomp
#{common01}
Expand Down Expand Up @@ -275,7 +289,7 @@
enable: #{enable}
#{common03}
#{common04}
server: dhcp
server: #{server}
#{common05}
service: dhcpd4
#{common06}
Expand Down

0 comments on commit b91a3b1

Please sign in to comment.