Deploy a basic LAMP Stack + Testlink to Cloud Servers (Virtual machines or Bare Metal) with Chef Solo
HowTo
https://github.com/richardsonlima/hashId-Chef-LAMP-TestLink
Cookbook install and configure: Apache2 + PHP5 + MySQL5 + Testlink Open Source Test Management - http://testlink.org
Test: Ubuntu Server 14.04.4 LTS
Database Name: testlink (user: testlink_usr / pass: m6w2msmV) Root MySQL password: P11xhDNhs4hmw App dir: /var/www/html/testlink chef-solo is an open source version of the chef-client that allows using cookbooks with nodes without requiring access to a Chef server. chef-solo runs locally and requires that a cookbook
See this in action::
- Auto install - Fully Automated LAMP with Chef Solo - Works fine 😎
curl -L https://raw.githubusercontent.com/richardsonlima/hashId-Chef-LAMP-TestLink/master/bootstrap.sh | bash
- HandsOn install - Fully Automated LAMP with Chef Solo - Works fine 😎
Install GIT Client sudo apt-get update && sudo apt-get install git-core Install Chef Solo curl -L https://www.opscode.com/chef/install.sh | sudo bash >> ~/.bash_profile && source ~/.bash_profile sudo chef-solo -v Download and configure CHEF-REPO structure wget http://github.com/opscode/chef-repo/tarball/master tar -zxvf master sudo mkdir -p /opt/chef-repo sudo mv chef-chef-repo-*/* /opt/chef-repo/ sudo mkdir /opt/chef-repo/.chef Configure cookbook path (/opt/chef-repo/.chef/knife.rb) - Add line sudo touch /opt/chef-repo/.chef/knife.rb sudo chown `whoami`: /opt/chef-repo/.chef/knife.rb sudo cat << EOF > /opt/chef-repo/.chef/knife.rb cookbook_path [ '/opt/chef-repo/cookbooks' ] EOF sudo chown root: /opt/chef-repo/.chef/knife.rb Configure solo.rb (/opt/chef-repo/solo.rb) - Add lines sudo touch /opt/chef-repo/solo.rb sudo chown `whoami`: /opt/chef-repo/solo.rb sudo cat << EOF > /opt/chef-repo/solo.rb file_cache_path "/opt/chef-solo" cookbook_path "/opt/chef-repo/cookbooks" EOF sudo chown root: /opt/chef-repo/solo.rb Download cookbook sudo git clone https://github.com/richardsonlima/hashId-Chef-LAMP-TestLink.git -l /opt/chef-repo/cookbooks/testlink Create your json (/opt/chef-repo/testlink.json) - Add line sudo touch /opt/chef-repo/testlink.json sudo chown `whoami`: /opt/chef-repo/testlink.json sudo cat << EOF > /opt/chef-repo/testlink.json { "run_list": [ "recipe[testlink]" ] } EOF sudo chown root: /opt/chef-repo/testlink.json Execute CHEF-SOLO sudo /usr/bin/chef-solo -c /opt/chef-repo/solo.rb -j /opt/chef-repo/testlink.json Enabling default site and reload apache2 sudo a2ensite 000-default.conf && sudo a2enmod headers && sudo service apache2 reload Status services ps -ef | grep apache |grep -v grep && ps -ef|grep mysql|grep -v grep Test APP: lynx http://localhost/testlink















