Project

General

Profile

« Previous | Next » 

Revision 7b966530

Added by Dominic Cleal about 8 years ago

templates - sync from community-templates

View differences:

app/views/unattended/freebsd/provision_FreeBSD_mfsBSD.erb
kind: provision
name: FreeBSD (mfsBSD) provision
oses:
- FreeBSD 10.0
- FreeBSD
%>
<%
proxy_string = @host.params['http-proxy'] ? "http://#{@host.params['http-proxy']}:#{@host.params['http-proxy-port']}" : ''
%>
<% unless proxy_string == '' -%>
export http_proxy='<%= proxy_string %>'
<% end -%>
# Get the disk layout, and the first disk connected to the system
disk_layout=`/sbin/sysctl -n kern.disks | /usr/bin/sed 's/cd[0-9]//g'`
first_disk="`echo ${disk_layout##*[1-9]} | /usr/bin/cut -d' ' -f1`"
......
chroot /mnt /bin/sh /tmp/finish.sh
rm /mnt/tmp/finish.sh
fetch -q --no-verify-hostname --no-verify-peer -o /dev/null -d <%= foreman_url %>
fetch -q --no-verify-hostname --no-verify-peer -o /dev/null -d <%= foreman_url('built') %>
sleep 5
reboot

Also available in: Unified diff