-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathuser-data-fedora.yml
More file actions
69 lines (57 loc) · 1.17 KB
/
Copy pathuser-data-fedora.yml
File metadata and controls
69 lines (57 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#cloud-config
disable_root: true
ssh_pwauth: no
users:
- name: ${ssh_user}
ssh_import_id:
- gh:${ssh_user}
shell: /bin/bash
sudo: ALL=(ALL) NOPASSWD:ALL
ssh-authorized-keys:
- ${ssh_public_key}
write_files:
- path: /etc/ssh/sshd_config
content: |
AcceptEnv LANG LC_*
AllowUsers ${ssh_user}
ChallengeResponseAuthentication no
Compression NO
MaxSessions 3
PasswordAuthentication no
PermitRootLogin no
Port "${sshdport}"
PrintMotd no
Subsystem sftp internal-sftp
UseDNS no
UsePAM yes
X11Forwarding no
# Set TimeZone
timezone: America/Sao_Paulo
hostname: "${hostname}"
growpart:
mode: auto
devices: ['/']
ignore_growroot_disabled: false
# Create swap partition
swap:
filename: /swap.img
size: "auto"
maxsize: 2G
# Install packages
packages:
- figlet
- mlocate
- bash-completion
- firewalld
- chkconfig
- lua-libs
- lvm2
# Update/Upgrade & Reboot if necessary
package_update: true
package_upgrade: true
package_reboot_if_required: true
# PostInstall
runcmd:
- figlet ${hostname} > /etc/motd
- updatedb
- dnf update