Skip to content

Instantly share code, notes, and snippets.

@botchagalupe
Created June 3, 2011 13:38
Show Gist options
  • Save botchagalupe/1006355 to your computer and use it in GitHub Desktop.
Save botchagalupe/1006355 to your computer and use it in GitHub Desktop.
Rundeck Demo Stup

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 SocketConnector@0.0.0.0: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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment