Skip to content

Commit

Permalink
Various fixes and improvements
Browse files Browse the repository at this point in the history
* Fixes ec2.py permissions
* Deletes two wat files
* Improves provision.sh
* Improves keypair question
  • Loading branch information
John F. Mercer committed Aug 26, 2015
1 parent 631ca46 commit 877d5cc
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 877d5cc

Please sign in to comment.