1
0
mirror of https://github.com/funkypenguin/geek-cookbook/ synced 2025-12-13 01:36:23 +00:00

Completed section on shared storage

This commit is contained in:
David Young
2017-07-18 23:06:38 +12:00
parent 307227ca54
commit 51c7aa5098
9 changed files with 185 additions and 105 deletions

View File

@@ -1,6 +1,4 @@
#cloud-config
ssh_authorized_keys:
- ssh-rsa ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFkmE2zK7uE9q75nzQxa9tQPHiCgaEUkIDj9xdoPL911 davidy@funkypenguin.co.nz
write_files:
- path: /etc/docker-latest/daemon.json
content: |
@@ -9,6 +7,12 @@ write_files:
"signature-verification": false,
"experimental": true
}
# Add users to the system. Users are added after groups are added.
users:
- name: davidy
sudo: ALL=(ALL) NOPASSWD:ALL
ssh-authorized-keys:
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFkmE2zK7uE9q75nzQxa9tQPHiCgaEUkIDj9xdoPL911 davidy@funkypenguin.co.nz
runcmd:
- systemctl disable docker --now
- systemctl enable docker-latest --now

View File

@@ -0,0 +1,10 @@
#!/bin/bash
(
echo o # Create a new empty DOS partition table
echo n # Add a new partition
echo p # Primary partition
echo 1 # Partition number
echo # First sector (Accept default: 1)
echo # Last sector (Accept default: varies)
echo w # Write changes
) | sudo fdisk /dev/vdb