Skip to content

Instantly share code, notes, and snippets.

@pbosetti
Last active May 14, 2024 11:16
Show Gist options
  • Save pbosetti/3742ea64dbf76b6a6c177ec602208aa7 to your computer and use it in GitHub Desktop.
Save pbosetti/3742ea64dbf76b6a6c177ec602208aa7 to your computer and use it in GitHub Desktop.
cloud-init for C-CNC-ready virtual machines
#cloud-config
users:
- default
- name: ccnc
gecos: C-CNC User
groups: sudo
shell: /bin/bash
sudo: ALL=(ALL) NOPASSWD:ALL
passwd: $6$rounds=4096$zHeUceWF8g9fEz1H$6bMoNJcKX4bt9rcYIHKEG2TjoLCHRMDwYsz98NEI3N7UgexTNv2XhMvvc4qrnky.ScBpSe68WDoP0FXXHJRTL.
write_files:
- path: /tmp/hello.txt
content: 'Funziona!'
owner: root:root
encoding: text/plain
append: false
defer: false
packages:
- build-essential
- make
- cmake
- cmake-curses-gui
- clang
- clang-format
- lldb
- libgsl-dev
- ruby
- figlet
- sshfs
- graphviz
- gnuplot
- libmosquitto-dev
runcmd:
- [gem, install, gv_fsm]
- [update-alternatives, --set, c++, /usr/bin/clang++]
- [update-alternatives, --set, cc, /usr/bin/clang]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment