Post date: Aug 04, 2017 9:25:40 PM
#cloud-config
# RancherOS install configuration file
# For more options see:
# https://docs.rancher.com/os/configuration/docker/
# Boot from rancheros.iso to live instance.
# It automatically logs you into the command line of the live instance.
# Set a password and find the IP address.
# sudo passwd rancher
# ip addr
# Log into this address using putty (if using VirtualBox; setup NAT to access port 22 from localhost 222x).
# WHY? Putty allows you to copy and paste.
# This text should be pasted into ~/cloud-config.yml.
# From Putty, install RancherOS to HDD:
# sudo ros install -c cloud-config.yml -d /dev/sda
# Dont auto-reboot; it will just reload the live instance
# Shutdown manually using:
# sudo poweroff
# Remove the CD install image.
# Restart VM
rancher:
system_docker:
# Essential to preventing jail breaks
selinux_enabled: true
docker:
# Essential to preventing jail breaks
selinux_enabled: true
## To use TLS, CA and server certs need created and signed for this to work
## SEE: http://rancher.com/docs/os/v1.0/en/configuration/setting-up-docker-tls/
## Can disable after install with:
## sudo ros config set rancher.docker.tls false
# tls: true
## This isn't required if using VirtualBox
#network:
# interfaces:
# eth0:
# # Just to keep static IP
# address: 192.168.2.250/24
# gateway: 192.168.2.1
# mtu: 1500
# dhcp: false
dns:
nameservers:
- 8.8.8.8
- 8.8.4.4
ssh_authorized_keys:
# This is a public key. Use the equivalent private key when making a Putty connection
- ssh-rsa <paste public key here>