Skip to content

Instantly share code, notes, and snippets.

@hiimivantang
Last active November 20, 2017 08:54
Show Gist options
  • Save hiimivantang/53f46b49dc0d8b14a5118a274c7ea051 to your computer and use it in GitHub Desktop.
Save hiimivantang/53f46b49dc0d8b14a5118a274c7ea051 to your computer and use it in GitHub Desktop.
passwd:
users:
- name: core
ssh_authorized_keys:
- ssh-rsa xxxxx ivantang@ngpdev
networkd:
units:
- name: internet.network
contents: |
[Match]
Name=eno1
[Network]
Address= 192.168.2.100
Gateway=192.168.2.111
storage:
disks:
- device: "/dev/sda"
wipe_table: true
partitions:
- label: "VAR"
number: 1
start: "0"
size: "20GiB"
- label: "DCOS-VOLUME0"
number: 2
start: "0"
size: "0"
filesystems:
- name: var
mount:
device: "/dev/sda1"
format: "ext4"
wipe_filesystem: true
label: "VAR"
- name: dcos-volume0
mount:
device: "/dev/sda2"
format: "ext4"
wipe_filesystem: true
label: "DCOS-VOLUME0"
systemd:
units:
- name: var.mount
enable: true
contents: |
[Mount]
What=/dev/disk/by-partlabel/VAR
Where=/var
Type=ext4
Options=defaults
[Install]
WantedBy=local-fs.target
- name: dcos-volume0.mount
enable: true
contents: |
[Mount]
What=/dev/disk/by-partlabel/DCOS-VOLUME0
Where=/dcos/volume0
Type=ext4
Options=defaults
[Install]
WantedBy=local-fs.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment