From 0afe96d13c88370002f3f7dcea68b8d7c3e35e30 Mon Sep 17 00:00:00 2001 From: Jack Lai Date: Sat, 27 Feb 2016 22:28:37 +0800 Subject: [PATCH] create README.md --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..a6ef8ae --- /dev/null +++ b/README.md @@ -0,0 +1,19 @@ +# chef-vagrant + +## Usage + +Clone and edit files: +* data_bags/users/deployer.json.example +* site-cookbooks/mysql_database/recipes/default.rb.example + +Initialize the remote node, also update chef and set node name: +``` +$ knife zero bootstrap vagrant@192.168.33.10 --bootstrap-install-command "curl chef.sh | sudo bash" --no-converge -N vagrant +``` + +Run Chef-Client to update for node: +``` +$ knife zero converge "name:vagrant" +``` + +Then everything is done!