Revision 857a5d14
Added by Daniel Lobato Garcia over 6 years ago
app/views/unattended/provisioning_templates/finish/freebsd_(mfsbsd)_finish.erb | ||
---|---|---|
<%
|
||
# safemode renderer does not support unary negation
|
||
pm_set = @host.puppetmaster.empty? ? false : true
|
||
puppet_enabled = pm_set || @host.param_true?('force-puppet')
|
||
salt_enabled = @host.params['salt_master'] ? true : false
|
||
proxy_string = @host.params['http-proxy'] ? "http://#{@host.params['http-proxy']}:#{@host.params['http-proxy-port']}" : ''
|
||
puppet_enabled = pm_set || host_param_true?('force-puppet')
|
||
salt_enabled = host_param('salt_master') ? true : false
|
||
proxy_string = host_param('http-proxy') ? "http://#{host_param('http-proxy')}:#{host_param('http-proxy-port')}" : ''
|
||
%>
|
||
<% unless proxy_string == '' -%>
|
||
export http_proxy='<%= proxy_string %>'
|
||
... | ... | |
echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config
|
||
|
||
/bin/hostname <%= @host.name %>
|
||
cp /usr/share/zoneinfo/<%= @host.params['time-zone'] || 'UTC' %> /etc/localtime
|
||
cp /usr/share/zoneinfo/<%= host_param('time-zone') || 'UTC' %> /etc/localtime
|
||
adjkerntz -a
|
||
ntpdate <%= @host.params['ntp-server'] || '0.freebsd.pool.ntp.org' %>
|
||
ntpdate <%= host_param('ntp-server') || '0.freebsd.pool.ntp.org' %>
|
||
|
||
mkdir /root/install/
|
||
freebsd-update fetch > /root/install/freebsd-update_fetch.txt
|
Also available in: Unified diff
templates - sync from community-templates