Browse Source

Use HTTP to download kernel and initital RAM disk

As of version 3.70 (Fuel uses 4.05) pxelinux can download files
via HTTP.

DHCP option 210 sets prefix for all files that pxelinux downloads.

Change-Id: I26b62414e1cc0193c75f954ed7ed76570a4bf2f6
Doc-Impact: ops-guide
Closes-Bug: 1521759
changes/34/258734/2
Sergii Golovatiuk 7 years ago
parent
commit
03558ce662
  1. 11
      deployment/puppet/cobbler/manifests/server.pp
  2. 6
      deployment/puppet/cobbler/templates/cobbler-tftp.conf.erb
  3. 1
      deployment/puppet/nailgun/templates/dnsmasq.dhcp-range.erb

11
deployment/puppet/cobbler/manifests/server.pp

@ -147,7 +147,7 @@ class cobbler::server (
'/var/lib/fuel/keys',
'/var/lib/fuel/keys/master',
'/var/lib/fuel/keys/master/cobbler',
]:
]:
ensure => 'directory',
}
file { '/etc/httpd/conf.d/nailgun.conf':
@ -199,6 +199,15 @@ class cobbler::server (
notify => Service[$cobbler_web_service],
}
file { '/etc/httpd/conf.d/cobbler-tftp.conf':
content => template('cobbler/cobbler-tftp.conf.erb'),
owner => 'root',
group => 'root',
mode => '0644',
require => File['/etc/httpd/conf.d/'],
notify => Service[$cobbler_web_service],
}
service { $cobbler_web_service:
ensure => running,
enable => true,

6
deployment/puppet/cobbler/templates/cobbler-tftp.conf.erb

@ -0,0 +1,6 @@
Alias /cobbler/boot /var/lib/tftpboot
<Directory /var/lib/tftpboot>
Options +Indexes +FollowSymLinks
Require all granted
</Directory>

1
deployment/puppet/nailgun/templates/dnsmasq.dhcp-range.erb

@ -2,3 +2,4 @@
dhcp-range=<%= @range_name %>,<%= @dhcp_start_address %>,<%= @dhcp_end_address %>,<%= @dhcp_netmask %>,<%= @lease_time %>
dhcp-option=net:<%= @range_name %>,option:router,<%= @dhcp_gateway %>
dhcp-boot=net:<%= @range_name %>,pxelinux.0,boothost,<%= @next_server %>
dhcp-option-force=210,http://<%= @next_server %>/cobbler/boot/

Loading…
Cancel
Save