Created
December 15, 2015 18:20
-
-
Save flowstate/255f241b764440d2018c to your computer and use it in GitHub Desktop.
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
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 |
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
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' |
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
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 |
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
--- | |
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