Skip to content

Instantly share code, notes, and snippets.

@botchagalupe
Created January 26, 2011 15:02
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save botchagalupe/796787 to your computer and use it in GitHub Desktop.
Save botchagalupe/796787 to your computer and use it in GitHub Desktop.
Rundeck with Chef

Make sure the EC2 instance for the Rundeck server has ports 4440 and 4443

Get the JAR files from github

wget https://github.com/downloads/dtolabs/rundeck/rundeck-launcher-1.1.0.jar --no-check-certificate

Install Java

sudo apt-get install openjdk-6-jre 

Update the local account .profile

export RDECK_BASE=$HOME/rundeck; 
ulimit -n 65535 

Create the directory for the installation.

mkdir -p $RDECK_BASE 

Copy the launcher jar to the installation directory.

cp rundeck-launcher-1.1.0.jar $RDECK_BASE

Change directory and run the jar (first time). This first time step installs all the additional files and commands.

cd $RDECK_BASE    
java -jar rundeck-launcher-1.1.0.jar

Wait for the Started message.

2010-11-19 13:35:51.127::INFO:  Started SocketConnector@0.0.0.0:4440

Update your shell environment

PATH=$PATH:$RDECK_BASE/tools/bin
MANPATH=$MANPATH:$RDECK_BASE/docs/man

Stop and restart the Rundeck server via the command line....

$RDECK_BASE/server/sbin/rundeckd start

Install the chef-rundeck gem

sudo gem install chef-rundeck

Start the chef-rundeck server

sudo -b chef-rundeck -c /etc/chef/client.rb -u root -w https://manage.opscode.com/

Add

project.resources.url = http://localhost:9980
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment