Bug 1144607

Summary: capsule installer: generated /etc/named/options.conf adds empty forwarders string when option is omitted from capsule-installer
Product: Red Hat Satellite Reporter: Shannon Hughes <shughes>
Component: InstallationAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED CURRENTRELEASE QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.0.4CC: bbuckingham, bkearney, cwelton, inecas, jmontleo, mbacovsk, mmccune, omaciel, stbenjam, xdmoon
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1110838 Environment:
Last Closed: 2016-12-19 15:15:53 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1110838    
Bug Blocks: 1115190    

Description Shannon Hughes 2014-09-19 21:21:00 UTC
install a capsule with dns and dhcp options but don't specify forwarders..i.e.

capsule-installer --dhcp=true --dhcp-gateway=192.168.150.1 --dns=true --dns-reverse=150.168.192.in-addr.arpa --dns-zone=katello.lan


the following /etc/named/options.conf file is generated with null forwarders: 


directory "/var/named";
#forwarders { capsule::params::dns_forwarders; };

listen-on-v6 { any; };

which prevents named from starting: 

Starting named: 
Error in named configuration:
/etc/named/options.conf:2: expected IP address near 'capsule::params::dns_forwarder...'

If i comment out the line or add a forwarder then name will start successfully

Comment 1 RHEL Program Management 2014-09-19 21:23:17 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 6 Stephen Benjamin 2016-12-19 15:15:53 UTC
Already fixed in the current release.

  https://github.com/theforeman/puppet-dns/pull/63