Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ cat /etc/salt/files/base/env_ops.sls:
- ops-repo-master:
- cloud.present:
- - name: ops-repo-master
- - profile: ops_box_micro
- - provider: ops
- $ cat /etc/salt/cloud.profiles.d/ops.conf
- ops_box_micro:
- provider: ops
- image: ami-c30360aa
- size: Micro Instance
- ssh_username: ubuntu
- rename_on_destroy: True
- delvol_on_destroy: True
- There's a matching ops provider in /etc/salt/cloud.providers.d which I won't quote here as it has AWS keys etc.
- This works:
- $ salt-run cloud.profile ops_box_micro ops-repo-master
- ...stuff
- This FAILS:
- $ salt-run state.sls env_ops
- [ERROR ] Failed to create VM ops-repo-master. Configuration value 'image' needs to bt
- Traceback (most recent call last):
- File "/usr/local/lib/python2.7/dist-packages/salt/cloud/__init__.py", line 802, in ce
- output = self.clouds[func](vm_)
- File "/usr/local/lib/python2.7/dist-packages/salt/cloud/clouds/ec2.py", line 907, ine
- image_id = vm_['image']
- KeyError: 'image'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement