-
Notifications
You must be signed in to change notification settings - Fork 1
/
angus
42 lines (39 loc) · 1.48 KB
/
angus
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
#cloud-config
ssh_authorized_keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDGn2z8vTRFJSmpJxECtA5RnG4uml2QKjnqnAE57Tyjr/NeyR0yOArtnxI2pjh61U02dspkbKrSL9lAFLeuPHWY8JB5TMZY0jPsV40UDBEFlOvbnHXam+yGBwbnmrDr9oaTh0ds3tZVyUQk50BGRCauKrzu7JBYj1Zd3DKL2RcjFxWSIZbT2gxgGjP1Jz2KHYhIQlgxlEvisWt8cudj/XaTtRVgLdJnTjikl9RevzNX3b7QNZVPsL7oYazMRpzCy0NX1Yrc08e4L7K0KgnGN+/BckSTu+mlAo5wjx1isxCEP6ro5B7O9TzQ3pJNtw0HS8rq0/B1YDGOXHQuPrbM0p7h
hostname: angus
# NFS Mount
rancher:
services_include:
ubuntu-console: true
network:
interfaces:
eth*:
dhcp: false
eth0:
address: 192.168.3.34/24
gateway: 192.168.3.1
mtu: 1500
dns:
nameservers:
- 192.168.3.34
- 8.8.8.8
- 8.8.4.4
write_files:
# /opt/rancher/bin/start.sh is executed on start before User Docker starts
# /etc/rc.local is also executed on start but not guaranteed to be ran before User Docker
- path: /opt/rancher/bin/start.sh
permissions: "0755"
owner: root
content: |
#!/bin/bash
if ! dpkg -l | grep -q nfs-common; then
apt-get update -qq && apt-get install -y nfs-common
fi
rpcbind
mkdir -p /mnt/readynas
mkdir -p /mnt/media
mkdir -p /mnt/security-archive
mount -t nfs 192.168.3.23:/media /mnt/readynas
mount -t cifs //192.168.3.11/media /mnt/media -o username=nas,uid=rancher,password=nas
mount -t cifs //192.168.3.11/security-archive /mnt/security-archive -o username=nas,uid=rancher,password=nas