Skip to content

Instantly share code, notes, and snippets.

@flowstate
Created December 15, 2015 18:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flowstate/255f241b764440d2018c to your computer and use it in GitHub Desktop.
Save flowstate/255f241b764440d2018c to your computer and use it in GitHub Desktop.
Ensure myapp-myinstance launch_config exists:
boto_lc.present:
- name: myapp-myinstance-lc
- image_id: ami-d05e75b8
- key_name: trendkite-master-052914
- security_groups:
- myapp
- instance_type: m3.large
- instance_monitoring: false
- profile: myprofile
- block_device_mappings:
- '/dev/xvda1':
size: 20
- cloud_init:
scripts:
'run_salt.sh': |
#!/bin/bash
echo "I ran!" >> /tmp/proof
Name: myapp-myinstance-lc
Result: False
Comment: An exception occurred in this state: Traceback (most recent call last):
File "/vol2/jenkins/jobs/salt-build/salt/salt/state.py", line 1657, in call
**cdata['kwargs'])
File "/vol2/jenkins/jobs/salt-build/salt/salt/loader.py", line 1581, in wrapper
return f(*args, **kwargs)
File "/usr/lib64/python2.6/contextlib.py", line 34, in __exit__
self.gen.throw(type, value, traceback)
File "/vol2/jenkins/jobs/salt-build/salt/salt/utils/context.py", line 48, in func_globals_inject
yield
File "/vol2/jenkins/jobs/salt-build/salt/salt/loader.py", line 1581, in wrapper
return f(*args, **kwargs)
File "/vol2/jenkins/jobs/salt-build/salt/salt/states/boto_lc.py", line 240, in present
keyid, profile)
File "/vol2/jenkins/jobs/salt-build/salt/salt/modules/boto_asg.py", line 518, in create_launch_configuration
for attribute, value in six.iteritems(attributes):
File "/vol2/jenkins/jobs/salt-build/salt/salt/ext/six.py", line 583, in iteritems
return iter(d.iteritems(**kw))
AttributeError: 'NoneType' object has no attribute 'iteritems'
Ensure myapp-myinstance launch_config exists:
boto_lc.present:
- name: myapp-myinstance-lc
- image_id: ami-d05e75b8
- key_name: trendkite-master-052914
- security_groups:
- myapp
- instance_type: m3.large
- instance_monitoring: false
- profile: myprofile
- block_device_mappings:
- '/dev/xvda1':
size: 20
- cloud_init:
scripts:
'run_salt.sh': |
#!/bin/bash
echo "I ran!" >> /tmp/proof
---
local:
Data failed to compile:
----------
Rendering SLS 'base:aws' failed: could not found expected ':'; line 32
---
[...]
#!/bin/bash
echo "I ran!" >> /tmp/proof
<======================
---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment