-
Notifications
You must be signed in to change notification settings - Fork 172
/
Copy pathrainbow.yml
47 lines (42 loc) · 1.25 KB
/
rainbow.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#cloud-config
hostname: rainbow
manage_etc_hosts: true
apt_preserve_sources_list: true
users:
- name: pirate
primary-group: users
shell: /bin/bash
sudo: ALL=(ALL) NOPASSWD:ALL
groups: users,docker,adm,dialout,audio,plugdev,netdev,video
ssh-import-id: None
lock_passwd: true
ssh-authorized-keys:
- ssh-rsa AAAA....NN # insert your SSH public key ~/.ssh/id_rsa.pub here
package_upgrade: false
write_files:
- content: |
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
path: /etc/network/interfaces.d/wlan0
- content: |
country=de
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="YOUR-SSID" # insert your SSID here
psk="YOUR-PRESHARED-KEY" # insert your PSK here
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP
auth_alg=OPEN
}
path: /etc/wpa_supplicant/wpa_supplicant.conf
# These commands will be ran once on first boot only
runcmd:
- 'systemctl restart avahi-daemon'
- 'ifup wlan0'
- 'sleep 10'
- 'docker swarm init'
- 'docker service create --name rainbow --mount type=bind,src=/sys,dst=/sys sealsystems/rainbow:1.0.0'