-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuser-data-cis
More file actions
104 lines (102 loc) · 2.42 KB
/
user-data-cis
File metadata and controls
104 lines (102 loc) · 2.42 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
#cloud-config
autoinstall:
version: 1
user-data:
hostname: ubuntu-cis-template
users:
- name: ubuntu
shell: /bin/bash
lock-passwd: false
passwd: $6$Jm24Qa4M9379Eyfl$ZXCWcqAFSNN4OWGH/aY8mQufJq2R.nonkgad7FlTwYbKmLaO4jEqFSfqPseaY9ARBiAt04.pleBPRBXOlznh2/
groups: [adm, sudo]
- name: user
shell: /bin/bash
lock-passwd: false
passwd: $6$Jm24Qa4M9379Eyfl$ZXCWcqAFSNN4OWGH/aY8mQufJq2R.nonkgad7FlTwYbKmLaO4jEqFSfqPseaY9ARBiAt04.pleBPRBXOlznh2/
groups: [adm]
keyboard:
layout: en
variant: us
ssh:
install-server: true
storage:
grub:
update_nvram: true
swap:
size: 0
layout:
name: direct
# config:
# - type: disk
# path: /dev/vda
# id: first_disk
# ptable: gpt
# wipe: superblock
# - type: partition
# device: first_disk
# number: 1
# id: uefi-partition
# size: 512M
# flag: boot
# grub_device: true
# - type: partition
# device: first_disk
# number: 2
# id: boot-partition
# size: 1024M
# flag: boot
# - type: partition
# device: first_disk
# number: 3
# id: tmp-partition
# size: 2G
# flag: linux
# - type: partition
# device: first_disk
# number: 4
# id: root-partition
# size: -1
# flag: linux
# - type: format
# id: uefi-format
# volume: uefi-partition
# fstype: fat32
# label: ESP
# - type: format
# id: boot-format
# volume: boot-partition
# fstype: ext2
# label: BOOT
# - type: format
# id: root-format
# volume: root-partition
# fstype: ext4
# label: ROOT
# - type: format
# id: tmp-format
# volume: tmp-partition
# fstype: ext4
# label: TMP
# - type: mount
# id: root-mount
# device: root-format
# path: /
# - type: mount
# id: boot-mount
# device: boot-format
# path: /boot
# - type: mount
# id: uefi-mount
# device: uefi-format
# path: /boot/efi
# - type: mount
# id: tmp-mount
# device: tmp-format
# path: /tmp
# swap:
# size: 0
late-commands:
- echo 'ubuntu ALL=(ALL) NOPASSWD:ALL' > /target/etc/sudoers.d/ubuntu
package_update: true
package_upgrade: true
updates: all