Permalink
Browse files

cleanup

  • Loading branch information...
1 parent 4dc9290 commit ad6ca0145e77ef3dde930e79029ac7c258d1ec47 @mrdavidlaing committed Feb 24, 2012
@@ -0,0 +1,32 @@
+{
+ "name": "nodejs",
+ "description": "Installs/Configures nodejs",
+ "long_description": "= DESCRIPTION:\n\nInstalls Node.JS from source.\n\n= REQUIREMENTS:\n\n== Platform:\n\nTested on Debian Lenny. Should work fine on Ubuntu, Centos, etc.\n\n== Cookbooks:\n\nOpscode cookbooks (http://github.com/opscode/cookbooks/tree/master)\n\n* build-essential\n\n= ATTRIBUTES:\n\n* nodejs[:version] - release version of node to install\n* nodejs[:dir] - location where node will be installed, default /usr/local\n* nodejs[:npm] - version of npm to install\n\n= USAGE:\n\nInclude the nodejs recipe to install node from source on your system:\n\n include_recipe \"nodejs\"\n\nInclude the npm recipe to install npm:\n \n include_recipe \"nodejs::npm\"\n\n= LICENSE and AUTHOR:\n\nAuthor:: Marius Ducea (marius@promethost.com)\n\nCopyright:: 2010, Promet Solutions\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
+ "maintainer": "Promet Solutions",
+ "maintainer_email": "marius@promethost.com",
+ "license": "Apache 2.0",
+ "platforms": {
+ },
+ "dependencies": {
+ "build-essential": ">= 0.0.0"
+ },
+ "recommendations": {
+ },
+ "suggestions": {
+ },
+ "conflicting": {
+ },
+ "providing": {
+ },
+ "replacing": {
+ },
+ "attributes": {
+ },
+ "groupings": {
+ },
+ "recipes": {
+ "nodejs": "Installs Node.JS from source",
+ "nodejs::npm": "Installs npm - a package manager for node"
+ },
+ "version": "0.6.8"
+}
@@ -0,0 +1 @@
+{"domain": "", "name": "localhost", "roles": ["wordpress-in-a-box"], "recipes": [], "hostname": "localhost", "fqdn": "localhost", "role": ["wordpress-in-a-box"], "run_list": ["role[wordpress-in-a-box]"], "ipaddress": "127.0.0.1", "id": "localhost"}
@@ -0,0 +1 @@
+{"domain": "", "name": "wordpress-in-a-box-1", "roles": ["wordpress-in-a-box"], "recipes": [], "hostname": "wordpress-in-a-box-1", "fqdn": "wordpress-in-a-box-1", "role": ["wordpress-in-a-box"], "run_list": ["role[wordpress-in-a-box]"], "ipaddress": "192.168.1.70", "id": "wordpress-in-a-box-1"}
View
@@ -1,66 +0,0 @@
-#!/bin/sh
-##############################################################
-#
-# Author: Ruslan Khissamov, email: rrkhissamov@gmail.com
-#
-##############################################################
-# Add MongoDB Package
-echo 'Add MongoDB Package'
-echo "deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen" >> /etc/apt/sources.list
-apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
-echo 'MongoDB Package completed'
-# Update System
-echo 'System Update'
-apt-get -y update
-echo 'Update completed'
-# Install help app
-apt-get -y install libssl-dev git-core pkg-config build-essential curl gcc g++
-# Download & Unpack Node.js - v. 0.6.5
-echo 'Download Node.js - v. 0.6.5'
-mkdir /tmp/node-install
-cd /tmp/node-install
-wget http://nodejs.org/dist/v0.6.5/node-v0.6.5.tar.gz
-tar -zxf node-v0.6.5.tar.gz
-echo 'Node.js download & unpack completed'
-# Install Node.js
-echo 'Install Node.js'
-cd node-v0.6.5
-./configure && make && make install
-echo 'Node.js install completed'
-# Install Node Package Manager
-echo 'Install Node Package Manager'
-curl http://npmjs.org/install.sh | sudo sh
-echo 'NPM install completed'
-# Install Forever
-echo 'Install Forever'
-npm install forever -g
-echo 'Forever install completed'
-# Install Cloud9IDE
-echo 'Install Cloud9IDE'
-git clone git://github.com/ajaxorg/cloud9.git
-echo 'Cloud9IDE install completed'
-# Install MongoDB
-echo 'Install MongoDB'
-apt-get -y install mongodb-10gen
-echo 'MongoDB install completed.'
-# Install Redis
-echo 'Install Redis'
-cd /tmp
-mkdir redis && cd redis
-wget http://redis.googlecode.com/files/redis-2.4.2.tar.gz
-tar -zxf redis-2.4.2.tar.gz
-cd redis-2.4.2
-make && make install
-wget https://github.com/ijonas/dotfiles/raw/master/etc/init.d/redis-server
-wget https://github.com/ijonas/dotfiles/raw/master/etc/redis.conf
-mv redis-server /etc/init.d/redis-server
-chmod +x /etc/init.d/redis-server
-mv redis.conf /etc/redis.conf
-useradd redis
-mkdir -p /var/lib/redis
-mkdir -p /var/log/redis
-chown redis.redis /var/lib/redis
-chown redis.redis /var/log/redis
-update-rc.d redis-server defaults
-echo 'Redis install completed. Run "sudo /etc/init.d/redis-server start"'
-
@@ -0,0 +1,6 @@
+{
+ "ipaddress": "192.168.1.70",
+ "run_list": [
+ "role[wordpress-in-a-box]"
+ ]
+}
@@ -1,6 +1,6 @@
{
"ipaddress": "178.79.164.160",
"run_list": [
- "role[wordpress-in-a-box]"
+ "role[pressupbox-live]"
]
}
View
@@ -0,0 +1,44 @@
+{
+ "name": "pressupbox-live",
+ "chef_type": "role",
+ "json_class": "Chef::Role",
+ "description": "A all-in-one webserver customised for hosting wordpress",
+ "run_list": [
+ "recipe[apt]",
+ "recipe[unarchivers]",
+ "recipe[apparmor]",
+ "recipe[timezone]",
+ "recipe[hostname]",
+ "recipe[nginx::setup_add-vhosts-in-data]",
+ "recipe[mysql::server]",
+ "recipe[postfix]",
+ "recipe[php]",
+ "recipe[php::module_apc]",
+ "recipe[php::module_mysql]",
+ "recipe[apache2]",
+ "recipe[apache2::mod_php5]",
+ "recipe[nginx::install_from_package]",
+ "recipe[nginx::setup_reverse_proxy_cache]",
+ "recipe[app_containers]"
+ ],
+ "override_attributes": {
+ "mysql": {
+ "data_dir" : "/data/mysql",
+ "server_root_password": "QzEoS8z4UjN0dIQArowX",
+ "bind-address": "127.0.0.1"
+ }
+ },
+ "default_attributes": {
+ "ec2": {
+ },
+ "apache" : {
+ "listen_ports" : [ "81","444" ]
+ },
+ "php5_fpm" : {
+ "listen_socket" : 100
+ },
+ "phpmyadmin": {
+ "home": "/var/www/phpmyadmin"
+ }
+ }
+}
@@ -2,43 +2,14 @@
"name": "wordpress-in-a-box",
"chef_type": "role",
"json_class": "Chef::Role",
- "description": "A all-in-one webserver customised for hosting wordpress",
+ "description": "Depreciated in favour of pressupbox-live",
"run_list": [
- "recipe[nginx::install_from_package]",
- "recipe[nginx::setup_add-vhosts-in-data]",
- "recipe[mysql::server]",
- "recipe[php5::default]",
- "recipe[php5::fpm]",
- "recipe[php5::fpmenable_nginx]",
- "recipe[phpmyadmin::install]",
- "recipe[rsync]",
- "recipe[postfix]"
+
],
"override_attributes": {
- "mysql": {
- "data_dir" : "/data/mysql",
- "server_root_password": "QzEoS8z4UjN0dIQArowX",
- "bind-address": "127.0.0.1"
- }
+
},
"default_attributes": {
- "ec2": {
- },
- "php5" : {
- "module_list": "mysql gd",
- "server_usage": "dedicated"
- },
- "php5_fpm" : {
- "tunable" : {
- "max_children": 60,
- "start_servers": 10,
- "min_spare": 10,
- "max_spare": 20,
- "max_requests": 1000
- }
- },
- "phpmyadmin": {
- "home": "/var/www/phpmyadmin"
- }
+
}
-}
+}

0 comments on commit ad6ca01

Please sign in to comment.