Skip to content

Instantly share code, notes, and snippets.

@jhgaylor
Created February 16, 2018 03:23
Show Gist options
  • Save jhgaylor/39154e6ac55092c7add56a4daf67c777 to your computer and use it in GitHub Desktop.
Save jhgaylor/39154e6ac55092c7add56a4daf67c777 to your computer and use it in GitHub Desktop.
#cloud-config
# vim: syntax=yaml
#
# The current version of cloud-init in the Hypriot rpi-64 is 0.7.9
# When dealing with cloud-init, it is SUPER important to know the version
# I have wasted many hours creating servers to find out the module I was trying to use wasn't in the cloud-init version I had
# Documentation: http://cloudinit.readthedocs.io/en/0.7.9/index.html
# Set your hostname here, the manage_etc_hosts will update the hosts file entries as well
hostname: fml-this-is-dumb-despite-seeming-brilliant
manage_etc_hosts: true
# This expands the root volume to the entire SD Card, similar to what the raspbian images did on first boot.
# This doesn't seem to be required, its more here for posterity in understanding what is going on
resize_rootfs: true
growpart:
mode: auto
devices: ["/"]
ignore_growroot_disabled: false
# You could modify this for your own user information
users:
- name: starfleet
gecos: "The Boss"
sudo: ALL=(ALL) NOPASSWD:ALL
shell: /bin/bash
groups: users,docker,video
lock_passwd: true
ssh-authorized-keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDQZyoq73t6k/W7XMxatDR4KOwIBRGJZe8iHvbJjhzsRVghH0D1Xxi0jzQDppRMPgsxt7AWM2YC0x+tBw7TUaPerAAfOg89qLv5LPqM32M5IOWwCCbDPIBvmMMOMdnRXjjTePqWkhGshpitgzvNstoR5U7LCTd/6f/c4gGffPa/SbAdfceMdEgZ2VHKEmCJnYoeMxeicOyDuVuI1U/cRflG2jjpNZl/jCq6iPehyJluq9ZdQ6uoXQvKmjJf74Q9mIZiaP+agqChmNZCDHx7EhQMUuc7kFGVbWFn7B/D/xYsPVPvO5YOZOichLcLqgWEEE62hQ9EsoK2jnLFPTmuKK9x jake@nesteddata.com
chpasswd: { expire: false }
# Update our packages on first boot, saves us some time
package_update: true
package_upgrade: true
package_reboot_if_required: true
# Install any additional packages you need here
# I add ntp because.. without it, rpi is useless in keeping track of time.
packages:
- ntp
# Set the locale of the system
locale: "en_US.UTF-8"
# Set the timezone
# Value of 'timezone' must exist in /usr/share/zoneinfo
timezone: "America/Denver"
# These commands will be ran once on first boot only
# runcmd:
# - [ /opt/install-k8s.sh ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment