Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

preseed_cloud-init-autoinstall-user-data #9056

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -0,0 +1,36 @@
<%#
kind: provision
name: preseed_cloud-init-autoinstall-user-data
model: ProvisioningTemplate
oses:
- Ubuntu 20.04 live-server and higher
test_on:
- ubuntu 20.04.3 live-server
-%>
<%-
realname_to_create = host_param('realname_to_create')
username_to_create = host_param('username_to_create')
userpassword_to_create = host_param('userpassword_to_create')
-%>
#cloud-config
autoinstall:
apt:
geoip: false
preserve_sources_list: false
primary:
- arches: [amd64, i386]
uri: http://archive.ubuntu.com/ubuntu
- arches: [default]
uri: http://ports.ubuntu.com/ubuntu-ports
identity: {hostname: <%= @host.shortname %>, password: <%= userpassword_to_create %>,
realname: <%= realname_to_create %>, username: <%= username_to_create %>}
keyboard: {layout: us, toggle: null, variant: ''}
locale: en_US.UTF-8
<%= snippet 'preseed_netplan_setup' -%>
ssh:
allow-pw: true
authorized-keys: []
install-server: true
updates: security
version: 1
<%= @host.diskLayout %>