Revision 76731030
Added by Tomer Brisker over 5 years ago
app/views/unattended/provisioning_templates/provision/atomic_kickstart_default.erb | ||
---|---|---|
# Use medium_uri/content/repo/ as the URL if you
|
||
# have set up a local installation media for Fedora
|
||
<% fedora_atomic_url = host_param('atomic_refs_url') || "https://dl.fedoraproject.org/pub/fedora/linux/atomic/#{@host.os.major}/" %>
|
||
ostreesetup --nogpg --osname=fedora-atomic --remote=fedora-atomic --url=<%= fedora_atomic_url %> --ref=fedora-atomic/f<%= @host.os.major %>/<%= @host.architecture %>/docker-host
|
||
ostreesetup --nogpg --osname=fedora-atomic --remote=fedora-atomic-ostree --url=<%= fedora_atomic_url %> --ref=fedora-atomic/f<%= @host.os.major %>/<%= @host.architecture %>/docker-host
|
||
<% elsif @host.os.name.match /.*centos.*/i -%>
|
||
ostreesetup --nogpg --osname=centos-atomic-host --remote=centos-atomic-host --url=<%= host_param_true?('atomic-upstream') ? "http://mirror.centos.org/centos/#{@host.os.major}/atomic/#{@host.architecture}/repo/" : medium_uri %> --ref=centos-atomic-host/<%= @host.os.major %>/<%= @host.architecture %>/standard
|
||
ostreesetup --nogpg --osname=centos-atomic-host --remote=centos-atomic-host-ostree --url=<%= host_param_true?('atomic-upstream') ? "http://mirror.centos.org/centos/#{@host.os.major}/atomic/#{@host.architecture}/repo/" : medium_uri %> --ref=centos-atomic-host/<%= @host.os.major %>/<%= @host.architecture %>/standard
|
||
<% else -%>
|
||
ostreesetup --nogpg --osname=rhel-atomic-host --remote=rhel-atomic-host --url=file:///install/ostree --ref=rhel-atomic-host/<%= @host.os.major %>/<%= @host.architecture %>/standard
|
||
ostreesetup --nogpg --osname=rhel-atomic-host --remote=rhel-atomic-host-ostree --url=file:///install/ostree --ref=rhel-atomic-host/<%= @host.os.major %>/<%= @host.architecture %>/standard
|
||
<% end -%>
|
||
services --disabled cloud-init,cloud-config,cloud-final,cloud-init-local
|
||
rootpw --iscrypted <%= root_pass %>
|
||
... | ... | |
|
||
%post
|
||
<%= snippet 'redhat_register' %>
|
||
rm -f /etc/ostree/remotes.d/*.conf
|
||
<%= snippet('remote_execution_ssh_keys') %>
|
||
(
|
||
# Report success back to Foreman
|
Also available in: Unified diff
templates - sync from community-templates