Skip to content

Commit

Permalink
Merge pull request #42 from radify/various-fixes
Browse files Browse the repository at this point in the history
Various fixes and improvements
  • Loading branch information
gavD committed Sep 8, 2015
2 parents 3d096f8 + 877d5cc commit 96a146e
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/Generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
.then(getReader('myApp.pem.mustache')).then(render).then(getWriter('ansible/' + answers.appPem))
.finally(function() {
fs.chmod('ansible/provision.sh', '0744');
fs.chmod('ansible/inventory/ec2.py', '0744');
fs.chmod('ansible/inventory/ec2.py', '0755');
})
.catch(handler);
}
Expand Down
3 changes: 2 additions & 1 deletion lib/questions.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,9 @@
}, {
type: 'input',
name: 'keypair',
message: 'What is the name of your keypair? This will be used to look for {name}.pem',
message: 'What name does AWS use to refer to your keypair?',
default: function(answers) {
if (!answers.keypair) { return 'ansible'; }
return answers.appName;
}
}, {
Expand Down
1 change: 0 additions & 1 deletion lib/templates/other.mustache

This file was deleted.

2 changes: 1 addition & 1 deletion lib/templates/provision.sh.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ ansible-playbook tag-old-nodes.yaml --limit tag_Environment_{{ environment }}
ansible-playbook immutable.yaml -vv

# Now terminate any instances with tag "old"
ansible-playbook destroy-old-nodes.yaml --limit tag_{{ tag_old_app }}_True
ansible-playbook destroy-old-nodes.yaml --limit tag_{{ tag_old_app }}_True || true
2 changes: 0 additions & 2 deletions lib/templates/template.mustache

This file was deleted.

0 comments on commit 96a146e

Please sign in to comment.