-
Notifications
You must be signed in to change notification settings - Fork 0
/
user-data.yaml
57 lines (45 loc) · 1.27 KB
/
user-data.yaml
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
#cloud-config
mounts:
- ["tmpfs", "/tmp", "tmpfs", "defaults,noatime,nosuid,size=50m", "0", "0"]
- ["tmpfs", "/var/tmp", "tmpfs", "defaults,noatime,nosuid,size=20m", "0", "0"]
- ["tmpfs", "/var/log", "tmpfs", "defaults,noatime,nosuid,mode=0755,size=50m", "0", "0"]
locale: en_US.UTF-8
timezone: Europe/Paris
hostname: vanellope
manage_etc_hosts: true
ssh_pwauth: false
users:
- name: hadrien
lock_passwd: true
ssh_import_id: gh:HadrienPatte
shell: /bin/bash
sudo: ALL=(ALL) NOPASSWD:ALL
package_update: true
package_upgrade: true
package_reboot_if_required: true
write_files:
- path: /etc/update-motd.d/10-help-text
content: |
#!/bin/sh
exit
permissions: 0755
- path: /etc/update-motd.d/50-motd-news
content: |
#!/bin/sh
exit
permissions: 0755
- path: /etc/logrotate.conf
content: |
# use the syslog group by default, since this is the owning group of /var/log.
su root syslog
# purge logs on every logrotate run
rotate 0
size 1
# keep existing file and truncate it to avoid leaks caused by open file handles on deleted files
copytruncate
/var/log/* {
postrotate
/usr/lib/rsyslog/rsyslog-rotate
endscript
}
/var/log/**/* {}