Skip to content

Instantly share code, notes, and snippets.

@gijzelaerr
Last active June 9, 2020 15:09
Show Gist options
  • Save gijzelaerr/18a9e4b867dcbdfb63c4f73874320845 to your computer and use it in GitHub Desktop.
Save gijzelaerr/18a9e4b867dcbdfb63c4f73874320845 to your computer and use it in GitHub Desktop.
1> Install salt on your system (including salt-cloud)
https://repo.saltstack.com/#ubuntu
2> make file /etc/salt/cloud.providers.d/surfsara.conf with content
surfsara:
xml_rpc: https://api.hpccloud.surfsara.nl/RPC2
user: YOUR_USERNAME
password: YOUR_PASSWORD
private_key: /home/YOUR_LOCAL_USER/.ssh/id_rsa
driver: opennebula
image: Ubuntu-18.04-Server (2020-04-01)
template: Ubuntu-18.04-Server (2020-04-01)
ssh_username: ubuntu
3> make file /etc/salt/cloud.profiles.d/basic.conf with content
basic:
provider: surfsara
4> make a mapfile (anywhere) with content:
basic:
- gijs_master:
make_master: True
- gijs_minion1
- gijs_minion3
5> run salt-cloud:
$ sudo salt-cloud -p basic -m mapfile -P
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment