create user that login in by ssh key, and can run sudo without password.
Install:
- install ec2 api tool.
- install chef
- install knife_solo
- open config.sh, config it based on your environment.
Script files:
-
ec2_create_instance.sh Create a ec2 instance by ec2 api tool, and will create a user named "focus" on new instance, you should login to server by focus user. The login process is too simple, just input below command:
-
ec2_prepare.sh shurtcut for knife prepare.
-
ec2_cook.sh shurtcut for knife cook
Nodes/*.json :
-
default.json This file will be used to default running list to node, if you want to change the running list for special node, I recommend you cope the default.json to your special node's json, and change the content in your node's json directly.
-
user.json Just ignore it if you don't have new requirements for user installation.