Update static.yml #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cloud-config | |
# vim: syntax=yaml | |
# | |
# Set your hostname here, the manage_etc_hosts will update the hosts file entries as well | |
hostname: static | |
manage_etc_hosts: true | |
# don't write debian.org into apt mirrors | |
apt_preserve_sources_list: true | |
# You could modify this for your own user information | |
users: | |
- name: pirate | |
gecos: "Hypriot Pirate" | |
sudo: ALL=(ALL) NOPASSWD:ALL | |
shell: /bin/bash | |
groups: users,docker,video | |
plain_text_passwd: hypriot | |
lock_passwd: false | |
ssh_pwauth: true | |
chpasswd: { expire: false } | |
package_upgrade: false | |
# Static IP address | |
write_files: | |
- content: | | |
persistent | |
# Generate Stable Private IPv6 Addresses instead of hardware based ones | |
slaac private | |
# static IP configuration: | |
interface eth0 | |
static ip_address=192.168.1.31/24 | |
# static ip6_address=fd51:42f8:caae:d92e::ff/64 | |
static routers=192.168.1.1 | |
static domain_name_servers=192.168.1.1 8.8.8.8 | |
path: /etc/dhcpcd.conf | |
# These commands will be ran once on first boot only | |
runcmd: | |
# Pickup the hostname changes | |
- 'systemctl restart avahi-daemon' | |
# Activate WiFi interface | |
# - 'ifup wlan0' |