To start chef-deck
sudo -b chef-rundeck -c /etc/chef/client.rb -u rundeck -w https://manage.opscode.com/
To setup AWSDeck
sudo cp -r * /usr/lib/cgi-bin
First install the Workbench instance
From the original chef-repo
~/chef-repo/scripts/wp1.sh workbench 01
After the Workbench image is created do the following
cd ~
Untar the following files:
chef-repo.tar dotchef.tar scripts.tar
Run the following setup commandsL
rundeck@ip-10-38-17-12:~$ cd ~
rundeck@ip-10-38-17-12:~/.chef$ cat ~/.chef/dotbash >> ~/.bashrc
rundeck@ip-10-38-17-12:~/.chef$ cd /var/rundeck/
rundeck@ip-10-38-17-12:~$ ./runonce.sh
After this msg do a cntrl-c to break out
2011-06-02 23:30:02.160:/:INFO: Initializing Spring FrameworkServlet 'grails'
2011-06-02 23:30:02.179::INFO: Started [email protected]:4440
rd-project -p wordpress-demo --action create
vi /var/rundeck/projects/wordpress-demo/etc/project.properties
add this line:
project.resources.url = http://localhost:9980
rundeck@ip-10-38-17-12:/var/rundeck$ ./rundeck.sh start
rundeck@ip-10-38-17-12:/var/rundeck$ ./chefdeck.sh
curl http://localhost:9980
Note: If there are any orphaned node objects in the knife node list chefdeck will choke in xml_escape trying to parse the nill fields.
After the services are up you can use the "~/scripts/wp2.sh" script to fill up all the demo instances.