Advertisement
Guest User

Untitled

a guest
Dec 15th, 2013
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. Using a fairly fresh install of SaltStack on an EC2 image.
  2.  
  3. /etc/salt/cloud.providers.d/ec2.conf reads:
  4.  
  5. providers:
  6. dev:
  7. provider: ec2
  8. minion:
  9. master: 10.185.216.72
  10. ssh_interface: private_ips
  11. id: "..."
  12. key: "..."
  13. private_key: /etc/salt/dev-app-east.pem
  14. keyname: dev-app-east
  15. securitygroup: dev
  16. location: us-east-1
  17. availability_zone: us-east-1a
  18. ssh_username: ubuntu
  19.  
  20. /etc/salt/cloud.profiles.d/ec2.conf reads:
  21.  
  22. base_ec2_box:
  23. provider: dev
  24. image: ami-c30360aa
  25. size: Micro Instance
  26. ssh_username: ubuntu
  27.  
  28. Creating an instance results in:
  29.  
  30. # salt-cloud -p base_ec2_box test.example.com
  31. [WARNING ] The function 'cloud_config()' defined in '/usr/lib/python2.7/dist-packages/saltcloud/config.py' is not yet using the new 'default_path' argument to `salt.config.load_config()`. As such, the 'SALT_CLOUD_CONFIG' environment variable will be ignored
  32. [WARNING ] The function 'cloud_providers_config()' defined in '/usr/lib/python2.7/dist-packages/saltcloud/config.py' is not yet using the new 'default_path' argument to `salt.config.load_config()`. As such, the 'SALT_CLOUD_PROVIDERS_CONFIG' environment variable will be ignored
  33. Usage: salt-cloud
  34.  
  35. salt-cloud: error: There's at least one cloud driver details under the 'providers' cloud provider alias which does not have the required 'provider' setting
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement