Created
April 8, 2024 11:12
-
-
Save csmr/42ac879e6106f9614c2630801a5edcc6 to your computer and use it in GitHub Desktop.
Debian desktop saltstack state
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# File: debian_desktop.sls | |
# | |
# Install desktop environment | |
xfce4: | |
pkg.installed | |
# Install common applications | |
firefox: | |
pkg.installed | |
thunderbird: | |
pkg.installed | |
libreoffice: | |
pkg.installed | |
gimp: | |
pkg.installed | |
# Set timezone | |
/etc/timezone: | |
file.managed: | |
- contents: America/Los_Angeles | |
# Configure locale | |
dpkg-reconfigure locales: | |
cmd.run: | |
- unless: 'grep -q en_US.UTF-8 /etc/default/locale' | |
# Create user account | |
user: | |
user.present: | |
- password: '$6$rounds=4096$...' | |
- groups: sudo | |
- home: /home/user | |
# Copy SSH authorized keys | |
/home/user/.ssh: | |
file.directory: | |
- user: user | |
- group: user | |
- mode: 700 | |
/home/user/.ssh/authorized_keys: | |
file.managed: | |
- user: user | |
- group: user | |
- mode: 600 | |
- contents: | | |
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCwINnRY0c3lq6CD1Lx75KqrJMEz8C/f9onzrqc8f8c+nWp/g+gjU4JILCkqOZblzM3h6rOJm+e8J1k8cYbf0tLTvLEaxfSnxQe9h2r9g+Y3/GPOHJhdl5NMGtW8uFA5fBqihR7qJdyEmTvphzDq0YVgBbyU9k+we6oKFQDY6rbDfrX73Tp1LlYROyKC4UD6h+L+WpCp+s9cFJE6EnD1wK2Mqj+DxXzBKkE3Y5e7QN0QAzWKg93bKNA1ujK5yHE3VaUwEgw2oKfTQXVZRrF6l1g6iIy3RODgzyPPbJ3/WLX/D3l8S4iUu0cAwEAAQ== user@laptop | |
# Disable root login | |
/etc/ssh/sshd_config: | |
file.managed: | |
- user: root | |
- group: root | |
- mode: 600 | |
- contents: | | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment