Project

General

Profile

« Previous | Next » 

Revision 22964664

Added by Dominic Cleal about 8 years ago

templates - sync from community-templates

View differences:

app/views/unattended/cloudinit/userdata_cloudinit.erb
hostname: <%= @host.shortname %>
fqdn: <%= @host %>
manage_etc_hosts: true
ssh_pwauth: <%= @host.params['ssh_pwauth'] || true %>
<% if @host.params['ssh_authorized_keys'] -%>
ssh_authorized_keys:
<% @host.params['ssh_authorized_keys'].split("\n").each do |ssh_key| -%>
- <%= ssh_key %>
<% end -%>
<% end -%>
groups:
- admin

Also available in: Unified diff