Bootstraping Chef Server/Client with Sprinkle 0
I like very much Chef tool for server configuration. I think it’s very good tool and every company doing web development should use it to bootstrap or configure their servers. But the sad truth is that before you can use Chef you need to prepare the machine with manual typing and configuration. And that’s what I don’t want to do. So I decided to change that by automating the Chef bootstrap with Sprinkle.
1) Download the code:
1 | git clone git://github.com/lacomartincik/chef-bootstrap.git |
2) Have ready your server or virtual machine
3) Create config file
1 | cp config/config.yml.example config/config.yml |
4) Set up the config with IP and user credentials
1 2 3 4 5 6 7 8 9 10 | server: host: chef.server.local ip: 192.168.0.1 user: deploy password: deploy client: ip: 192.168.0.2 user: deploy password: deploy |
5) Run server/client bootstrap
1 | ./bin/chef-server |
1 | ./bin/chef-client |
Hope you find it useful. Any comments, recommendations always welcomed!