Skip to content

Instantly share code, notes, and snippets.

@curx
Forked from superseb/cloud-config.yml
Created April 16, 2019 05:32
Show Gist options
  • Select an option

  • Save curx/47bade6fa2183f69c2961fbc3528a829 to your computer and use it in GitHub Desktop.

Select an option

Save curx/47bade6fa2183f69c2961fbc3528a829 to your computer and use it in GitHub Desktop.
rancheros NFS mount
#cloud-config
write_files:
- path: /etc/rc.local
permissions: "0755"
owner: root
content: |
#!/bin/bash
mkdir -p /mnt/nfs-1
mkdir -p /mnt/nfs-2
cloud-init-execute
rancher:
services:
nfs:
image: d3fk/nfs-client
labels:
io.rancher.os.after: console, preload-user-images
io.rancher.os.scope: system
net: host
privileged: true
tty: true
restart: always
volumes:
- /usr/bin/iptables:/sbin/iptables:ro
mounts:
- ["nfs_server_ip:/", "/mnt/nfs-1", "nfs4", ""]
- ["nfs_server_ip:/", "/mnt/nfs-2", "nfs4", ""]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment