-
-
Save nesv/b521360925ba592ec934 to your computer and use it in GitHub Desktop.
salt-cloud configs
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
$ sudo salt-cloud -m /etc/salt/cloud.maps.d/test.map | |
[INFO ] salt-cloud starting | |
[INFO ] Applying map from '/etc/salt/cloud.maps.d/test.map'. | |
[INFO ] Starting new HTTPS connection (1): api.digitalocean.com | |
The following virtual machines are set to be created: | |
test-01 | |
Proceed? [N/y] y | |
... proceeding | |
[INFO ] Calculating dependencies for test-01 | |
[INFO ] Creating Cloud VM test-01 | |
[INFO ] Starting new HTTPS connection (1): api.digitalocean.com | |
[INFO ] Starting new HTTPS connection (1): api.digitalocean.com | |
[INFO ] Starting new HTTPS connection (1): api.digitalocean.com | |
[INFO ] Starting new HTTPS connection (1): api.digitalocean.com | |
[INFO ] Starting new HTTPS connection (1): api.digitalocean.com | |
[INFO ] Starting new HTTPS connection (1): api.digitalocean.com | |
[INFO ] Starting new HTTPS connection (1): api.digitalocean.com | |
[INFO ] Starting new HTTPS connection (1): api.digitalocean.com | |
[ERROR ] Error creating test-01 on DIGITAL_OCEAN | |
The following exception was thrown when trying to run the initial deployment: An error occurred while querying DigitalOcean. HTTP Code: 422 Error: u'{"id":"unprocessable_entity","message":"You specified an invalid image for Droplet creation."}' | |
[ERROR ] There was a query error: 'bool' object has no attribute 'pop' |
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
# Note, the image ID specified here, is retrieved by running | |
# $ salt-cloud --list-images=digitalocean | |
# | |
digitalocean-ubuntu-14-04-base: | |
provider: digitalocean | |
image: 12345678 | |
location: New York 3 | |
private_networking: True | |
minion: | |
master: my-salt-master.example.com | |
digitalocean-ubuntu-512: | |
extends: digitalocean-ubuntu-14-04-base | |
size: 512mb |
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
digitalocean-ubuntu-512: | |
- test-01 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment