Skip to content
Merged
Show file tree
Hide file tree
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
5 changes: 3 additions & 2 deletions docs/config/02-users.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,12 @@ users:
groups: # User groups
[adm, dialout, cdrom, sudo, audio, video, plugdev, games, users, input, render, netdev]
passwd: berryos # User password
chpasswd: { expire: false } # Do not expire user password
ssh_pwauth: false # Disabble SSH password auth
ssh_authorized_keys: [] # List of ssh authorized keys
ssh_import_id:
- gh:0rax # Import authorized keys from GitHub

chpasswd: { expire: false } # Do not expire user password
ssh_pwauth: false # Disabble SSH password auth
```

You can also use this directive to create `system` users if the application you will be setting up requires it:
Expand Down
20 changes: 16 additions & 4 deletions rootfs/etc/cloud/cloud.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,16 @@ users:
- default

# If this is set, 'root' will not be able to ssh in and they
# will get a message to login instead as the above $user (debian)
# will get a message to login instead as the above $user (pi)
disable_root: true

# Allow password based SSH authentication by default
ssh_pwauth: true

# Do not expire default password
chpasswd:
expire: false

# This will cause the set+update hostname module to not operate (if true)
preserve_hostname: false

Expand Down Expand Up @@ -88,6 +95,12 @@ cloud_final_modules:
- final-message
- power-state-change

# Control when some updates can happen
updates:
# Allow network-config to be re-read and re-generated after firstboot
network:
when: [boot, hotplug]

# System and/or distro specific settings
# (not accessible to handlers/transforms)
system_info:
Expand All @@ -102,11 +115,10 @@ system_info:
sudo: ['ALL=(ALL) NOPASSWD:ALL']
shell: /bin/bash
lock_passwd: false
ssh_pwauth: true
chpasswd: { expire: false }
# Set available network renderers
# Set available network renderers and activators (always prefer netplan)
network:
renderers: ['netplan', 'eni', 'sysconfig']
activators: ['netplan', 'eni', 'networkd']
# Set default NTP client
ntp_client: 'systemd-timesyncd'
# Other config here will be given to the distro class and/or path classes
Expand Down
Loading