Revision 1d5bddd3
Added by Dominic Cleal over 9 years ago
app/views/unattended/coreos/provision.erb | ||
---|---|---|
[Unit]
|
||
Description=Install coreos to disk
|
||
[Service]
|
||
ExecStart=/bin/bash -c "/usr/bin/coreos-install -C <%= @host.operatingsystem.release_name %> -d <%= @host.params['install-disk'] || '/dev/sda' %> -c /home/core/cloud-config.yml && wget -q -O /dev/null --no-check-certificate <%= foreman_url %> && reboot"
|
||
ExecStart=/bin/bash -c "/usr/bin/coreos-install -C <%= @host.operatingsystem.release_name %> -d <%= @host.params['install-disk'] || '/dev/sda' %> -c /home/core/cloud-config.yml> <% if @host.operatingsystem.major >= "557" -%>-b <%= @mediapath %><% end -%> && wget -q -O /dev/null --no-check-certificate <%= foreman_url %> && reboot"
|
||
[X-Fleet]
|
||
X-Conflicts=coreos-bootstrap.service
|
||
<% if @host.params['ssh_authorized_keys'] -%>
|
||
... | ... | |
<% @host.params['ssh_authorized_keys'].split(',').map(&:strip).each do |ssh_key| -%>
|
||
- "<%= ssh_key %>"
|
||
<% end -%>
|
||
<% else -%>
|
||
users:
|
||
- name: core
|
||
passwd: <%= root_pass %>
|
||
<% end -%>
|
||
write_files:
|
||
- content: |
|
Also available in: Unified diff
templates - sync from community-templates