Skip to content

reusr1/cq-dev-server-provision

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GOAL

Provision a cq dev server with the following software pre-installed

Java OpenJDK
Tomcat Latest
Git
SVN Client
SVN Server
OpenLDAP
Nexus
and last but not least CQ

This project uses Chef Solo to do the provisioning. Currently onlu Ubuntu 12.04 and CentOS 6 are supported which at the time of developemnt are the latest LTS versions of the respective OSs.

The bootstrap script for ubuntu is modified from the following gist:
https://gist.github.com/chrismdp/1026628

For bootstraping CentOS 6, use:

Prerequisites

Its assumed that you have access to a barebones server and the server can connect to the internet. Github requires you to authenticate with them. So you would first need to request to add your public SSH key to the github to be able to clone this repository. If you need steps to generate SSH keys on the barebones Linux server, here are the steps:
https://help.github.com/articles/generating-ssh-keys

Provision

After the ssh key is added, just copy the bootstrap script, (For bootstapping Ubuntu 12.04, use: bootstrap_chef.sh and For CentOS Use: foo-bar.sh) to the home folder of the user and run it.

You will have to set execute flags on the file. e.g. chmod 755 bootstrap_chef.sh

This would update and install all the nessesary software. The script would need you to confirm adding github.com to known hosts list. After the script is done executing succesfully it will print a chef-solo command to run. Please copy and paste that command in the terminal and run it.

Tomcat
You can verify that the tomcat is running by accessing it at http://ip-address:8080/
Git Server
Login with your username and password to the server. Git server deamon should already be started when the server starts.

$ cd /srv/git
$ mkdir repo_name.git
$ cd repo_name.git
$ git --bare init
This creates a new repo on the git server.

In your local dev environment run git clone ssh://username@servername/srv/git/repo_name.git (where repo_name.git is your actual app repo directory)
· cd into repo_name locally
· Commit your local code
· git push origin master

About

CQ Dev Server provision chef script

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published