Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ autoinstall:
<%= indent(4) { snippet_if_exists(template_name + " custom apt") } -%>
user-data:
disable_root: false
chpasswd:
list: |
root:<%= password_to_create %>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doing it this way, you would set the same PW for root and for any user you would create in the users section below. What about setting the root PW like this?

Suggested change
root:<%= password_to_create %>
root: <%= @host.root_pass %>

expire: false
fqdn: <%= @host.name %>
users:
- name: <%= username_to_create %>
Expand Down
Loading