You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@climate.apache.org by pr...@apache.org on 2013/08/27 07:35:49 UTC

svn commit: r1517753 [23/33] - in /incubator/climate/branches/rcmet-2.1.1: ./ src/ src/main/ src/main/python/ src/main/python/bin/ src/main/python/docs/ src/main/python/docs/_static/ src/main/python/docs/_templates/ src/main/python/rcmes/ src/main/pyth...

Propchange: incubator/climate/branches/rcmet-2.1.1/src/main/ui/test/lib/angular/angular-scenario.js
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/climate/branches/rcmet-2.1.1/src/main/ui/test/lib/angular/version.txt
URL: http://svn.apache.org/viewvc/incubator/climate/branches/rcmet-2.1.1/src/main/ui/test/lib/angular/version.txt?rev=1517753&view=auto
==============================================================================
--- incubator/climate/branches/rcmet-2.1.1/src/main/ui/test/lib/angular/version.txt (added)
+++ incubator/climate/branches/rcmet-2.1.1/src/main/ui/test/lib/angular/version.txt Tue Aug 27 05:35:42 2013
@@ -0,0 +1 @@
+1.0.5

Propchange: incubator/climate/branches/rcmet-2.1.1/src/main/ui/test/lib/angular/version.txt
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/climate/branches/rcmet-2.1.1/src/main/ui/test/unit/controllersSpec.js
URL: http://svn.apache.org/viewvc/incubator/climate/branches/rcmet-2.1.1/src/main/ui/test/unit/controllersSpec.js?rev=1517753&view=auto
==============================================================================
--- incubator/climate/branches/rcmet-2.1.1/src/main/ui/test/unit/controllersSpec.js (added)
+++ incubator/climate/branches/rcmet-2.1.1/src/main/ui/test/unit/controllersSpec.js Tue Aug 27 05:35:42 2013
@@ -0,0 +1,44 @@
+'use strict';
+
+/* jasmine specs for controllers go here */
+
+describe('RCMES Controllers', function() {
+
+	describe('ParameterSelectCtrl', function() {
+		it('should create a ParameterSelectCtrl with 0 datasets', function() {
+			var scope = {},
+				ctrl = new ParameterSelectCtrl(scope);
+
+				expect(scope.numberOfDatasets).toBe(0);
+		});
+
+		it('should not activate controls unless there are at least 2 datasets', function() {
+			var scope = {},
+				ctrl = new ParameterSelectCtrl(scope);
+
+				// Test default case of 0 datasets
+				expect(scope.shouldDisableControls()).toBe(true);
+
+				// Push up to the minimum number of datasets and test validity
+				scope.numberOfDatasets = 2;
+				expect(scope.shouldDisableControls()).toBe(false);
+		});
+	});
+
+	describe('ObservationSelectCtrl', function() {
+		it('should initialize observation variable parameters correctly', function() {
+			var scope = {},
+				ctrl = new ObservationSelectCtrl(scope);
+
+				expect(scope.params.length).toBe(1);
+				expect(scope.lats.length).toBe(1);
+				expect(scope.lons.length).toBe(1);
+				expect(scope.times.length).toBe(1);
+
+				expect(scope.params[0]).toBe("Please select a file above");
+				expect(scope.lats[0]).toBe("Please select a file above");
+				expect(scope.lons[0]).toBe("Please select a file above");
+				expect(scope.times[0]).toBe("Please select a file above");
+		});
+	});
+});

Propchange: incubator/climate/branches/rcmet-2.1.1/src/main/ui/test/unit/controllersSpec.js
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/climate/branches/rcmet-2.1.1/src/main/ui/test/unit/directivesSpec.js
URL: http://svn.apache.org/viewvc/incubator/climate/branches/rcmet-2.1.1/src/main/ui/test/unit/directivesSpec.js?rev=1517753&view=auto
==============================================================================
--- incubator/climate/branches/rcmet-2.1.1/src/main/ui/test/unit/directivesSpec.js (added)
+++ incubator/climate/branches/rcmet-2.1.1/src/main/ui/test/unit/directivesSpec.js Tue Aug 27 05:35:42 2013
@@ -0,0 +1,36 @@
+'use strict';
+
+describe('directives', function() {
+	beforeEach(module('rcmes'));
+
+	// Testing Leaflet map directive
+	/*
+	describe('Testing Leaflet map directive', function() {
+		it('should create the leaflet dir for proper injection into the page', function() {
+			inject(function($compile, $rootScope) {
+				var element = $compile('<sap id="map"></sap>')($rootScope);
+				expect(element.className).toBe('leaflet-container leaflet-fade-anim');
+			})
+		});
+	});
+	//*/
+	
+	// Testing the Bootstrap Modal directive
+	describe('bootstrap-modal directive', function() {
+		it('should create a div element of the correct form', function() {
+			inject(function($compile, $rootScope) {
+				var element = $compile('<bootstrap-modal modal-id="testmodal"></bootstrap-modal>')($rootScope);
+				expect(element.hasClass("modal")).toBeTruthy();
+				expect(element.hasClass("hide")).toBeTruthy();
+				expect(element.attr("id")).toEqual('{{modalId}}');
+			});
+		});
+
+		it('should properly wrap the interior html content' , function() {
+			inject(function($compile, $rootScope) {
+				var element = $compile('<bootstrap-modal modal-id="testmodal"><h3>Hello</h3></bootstrap-modal>')($rootScope);
+				expect(element.html()).toEqual("<div ng-transclude=\"\"><h3 class=\"ng-scope\">Hello</h3></div>");
+			})
+		});
+	});
+});

Propchange: incubator/climate/branches/rcmet-2.1.1/src/main/ui/test/unit/directivesSpec.js
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/climate/branches/rcmet-2.1.1/src/main/ui/test/unit/filtersSpec.js
URL: http://svn.apache.org/viewvc/incubator/climate/branches/rcmet-2.1.1/src/main/ui/test/unit/filtersSpec.js?rev=1517753&view=auto
==============================================================================
--- incubator/climate/branches/rcmet-2.1.1/src/main/ui/test/unit/filtersSpec.js (added)
+++ incubator/climate/branches/rcmet-2.1.1/src/main/ui/test/unit/filtersSpec.js Tue Aug 27 05:35:42 2013
@@ -0,0 +1,22 @@
+'use strict';
+
+/* jasmine specs for filters go here */
+
+/* Example code for filter tests
+ *
+describe('filter', function() {
+  beforeEach(module('myApp.filters'));
+
+
+  describe('interpolate', function() {
+    beforeEach(module(function($provide) {
+      $provide.value('version', 'TEST_VER');
+    }));
+
+
+    it('should replace VERSION', inject(function(interpolateFilter) {
+      expect(interpolateFilter('before %VERSION% after')).toEqual('before TEST_VER after');
+    }));
+  });
+});
+*/

Propchange: incubator/climate/branches/rcmet-2.1.1/src/main/ui/test/unit/filtersSpec.js
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/climate/branches/rcmet-2.1.1/src/main/ui/test/unit/servicesSpec.js
URL: http://svn.apache.org/viewvc/incubator/climate/branches/rcmet-2.1.1/src/main/ui/test/unit/servicesSpec.js?rev=1517753&view=auto
==============================================================================
--- incubator/climate/branches/rcmet-2.1.1/src/main/ui/test/unit/servicesSpec.js (added)
+++ incubator/climate/branches/rcmet-2.1.1/src/main/ui/test/unit/servicesSpec.js Tue Aug 27 05:35:42 2013
@@ -0,0 +1,17 @@
+'use strict';
+
+/* jasmine specs for services go here */
+
+/* Example code for service tests
+ *
+describe('service', function() {
+  beforeEach(module('myApp.services'));
+
+
+  describe('version', function() {
+    it('should return current version', inject(function(version) {
+      expect(version).toEqual('0.1');
+    }));
+  });
+});
+*/

Propchange: incubator/climate/branches/rcmet-2.1.1/src/main/ui/test/unit/servicesSpec.js
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/climate/branches/rcmet-2.1.1/src/main/vm/build/Vagrantfile
URL: http://svn.apache.org/viewvc/incubator/climate/branches/rcmet-2.1.1/src/main/vm/build/Vagrantfile?rev=1517753&view=auto
==============================================================================
--- incubator/climate/branches/rcmet-2.1.1/src/main/vm/build/Vagrantfile (added)
+++ incubator/climate/branches/rcmet-2.1.1/src/main/vm/build/Vagrantfile Tue Aug 27 05:35:42 2013
@@ -0,0 +1,110 @@
+# -*- mode: ruby -*-
+# vi: set ft=ruby :
+
+## ----------------------------------------------------------------------
+## Regional Climate Model Evaluation System - Toolkit Virtual Machine
+## 
+## This Vagrantfile, in combination with a set of Chef cookbooks for RCMES,
+## will generate a fully-functioning virtual machine containing the 
+## RCMES Python libraries, the RCMET web interface wizards, as well as
+## documentation and user manuals to help users acclimate to RCMES.
+##
+## @author ahart
+## ----------------------------------------------------------------------
+
+Vagrant::Config.run do |config|
+  # All Vagrant configuration is done here. The most common configuration
+  # options are documented and commented below. For a complete reference,
+  # please see the online documentation at vagrantup.com.
+
+  # Every Vagrant virtual environment requires a box to build off of.
+  config.vm.box = "lucid32"
+
+  # The url from where the 'config.vm.box' box will be fetched if it
+  # doesn't already exist on the user's system.
+  # config.vm.box_url = "http://domain.com/path/to/above.box"
+
+  # Boot with a GUI so you can see the screen. (Default is headless)
+  # config.vm.boot_mode = :gui
+
+  # Assign this VM to a host-only network IP, allowing you to access it
+  # via the IP. Host-only networks can talk to the host machine as well as
+  # any other machines on the same network, but cannot be accessed (through this
+  # network interface) by any external networks.
+  # config.vm.network :hostonly, "192.168.33.10"
+
+  # Assign this VM to a bridged network, allowing you to connect directly to a
+  # network using the host's network device. This makes the VM appear as another
+  # physical device on your network.
+  # config.vm.network :bridged
+
+  # Forward a port from the guest to the host, which allows for outside
+  # computers to access the VM, whereas host only networking does not.
+  # config.vm.forward_port 80, 8080
+
+  # Share an additional folder to the guest VM. The first argument is
+  # an identifier, the second is the path on the guest to mount the
+  # folder, and the third is the path on the host to the actual folder.
+  # config.vm.share_folder "v-data", "/vagrant_data", "../data"
+
+  # Enable provisioning with Puppet stand alone.  Puppet manifests
+  # are contained in a directory path relative to this Vagrantfile.
+  # You will need to create the manifests directory and a manifest in
+  # the file base.pp in the manifests_path directory.
+  #
+  # An example Puppet manifest to provision the message of the day:
+  #
+  # # group { "puppet":
+  # #   ensure => "present",
+  # # }
+  # #
+  # # File { owner => 0, group => 0, mode => 0644 }
+  # #
+  # # file { '/etc/motd':
+  # #   content => "Welcome to your Vagrant-built virtual machine!
+  # #               Managed by Puppet.\n"
+  # # }
+  #
+  # config.vm.provision :puppet do |puppet|
+  #   puppet.manifests_path = "manifests"
+  #   puppet.manifest_file  = "base.pp"
+  # end
+
+  # Enable provisioning with chef solo, specifying a cookbooks path, roles
+  # path, and data_bags path (all relative to this Vagrantfile), and adding 
+  # some recipes and/or roles.
+  #
+  config.vm.provision :chef_solo do |chef|
+    chef.cookbooks_path = "../src/cookbooks"
+    chef.add_recipe("vagrant_main")
+  end
+
+  # Change the following to "true" to auto-check that the version of Guest Additions
+  # matches the version of your VirtualBox install. For production this is a GOOD
+  # idea, but it increases the build time considerably, so for development it is 
+  # turned off.
+  config.vbguest.auto_update = false;
+
+  # Enable provisioning with chef server, specifying the chef server URL,
+  # and the path to the validation key (relative to this Vagrantfile).
+  #
+  # The Opscode Platform uses HTTPS. Substitute your organization for
+  # ORGNAME in the URL and validation key.
+  #
+  # If you have your own Chef Server, use the appropriate URL, which may be
+  # HTTP instead of HTTPS depending on your configuration. Also change the
+  # validation key to validation.pem.
+  #
+  # config.vm.provision :chef_client do |chef|
+  #   chef.chef_server_url = "https://api.opscode.com/organizations/ORGNAME"
+  #   chef.validation_key_path = "ORGNAME-validator.pem"
+  # end
+  #
+  # If you're using the Opscode platform, your validator client is
+  # ORGNAME-validator, replacing ORGNAME with your organization name.
+  #
+  # IF you have your own Chef Server, the default validation client name is
+  # chef-validator, unless you changed the configuration.
+  #
+  #   chef.validation_client_name = "ORGNAME-validator"
+end

Propchange: incubator/climate/branches/rcmet-2.1.1/src/main/vm/build/Vagrantfile
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/README.rdoc
URL: http://svn.apache.org/viewvc/incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/README.rdoc?rev=1517753&view=auto
==============================================================================
--- incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/README.rdoc (added)
+++ incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/README.rdoc Tue Aug 27 05:35:42 2013
@@ -0,0 +1,78 @@
+= DESCRIPTION:
+
+Complete Debian/Ubuntu style Apache2 configuration.
+
+= REQUIREMENTS:
+
+Debian or Ubuntu preferred.
+
+Red Hat/CentOS and Fedora can be used but will be converted to a Debian/Ubuntu style Apache as it's far easier to manage with chef. 
+
+= ATTRIBUTES:
+
+The file attributes/apache.rb contains the following attribute types:
+
+* platform specific locations and settings.
+* general settings
+* prefork attributes
+* worker attributes
+
+General settings and prefork/worker attributes are tunable.
+
+= USAGE:
+
+Include the apache2 recipe to install Apache2 and get 'sane' default settings. Configuration is modularized through Apache vhost sites a la Debian style configuration.
+
+For Red Hat, CentOS and Fedora you should first disable selinux as it's not supported (yet), then remove the stock httpd and all it's dependencies prior to attempting to use this recipe. Many packages in these distributions drop conflicting configs into conf.d, all of which haven't been accounted for yet. Starting from scratch will also make it far easier to debug.
+
+== Defines:
+
+* apache_module: sets up an Apache module.
+* apache_conf: sets up a config file for an apache module.
+* apache_site: sets up a vhost site. The conf file must be available.
+* web_app: copies the template for a web app and enables it as a site via apache_site.
+
+== Web Apps:
+
+Various applications that can be set up with Apache as the front end, such as PHP, Django, Rails and others can use the web_app define to set up the template and the Apache site. The define is kind of dumb, so the template needs have the application implementation settings, since we don't know what your app is or what is needed from Apache.
+
+We only prototype one parameter for the web_app define, "template". This is used to specify the name of the template to use in the current cookbook. When you use web_app, you can set up any parameters you want to use in your template. They will get passed to the template through the params hash. For example, the sample web_app.conf.erb template in this cookbook makes use of these.
+
+* docroot
+* server_name
+* server_aliases
+
+These are available as @params[:docroot], @params[:server_name], @params[:server_aliases] within the template. 
+
+If 'cookbook' and 'template' are not specified, the current cookbook's templates/default/web_app.conf.erb will be used. If this template is not suitable for your application, copy it to your cookbook and customize as needed.
+
+== God Monitor:
+
+There's a new recipe, apache2::god_monitor. You will need to make sure to include the 'god' recipe before using the apache2::god_monitor recipe in your cookbook.
+
+== OpenID Auth
+
+Installs the mod_auth_openid module from source. Specify an array of OpenIDs that are allowed to authenticate with the attribute apache[:allowed_openids]. Use the following in a vhost to protect with OpenID authentication:
+
+    AuthOpenIDEnabled On
+    AuthOpenIDDBLocation /var/cache/apache2/mod_auth_openid.db
+    AuthOpenIDUserProgram /usr/local/bin/mod_auth_openid.rb
+
+Change the DBLocation as appropriate for your platform. You'll need to change the file in the recipe to match. The UserProgram is optional if you don't want to limit access by certain OpenIDs.
+
+= LICENSE & AUTHOR:
+
+Author:: Joshua Timberman (<jo...@opscode.com>)
+Copyright:: 2009, Opscode, Inc
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.

Propchange: incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/README.rdoc
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/attributes/default.rb
URL: http://svn.apache.org/viewvc/incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/attributes/default.rb?rev=1517753&view=auto
==============================================================================
--- incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/attributes/default.rb (added)
+++ incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/attributes/default.rb Tue Aug 27 05:35:42 2013
@@ -0,0 +1,77 @@
+#
+# Cookbook Name:: apache2
+# Attributes:: apache
+#
+# Copyright 2008-2009, Opscode, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+# Where the various parts of apache are
+case platform
+when "redhat","centos","fedora","suse"
+  set[:apache][:dir]     = "/etc/httpd"
+  set[:apache][:log_dir] = "/var/log/httpd"
+  set[:apache][:user]    = "apache"
+  set[:apache][:binary]  = "/usr/sbin/httpd"
+  set[:apache][:icondir] = "/var/www/icons/"
+when "debian","ubuntu"
+  set[:apache][:dir]     = "/etc/apache2"
+  set[:apache][:log_dir] = "/var/log/apache2"
+  set[:apache][:user]    = "www-data"
+  set[:apache][:binary]  = "/usr/sbin/apache2"
+  set[:apache][:icondir] = "/usr/share/apache2/icons"
+else
+  set[:apache][:dir]     = "/etc/apache2"
+  set[:apache][:log_dir] = "/var/log/apache2"
+  set[:apache][:user]    = "www-data"
+  set[:apache][:binary]  = "/usr/sbin/apache2"
+  set[:apache][:icondir] = "/usr/share/apache2/icons"
+end
+
+###
+# These settings need the unless, since we want them to be tunable,
+# and we don't want to override the tunings.
+###
+
+# General settings
+default[:apache][:listen_ports] = [ "80","443" ]
+default[:apache][:contact] = "ops@example.com"
+default[:apache][:timeout] = 300
+default[:apache][:keepalive] = "On"
+default[:apache][:keepaliverequests] = 100
+default[:apache][:keepalivetimeout] = 5
+
+# Security
+default[:apache][:servertokens] = "Prod"
+default[:apache][:serversignature] = "On"
+default[:apache][:traceenable] = "On"
+
+# mod_auth_openids
+default[:apache][:allowed_openids] = Array.new
+
+# Prefork Attributes
+default[:apache][:prefork][:startservers] = 16
+default[:apache][:prefork][:minspareservers] = 16
+default[:apache][:prefork][:maxspareservers] = 32
+default[:apache][:prefork][:serverlimit] = 400
+default[:apache][:prefork][:maxclients] = 400
+default[:apache][:prefork][:maxrequestsperchild] = 10000
+
+# Worker Attributes
+default[:apache][:worker][:startservers] = 4
+default[:apache][:worker][:maxclients] = 1024
+default[:apache][:worker][:minsparethreads] = 64
+default[:apache][:worker][:maxsparethreads] = 192
+default[:apache][:worker][:threadsperchild] = 64
+default[:apache][:worker][:maxrequestsperchild] = 0

Propchange: incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/attributes/default.rb
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/definitions/apache_conf.rb
URL: http://svn.apache.org/viewvc/incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/definitions/apache_conf.rb?rev=1517753&view=auto
==============================================================================
--- incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/definitions/apache_conf.rb (added)
+++ incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/definitions/apache_conf.rb Tue Aug 27 05:35:42 2013
@@ -0,0 +1,25 @@
+#
+# Cookbook Name:: apache2
+# Definition:: apache_conf
+#
+# Copyright 2008-2009, Opscode, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+define :apache_conf do
+  template "#{node[:apache][:dir]}/mods-available/#{params[:name]}.conf" do
+    source "mods/#{params[:name]}.conf.erb"
+    notifies :restart, resources(:service => "apache2")
+  end
+end

Propchange: incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/definitions/apache_conf.rb
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/definitions/apache_module.rb
URL: http://svn.apache.org/viewvc/incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/definitions/apache_module.rb?rev=1517753&view=auto
==============================================================================
--- incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/definitions/apache_module.rb (added)
+++ incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/definitions/apache_module.rb Tue Aug 27 05:35:42 2013
@@ -0,0 +1,43 @@
+#
+# Cookbook Name:: apache2
+# Definition:: apache_module
+#
+# Copyright 2008-2009, Opscode, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+define :apache_module, :enable => true, :conf => false do
+  include_recipe "apache2"
+ 
+  if params[:conf]
+    apache_conf params[:name]
+  end
+ 
+  if params[:enable]
+    execute "a2enmod #{params[:name]}" do
+      command "/usr/sbin/a2enmod #{params[:name]}"
+      notifies :restart, resources(:service => "apache2")
+      not_if do (File.symlink?("#{node[:apache][:dir]}/mods-enabled/#{params[:name]}.load") and
+            ((File.exists?("#{node[:apache][:dir]}/mods-available/#{params[:name]}.conf"))?
+              (File.symlink?("#{node[:apache][:dir]}/mods-enabled/#{params[:name]}.conf")):(true)))
+      end
+    end    
+  else
+    execute "a2dismod #{params[:name]}" do
+      command "/usr/sbin/a2dismod #{params[:name]}"
+      notifies :restart, resources(:service => "apache2")
+      only_if do File.symlink?("#{node[:apache][:dir]}/mods-enabled/#{params[:name]}.load") end
+    end
+  end
+end

Propchange: incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/definitions/apache_module.rb
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/definitions/apache_site.rb
URL: http://svn.apache.org/viewvc/incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/definitions/apache_site.rb?rev=1517753&view=auto
==============================================================================
--- incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/definitions/apache_site.rb (added)
+++ incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/definitions/apache_site.rb Tue Aug 27 05:35:42 2013
@@ -0,0 +1,40 @@
+#
+# Cookbook Name:: apache2
+# Definition:: apache_site
+#
+# Copyright 2008-2009, Opscode, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+define :apache_site, :enable => true do
+  include_recipe "apache2"
+  
+  if params[:enable]
+    execute "a2ensite #{params[:name]}" do
+      command "/usr/sbin/a2ensite #{params[:name]}"
+      notifies :restart, resources(:service => "apache2")
+      not_if do 
+        File.symlink?("#{node[:apache][:dir]}/sites-enabled/#{params[:name]}") or
+          File.symlink?("#{node[:apache][:dir]}/sites-enabled/000-#{params[:name]}")
+      end
+      only_if do File.exists?("#{node[:apache][:dir]}/sites-available/#{params[:name]}") end
+    end
+  else
+    execute "a2dissite #{params[:name]}" do
+      command "/usr/sbin/a2dissite #{params[:name]}"
+      notifies :restart, resources(:service => "apache2")
+      only_if do File.symlink?("#{node[:apache][:dir]}/sites-enabled/#{params[:name]}") end
+    end
+  end
+end

Propchange: incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/definitions/apache_site.rb
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/definitions/web_app.rb
URL: http://svn.apache.org/viewvc/incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/definitions/web_app.rb?rev=1517753&view=auto
==============================================================================
--- incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/definitions/web_app.rb (added)
+++ incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/definitions/web_app.rb Tue Aug 27 05:35:42 2013
@@ -0,0 +1,49 @@
+#
+# Cookbook Name:: apache2
+# Definition:: web_app
+#
+# Copyright 2008-2009, Opscode, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+define :web_app, :template => "web_app.conf.erb" do
+  
+  application_name = params[:name]
+
+  include_recipe "apache2"
+  include_recipe "apache2::mod_rewrite"
+  include_recipe "apache2::mod_deflate"
+  include_recipe "apache2::mod_headers"
+  
+  template "#{node[:apache][:dir]}/sites-available/#{application_name}.conf" do
+    source params[:template]
+    owner "root"
+    group "root"
+    mode 0644
+    if params[:cookbook]
+      cookbook params[:cookbook]
+    end
+    variables(
+      :application_name => application_name,
+      :params => params
+    )
+    if File.exists?("#{node[:apache][:dir]}/sites-enabled/#{application_name}.conf")
+      notifies :reload, resources(:service => "apache2"), :delayed
+    end
+  end
+  
+  apache_site "#{params[:name]}.conf" do
+    enable enable_setting
+  end
+end

Propchange: incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/definitions/web_app.rb
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/files/default/apache2_module_conf_generate.pl
URL: http://svn.apache.org/viewvc/incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/files/default/apache2_module_conf_generate.pl?rev=1517753&view=auto
==============================================================================
--- incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/files/default/apache2_module_conf_generate.pl (added)
+++ incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/files/default/apache2_module_conf_generate.pl Tue Aug 27 05:35:42 2013
@@ -0,0 +1,41 @@
+#!/usr/bin/perl
+
+=begin
+
+Generates Ubuntu style module.load files.
+ 
+./apache2_module_conf_generate.pl /usr/lib64/httpd/modules /etc/httpd/mods-available
+
+ARGV[0] is the apache modules directory, ARGV[1] is where you want 'em.
+
+=cut
+
+use File::Find;
+
+use strict;
+use warnings;
+
+die "Must have '/path/to/modules' and '/path/to/modules.load'"
+  unless $ARGV[0] && $ARGV[1];
+
+find(
+  {
+    wanted => sub {
+      return 1 if $File::Find::name !~ /\.so$/;
+      my $modfile = $_;
+      $modfile =~ /(lib|mod_)(.+)\.so$/;
+      my $modname  = $2;
+      my $filename = "$ARGV[1]/$modname.load";
+      unless ( -f $filename ) {
+        open( FILE, ">", $filename ) or die "Cannot open $filename";
+        print FILE "LoadModule " . $modname . "_module $File::Find::name\n";
+        close(FILE);
+      }
+    },
+    follow => 1,
+  },
+  $ARGV[0]
+);
+
+exit 0;
+

Propchange: incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/files/default/apache2_module_conf_generate.pl
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/metadata.json
URL: http://svn.apache.org/viewvc/incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/metadata.json?rev=1517753&view=auto
==============================================================================
--- incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/metadata.json (added)
+++ incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/metadata.json Tue Aug 27 05:35:42 2013
@@ -0,0 +1,497 @@
+{
+    "suggestions": {
+    },
+    "attributes": {
+      "apache/traceenable": {
+        "required": "optional",
+        "calculated": false,
+        "choice": [
+
+        ],
+        "default": "On",
+        "type": "string",
+        "recipes": [
+
+        ],
+        "description": "Determine behavior of TRACE requests",
+        "display_name": "Apache Trace Enable"
+      },
+      "apache/serversignature": {
+        "required": "optional",
+        "calculated": false,
+        "choice": [
+
+        ],
+        "default": "On",
+        "type": "string",
+        "recipes": [
+
+        ],
+        "description": "Configure footer on server-generated documents",
+        "display_name": "Apache Server Signature"
+      },
+      "apache/contact": {
+        "required": "optional",
+        "calculated": false,
+        "choice": [
+
+        ],
+        "default": "ops@example.com",
+        "type": "string",
+        "recipes": [
+
+        ],
+        "description": "Email address of webmaster",
+        "display_name": "Apache Contact"
+      },
+      "apache/icondir": {
+        "required": "optional",
+        "calculated": false,
+        "choice": [
+
+        ],
+        "default": "/usr/share/apache2/icons",
+        "type": "string",
+        "recipes": [
+
+        ],
+        "description": "Directory location for icons",
+        "display_name": "Apache Icondir"
+      },
+      "apache/user": {
+        "required": "optional",
+        "calculated": false,
+        "choice": [
+
+        ],
+        "default": "www-data",
+        "type": "string",
+        "recipes": [
+
+        ],
+        "description": "User Apache runs as",
+        "display_name": "Apache User"
+      },
+      "apache/worker/threadsperchild": {
+        "required": "optional",
+        "calculated": false,
+        "choice": [
+
+        ],
+        "default": "64",
+        "type": "string",
+        "recipes": [
+
+        ],
+        "description": "Constant number of worker threads in each server process",
+        "display_name": "Apache Worker MPM ThreadsPerChild"
+      },
+      "apache/worker/maxclients": {
+        "required": "optional",
+        "calculated": false,
+        "choice": [
+
+        ],
+        "default": "1024",
+        "type": "string",
+        "recipes": [
+
+        ],
+        "description": "Maximum number of simultaneous connections",
+        "display_name": "Apache Worker MPM MaxClients"
+      },
+      "apache/worker": {
+        "required": "optional",
+        "calculated": false,
+        "choice": [
+
+        ],
+        "type": "hash",
+        "recipes": [
+
+        ],
+        "description": "Hash of Apache prefork tuning attributes.",
+        "display_name": "Apache Worker"
+      },
+      "apache/keepaliverequests": {
+        "required": "optional",
+        "calculated": false,
+        "choice": [
+
+        ],
+        "default": "100",
+        "type": "string",
+        "recipes": [
+
+        ],
+        "description": "Number of requests allowed on a persistent connection",
+        "display_name": "Apache Keepalive Requests"
+      },
+      "apache/timeout": {
+        "required": "optional",
+        "calculated": false,
+        "choice": [
+
+        ],
+        "default": "300",
+        "type": "string",
+        "recipes": [
+
+        ],
+        "description": "Connection timeout value",
+        "display_name": "Apache Timeout"
+      },
+      "apache/worker/maxrequestsperchild": {
+        "required": "optional",
+        "calculated": false,
+        "choice": [
+
+        ],
+        "default": "0",
+        "type": "string",
+        "recipes": [
+
+        ],
+        "description": "Maximum number of request a child process will handle",
+        "display_name": "Apache Worker MPM MaxRequestsPerChild"
+      },
+      "apache/dir": {
+        "required": "optional",
+        "calculated": false,
+        "choice": [
+
+        ],
+        "default": "/etc/apache2",
+        "type": "string",
+        "recipes": [
+
+        ],
+        "description": "Location for Apache configuration",
+        "display_name": "Apache Directory"
+      },
+      "apache/prefork/serverlimit": {
+        "required": "optional",
+        "calculated": false,
+        "choice": [
+
+        ],
+        "default": "400",
+        "type": "string",
+        "recipes": [
+
+        ],
+        "description": "Upper limit on configurable server processes",
+        "display_name": "Apache Prefork MPM ServerLimit"
+      },
+      "apache/prefork/minspareservers": {
+        "required": "optional",
+        "calculated": false,
+        "choice": [
+
+        ],
+        "default": "16",
+        "type": "string",
+        "recipes": [
+
+        ],
+        "description": "Minimum number of spare server processes",
+        "display_name": "Apache Prefork MPM MinSpareServers"
+      },
+      "apache/allowed_openids": {
+        "required": "optional",
+        "calculated": false,
+        "choice": [
+
+        ],
+        "default": "",
+        "type": "string",
+        "recipes": [
+
+        ],
+        "description": "Array of OpenIDs allowed to authenticate",
+        "display_name": "Apache Allowed OpenIDs"
+      },
+      "apache/binary": {
+        "required": "optional",
+        "calculated": false,
+        "choice": [
+
+        ],
+        "default": "/usr/sbin/apache2",
+        "type": "string",
+        "recipes": [
+
+        ],
+        "description": "Apache server daemon program",
+        "display_name": "Apache Binary"
+      },
+      "apache/prefork/startservers": {
+        "required": "optional",
+        "calculated": false,
+        "choice": [
+
+        ],
+        "default": "16",
+        "type": "string",
+        "recipes": [
+
+        ],
+        "description": "Number of MPM servers to start",
+        "display_name": "Apache Prefork MPM StartServers"
+      },
+      "apache/listen_ports": {
+        "required": "optional",
+        "calculated": false,
+        "choice": [
+
+        ],
+        "default": [
+          "80",
+          "443"
+        ],
+        "type": "array",
+        "recipes": [
+
+        ],
+        "description": "Ports that Apache should listen on",
+        "display_name": "Apache Listen Ports"
+      },
+      "apache/prefork/maxrequestsperchild": {
+        "required": "optional",
+        "calculated": false,
+        "choice": [
+
+        ],
+        "default": "10000",
+        "type": "string",
+        "recipes": [
+
+        ],
+        "description": "Maximum number of request a child process will handle",
+        "display_name": "Apache Prefork MPM MaxRequestsPerChild"
+      },
+      "apache/keepalivetimeout": {
+        "required": "optional",
+        "calculated": false,
+        "choice": [
+
+        ],
+        "default": "5",
+        "type": "string",
+        "recipes": [
+
+        ],
+        "description": "Time to wait for requests on persistent connection",
+        "display_name": "Apache Keepalive Timeout"
+      },
+      "apache/keepalive": {
+        "required": "optional",
+        "calculated": false,
+        "choice": [
+
+        ],
+        "default": "On",
+        "type": "string",
+        "recipes": [
+
+        ],
+        "description": "HTTP persistent connections",
+        "display_name": "Apache Keepalive"
+      },
+      "apache": {
+        "required": "optional",
+        "calculated": false,
+        "choice": [
+
+        ],
+        "type": "hash",
+        "recipes": [
+
+        ],
+        "description": "Hash of Apache attributes",
+        "display_name": "Apache Hash"
+      },
+      "apache/worker/maxsparethreads": {
+        "required": "optional",
+        "calculated": false,
+        "choice": [
+
+        ],
+        "default": "192",
+        "type": "string",
+        "recipes": [
+
+        ],
+        "description": "Maximum number of spare worker threads",
+        "display_name": "Apache Worker MPM MaxSpareThreads"
+      },
+      "apache/worker/startservers": {
+        "required": "optional",
+        "calculated": false,
+        "choice": [
+
+        ],
+        "default": "4",
+        "type": "string",
+        "recipes": [
+
+        ],
+        "description": "Initial number of server processes to start",
+        "display_name": "Apache Worker MPM StartServers"
+      },
+      "apache/prefork/maxclients": {
+        "required": "optional",
+        "calculated": false,
+        "choice": [
+
+        ],
+        "default": "400",
+        "type": "string",
+        "recipes": [
+
+        ],
+        "description": "Maximum number of simultaneous connections",
+        "display_name": "Apache Prefork MPM MaxClients"
+      },
+      "apache/prefork": {
+        "required": "optional",
+        "calculated": false,
+        "choice": [
+
+        ],
+        "type": "hash",
+        "recipes": [
+
+        ],
+        "description": "Hash of Apache prefork tuning attributes.",
+        "display_name": "Apache Prefork"
+      },
+      "apache/servertokens": {
+        "required": "optional",
+        "calculated": false,
+        "choice": [
+
+        ],
+        "default": "Prod",
+        "type": "string",
+        "recipes": [
+
+        ],
+        "description": "Server response header",
+        "display_name": "Apache Server Tokens"
+      },
+      "apache/log_dir": {
+        "required": "optional",
+        "calculated": false,
+        "choice": [
+
+        ],
+        "default": "/etc/apache2",
+        "type": "string",
+        "recipes": [
+
+        ],
+        "description": "Location for Apache logs",
+        "display_name": "Apache Log Directory"
+      },
+      "apache/worker/minsparethreads": {
+        "required": "optional",
+        "calculated": false,
+        "choice": [
+
+        ],
+        "default": "64",
+        "type": "string",
+        "recipes": [
+
+        ],
+        "description": "Minimum number of spare worker threads",
+        "display_name": "Apache Worker MPM MinSpareThreads"
+      },
+      "apache/prefork/maxspareservers": {
+        "required": "optional",
+        "calculated": false,
+        "choice": [
+
+        ],
+        "default": "32",
+        "type": "string",
+        "recipes": [
+
+        ],
+        "description": "Maximum number of spare server processes",
+        "display_name": "Apache Prefork MPM MaxSpareServers"
+      }
+    },
+    "maintainer_email": "cookbooks@opscode.com",
+    "conflicting": {
+    },
+    "dependencies": {
+    },
+    "recipes": {
+      "apache2::mod_dav": "Apache module 'dav'",
+      "apache2::mod_proxy_ajp": "Apache module 'proxy_ajp'",
+      "apache2::mod_php5": "Apache module 'php5'",
+      "apache2::mod_mime": "Apache module 'mime' with config file",
+      "apache2::mod_deflate": "Apache module 'deflate' with config file",
+      "apache2::mod_ssl": "Apache module 'ssl' with config file, adds port 443 to listen_ports",
+      "apache2::mod_setenvif": "Apache module 'setenvif' with config file",
+      "apache2::mod_python": "Apache module 'python'",
+      "apache2::mod_negotiation": "Apache module 'negotiation' with config file",
+      "apache2::mod_cgi": "Apache module 'cgi'",
+      "apache2::mod_authz_groupfile": "Apache module 'authz_groupfile'",
+      "apache2::mod_auth_basic": "Apache module 'auth_basic'",
+      "apache2::mod_rewrite": "Apache module 'rewrite'",
+      "apache2::mod_dav_svn": "Apache module 'dav_svn'",
+      "apache2::mod_autoindex": "Apache module 'autoindex' with config file",
+      "apache2::mod_authz_host": "Apache module 'authz_host'",
+      "apache2::mod_headers": "Apache module 'headers'",
+      "apache2::mod_authz_user": "Apache module 'authz_user'",
+      "apache2::mod_proxy_connect": "Apache module 'proxy_connect'",
+      "apache2::mod_proxy": "Apache module 'proxy' with config file",
+      "apache2::mod_fcgid": "Apache module 'fcgid', package on ubuntu/debian, rhel/centos, compile source on suse; with config file",
+      "apache2::mod_authnz_ldap": "Apache module 'authnz_ldap'",
+      "apache2::mod_auth_digest": "Apache module 'auth_digest'",
+      "apache2::mod_env": "Apache module 'env'",
+      "apache2::mod_status": "Apache module 'status' with config file",
+      "apache2::mod_proxy_http": "Apache module 'proxy_http'",
+      "apache2::mod_log_config": "Apache module 'log_config'",
+      "apache2::mod_ldap": "Apache module 'ldap'",
+      "apache2::mod_expires": "Apache module 'expires'",
+      "apache2::mod_alias": "Apache module 'alias' with config file",
+      "apache2": "Main Apache configuration",
+      "apache2::mod_authn_file": "Apache module 'authn_file'",
+      "apache2::mod_auth_openid": "Apache module 'authopenid'",
+      "apache2::mod_proxy_balancer": "Apache module 'proxy_balancer'",
+      "apache2::mod_dir": "Apache module 'dir' with config file",
+      "apache2::mod_authz_default": "Apache module 'authz_default'"
+    },
+    "providing": {
+    },
+    "platforms": {
+      "debian": [
+
+      ],
+      "centos": [
+
+      ],
+      "ubuntu": [
+
+      ],
+      "redhat": [
+
+      ]
+    },
+    "license": "Apache 2.0",
+    "version": "0.12.2",
+    "replacing": {
+    },
+    "groupings": {
+    },
+    "name": "apache2",
+    "recommendations": {
+    },
+    "description": "Installs and configures all aspects of apache2 using Debian style symlinks with helper definitions",
+    "maintainer": "Opscode, Inc.",
+    "long_description": "= DESCRIPTION:\n\nComplete Debian/Ubuntu style Apache2 configuration.\n\n= REQUIREMENTS:\n\nDebian or Ubuntu preferred.\n\nRed Hat/CentOS and Fedora can be used but will be converted to a Debian/Ubuntu style Apache as it's far easier to manage with chef. \n\n= ATTRIBUTES:\n\nThe file attributes/apache.rb contains the following attribute types:\n\n* platform specific locations and settings.\n* general settings\n* prefork attributes\n* worker attributes\n\nGeneral settings and prefork/worker attributes are tunable.\n\n= USAGE:\n\nInclude the apache2 recipe to install Apache2 and get 'sane' default settings. Configuration is modularized through Apache vhost sites a la Debian style configuration.\n\nFor Red Hat, CentOS and Fedora you should first disable selinux as it's not supported (yet), then remove the stock httpd and all it's dependencies prior to attempting to use this recipe. Many packages in these distributions drop conflicting configs into conf.d, all o
 f which haven't been accounted for yet. Starting from scratch will also make it far easier to debug.\n\n== Defines:\n\n* apache_module: sets up an Apache module.\n* apache_conf: sets up a config file for an apache module.\n* apache_site: sets up a vhost site. The conf file must be available.\n* web_app: copies the template for a web app and enables it as a site via apache_site.\n\n== Web Apps:\n\nVarious applications that can be set up with Apache as the front end, such as PHP, Django, Rails and others can use the web_app define to set up the template and the Apache site. The define is kind of dumb, so the template needs have the application implementation settings, since we don't know what your app is or what is needed from Apache.\n\nWe only prototype one parameter for the web_app define, \"template\". This is used to specify the name of the template to use in the current cookbook. When you use web_app, you can set up any parameters you want to use in your template. They will get 
 passed to the template through the params hash. For example, the sample web_app.conf.erb template in this cookbook makes use of these.\n\n* docroot\n* server_name\n* server_aliases\n\nThese are available as @params[:docroot], @params[:server_name], @params[:server_aliases] within the template. \n\nIf 'cookbook' and 'template' are not specified, the current cookbook's templates/default/web_app.conf.erb will be used. If this template is not suitable for your application, copy it to your cookbook and customize as needed.\n\n== God Monitor:\n\nThere's a new recipe, apache2::god_monitor. You will need to make sure to include the 'god' recipe before using the apache2::god_monitor recipe in your cookbook.\n\n== OpenID Auth\n\nInstalls the mod_auth_openid module from source. Specify an array of OpenIDs that are allowed to authenticate with the attribute apache[:allowed_openids]. Use the following in a vhost to protect with OpenID authentication:\n\n    AuthOpenIDEnabled On\n    AuthOpenIDDB
 Location /var/cache/apache2/mod_auth_openid.db\n    AuthOpenIDUserProgram /usr/local/bin/mod_auth_openid.rb\n\nChange the DBLocation as appropriate for your platform. You'll need to change the file in the recipe to match. The UserProgram is optional if you don't want to limit access by certain OpenIDs.\n\n= LICENSE & AUTHOR:\n\nAuthor:: Joshua Timberman (<jo...@opscode.com>)\nCopyright:: 2009, Opscode, Inc\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"
+  }
\ No newline at end of file

Propchange: incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/metadata.json
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/metadata.rb
URL: http://svn.apache.org/viewvc/incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/metadata.rb?rev=1517753&view=auto
==============================================================================
--- incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/metadata.rb (added)
+++ incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/metadata.rb Tue Aug 27 05:35:42 2013
@@ -0,0 +1,197 @@
+maintainer        "Opscode, Inc."
+maintainer_email  "cookbooks@opscode.com"
+license           "Apache 2.0"
+description       "Installs and configures all aspects of apache2 using Debian style symlinks with helper definitions"
+long_description  IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
+version           "0.12.2"
+recipe            "apache2", "Main Apache configuration"
+recipe            "apache2::mod_alias", "Apache module 'alias' with config file"
+recipe            "apache2::mod_auth_basic", "Apache module 'auth_basic'"
+recipe            "apache2::mod_auth_digest", "Apache module 'auth_digest'"
+recipe            "apache2::mod_auth_openid", "Apache module 'authopenid'"
+recipe            "apache2::mod_authn_file", "Apache module 'authn_file'"
+recipe            "apache2::mod_authnz_ldap", "Apache module 'authnz_ldap'"
+recipe            "apache2::mod_authz_default", "Apache module 'authz_default'"
+recipe            "apache2::mod_authz_groupfile", "Apache module 'authz_groupfile'"
+recipe            "apache2::mod_authz_host", "Apache module 'authz_host'"
+recipe            "apache2::mod_authz_user", "Apache module 'authz_user'"
+recipe            "apache2::mod_autoindex", "Apache module 'autoindex' with config file"
+recipe            "apache2::mod_cgi", "Apache module 'cgi'"
+recipe            "apache2::mod_dav", "Apache module 'dav'"
+recipe            "apache2::mod_dav_svn", "Apache module 'dav_svn'"
+recipe            "apache2::mod_deflate", "Apache module 'deflate' with config file"
+recipe            "apache2::mod_dir", "Apache module 'dir' with config file"
+recipe            "apache2::mod_env", "Apache module 'env'"
+recipe            "apache2::mod_expires", "Apache module 'expires'"
+recipe            "apache2::mod_fcgid", "Apache module 'fcgid', package on ubuntu/debian, rhel/centos, compile source on suse; with config file"
+recipe            "apache2::mod_headers", "Apache module 'headers'"
+recipe            "apache2::mod_ldap", "Apache module 'ldap'"
+recipe            "apache2::mod_log_config", "Apache module 'log_config'"
+recipe            "apache2::mod_mime", "Apache module 'mime' with config file"
+recipe            "apache2::mod_negotiation", "Apache module 'negotiation' with config file"
+recipe            "apache2::mod_php5", "Apache module 'php5'"
+recipe            "apache2::mod_proxy", "Apache module 'proxy' with config file"
+recipe            "apache2::mod_proxy_ajp", "Apache module 'proxy_ajp'"
+recipe            "apache2::mod_proxy_balancer", "Apache module 'proxy_balancer'"
+recipe            "apache2::mod_proxy_connect", "Apache module 'proxy_connect'"
+recipe            "apache2::mod_proxy_http", "Apache module 'proxy_http'"
+recipe            "apache2::mod_python", "Apache module 'python'"
+recipe            "apache2::mod_rewrite", "Apache module 'rewrite'"
+recipe            "apache2::mod_setenvif", "Apache module 'setenvif' with config file"
+recipe            "apache2::mod_ssl", "Apache module 'ssl' with config file, adds port 443 to listen_ports"
+recipe            "apache2::mod_status", "Apache module 'status' with config file"
+
+%w{redhat centos debian ubuntu}.each do |os|
+  supports os
+end
+
+attribute "apache",
+  :display_name => "Apache Hash",
+  :description => "Hash of Apache attributes",
+  :type => "hash"
+
+attribute "apache/dir",
+  :display_name => "Apache Directory",
+  :description => "Location for Apache configuration",
+  :default => "/etc/apache2"
+
+attribute "apache/log_dir",
+  :display_name => "Apache Log Directory",
+  :description => "Location for Apache logs",
+  :default => "/etc/apache2"
+
+attribute "apache/user",
+  :display_name => "Apache User",
+  :description => "User Apache runs as",
+  :default => "www-data"
+
+attribute "apache/binary",
+  :display_name => "Apache Binary",
+  :description => "Apache server daemon program",
+  :default => "/usr/sbin/apache2"
+
+attribute "apache/icondir", 
+  :display_name => "Apache Icondir",
+  :description => "Directory location for icons",
+  :default => "/usr/share/apache2/icons"
+
+attribute "apache/listen_ports",
+  :display_name => "Apache Listen Ports",
+  :description => "Ports that Apache should listen on",
+  :type => "array",
+  :default => [ "80", "443" ]
+
+attribute "apache/contact",
+  :display_name => "Apache Contact",
+  :description => "Email address of webmaster",
+  :default => "ops@example.com"
+
+attribute "apache/timeout",
+  :display_name => "Apache Timeout",
+  :description => "Connection timeout value",
+  :default => "300"
+
+attribute "apache/keepalive",
+  :display_name => "Apache Keepalive",
+  :description => "HTTP persistent connections",
+  :default => "On"
+
+attribute "apache/keepaliverequests",
+  :display_name => "Apache Keepalive Requests",
+  :description => "Number of requests allowed on a persistent connection",
+  :default => "100"
+
+attribute "apache/keepalivetimeout",
+  :display_name => "Apache Keepalive Timeout",
+  :description => "Time to wait for requests on persistent connection",
+  :default => "5"
+
+attribute "apache/servertokens",
+  :display_name => "Apache Server Tokens",
+  :description => "Server response header",
+  :default => "Prod"
+
+attribute "apache/serversignature",
+  :display_name => "Apache Server Signature",
+  :description => "Configure footer on server-generated documents",
+  :default => "On"
+
+attribute "apache/traceenable",
+  :display_name => "Apache Trace Enable",
+  :description => "Determine behavior of TRACE requests",
+  :default => "On"
+
+attribute "apache/allowed_openids",
+  :display_name => "Apache Allowed OpenIDs",
+  :description => "Array of OpenIDs allowed to authenticate",
+  :default => ""
+
+attribute "apache/prefork",
+  :display_name => "Apache Prefork",
+  :description => "Hash of Apache prefork tuning attributes.",
+  :type => "hash"
+
+attribute "apache/prefork/startservers",
+  :display_name => "Apache Prefork MPM StartServers",
+  :description => "Number of MPM servers to start",
+  :default => "16"
+
+attribute "apache/prefork/minspareservers",
+  :display_name => "Apache Prefork MPM MinSpareServers",
+  :description => "Minimum number of spare server processes",
+  :default => "16"
+
+attribute "apache/prefork/maxspareservers",
+  :display_name => "Apache Prefork MPM MaxSpareServers",
+  :description => "Maximum number of spare server processes",
+  :default => "32"
+
+attribute "apache/prefork/serverlimit",
+  :display_name => "Apache Prefork MPM ServerLimit",
+  :description => "Upper limit on configurable server processes",
+  :default => "400"
+
+attribute "apache/prefork/maxclients",
+  :display_name => "Apache Prefork MPM MaxClients",
+  :description => "Maximum number of simultaneous connections",
+  :default => "400"
+
+attribute "apache/prefork/maxrequestsperchild",
+  :display_name => "Apache Prefork MPM MaxRequestsPerChild",
+  :description => "Maximum number of request a child process will handle",
+  :default => "10000"
+
+attribute "apache/worker",
+  :display_name => "Apache Worker",
+  :description => "Hash of Apache prefork tuning attributes.",
+  :type => "hash"
+
+attribute "apache/worker/startservers",
+  :display_name => "Apache Worker MPM StartServers",
+  :description => "Initial number of server processes to start",
+  :default => "4"
+
+attribute "apache/worker/maxclients",
+  :display_name => "Apache Worker MPM MaxClients",
+  :description => "Maximum number of simultaneous connections",
+  :default => "1024"
+
+attribute "apache/worker/minsparethreads",
+  :display_name => "Apache Worker MPM MinSpareThreads",
+  :description => "Minimum number of spare worker threads",
+  :default => "64"
+
+attribute "apache/worker/maxsparethreads",
+  :display_name => "Apache Worker MPM MaxSpareThreads",
+  :description => "Maximum number of spare worker threads",
+  :default => "192"
+
+attribute "apache/worker/threadsperchild",
+  :display_name => "Apache Worker MPM ThreadsPerChild",
+  :description => "Constant number of worker threads in each server process",
+  :default => "64"
+
+attribute "apache/worker/maxrequestsperchild",
+  :display_name => "Apache Worker MPM MaxRequestsPerChild",
+  :description => "Maximum number of request a child process will handle",
+  :default => "0"

Propchange: incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/metadata.rb
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/default.rb
URL: http://svn.apache.org/viewvc/incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/default.rb?rev=1517753&view=auto
==============================================================================
--- incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/default.rb (added)
+++ incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/default.rb Tue Aug 27 05:35:42 2013
@@ -0,0 +1,191 @@
+#
+# Cookbook Name:: apache2
+# Recipe:: default
+#
+# Copyright 2008-2009, Opscode, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+package "apache2" do
+  case node[:platform]
+  when "centos","redhat","fedora","suse"
+    package_name "httpd"
+  when "debian","ubuntu"
+    package_name "apache2"
+  end
+  action :install
+end
+
+service "apache2" do
+  case node[:platform]
+  when "centos","redhat","fedora","suse"
+    service_name "httpd"
+    # If restarted/reloaded too quickly httpd has a habit of failing.
+    # This may happen with multiple recipes notifying apache to restart - like
+    # during the initial bootstrap.
+    restart_command "/sbin/service httpd restart && sleep 1"
+    reload_command "/sbin/service httpd reload && sleep 1"
+  when "debian","ubuntu"
+    service_name "apache2"
+  end
+  supports value_for_platform(
+    "debian" => { "4.0" => [ :restart, :reload ], "default" => [ :restart, :reload, :status ] },
+    "ubuntu" => { "default" => [ :restart, :reload, :status ] },
+    "centos" => { "default" => [ :restart, :reload, :status ] },
+    "redhat" => { "default" => [ :restart, :reload, :status ] },
+    "fedora" => { "default" => [ :restart, :reload, :status ] },
+    "default" => { "default" => [:restart, :reload ] }
+  )
+  action :enable
+end
+
+if platform?("centos", "redhat", "fedora", "suse")
+  directory node[:apache][:log_dir] do
+    mode 0755
+    action :create
+  end
+  
+  cookbook_file "/usr/local/bin/apache2_module_conf_generate.pl" do
+    source "apache2_module_conf_generate.pl"
+    mode 0755
+    owner "root"
+    group "root"
+  end
+
+  %w{sites-available sites-enabled mods-available mods-enabled}.each do |dir|
+    directory "#{node[:apache][:dir]}/#{dir}" do
+      mode 0755
+      owner "root"
+      group "root"
+      action :create
+    end
+  end
+    
+  execute "generate-module-list" do
+    if node[:kernel][:machine] == "x86_64" 
+      libdir = "lib64"
+    else 
+      libdir = "lib"
+    end
+    command "/usr/local/bin/apache2_module_conf_generate.pl /usr/#{libdir}/httpd/modules /etc/httpd/mods-available"
+    
+    action :run
+  end
+  
+  %w{a2ensite a2dissite a2enmod a2dismod}.each do |modscript|
+    template "/usr/sbin/#{modscript}" do
+      source "#{modscript}.erb"
+      mode 0755
+      owner "root"
+      group "root"
+    end  
+  end
+
+  # installed by default on centos/rhel, remove in favour of mods-enabled
+  file "#{node[:apache][:dir]}/conf.d/proxy_ajp.conf" do
+    action :delete
+    backup false
+  end
+  file "#{node[:apache][:dir]}/conf.d/README" do
+    action :delete
+    backup false
+  end
+  
+  # welcome page moved to the default-site.rb temlate
+  file "#{node[:apache][:dir]}/conf.d/welcome.conf" do
+    action :delete
+    backup false
+  end
+end
+
+directory "#{node[:apache][:dir]}/ssl" do
+  action :create
+  mode 0755
+  owner "root"
+  group "root"
+end
+
+template "apache2.conf" do
+  case node[:platform]
+  when "centos","redhat","fedora"
+    path "#{node[:apache][:dir]}/conf/httpd.conf"
+  when "debian","ubuntu"
+    path "#{node[:apache][:dir]}/apache2.conf"
+  end
+  source "apache2.conf.erb"
+  owner "root"
+  group "root"
+  mode 0644
+  notifies :restart, resources(:service => "apache2")
+end
+
+template "security" do
+  path "#{node[:apache][:dir]}/conf.d/security"
+  source "security.erb"
+  owner "root"
+  group "root"
+  mode 0644
+  backup false
+  notifies :restart, resources(:service => "apache2")
+end
+
+template "charset" do
+  path "#{node[:apache][:dir]}/conf.d/charset"
+  source "charset.erb"
+  owner "root"
+  group "root"
+  mode 0644
+  backup false
+  notifies :restart, resources(:service => "apache2")
+end
+
+template "#{node[:apache][:dir]}/ports.conf" do
+  source "ports.conf.erb"
+  group "root"
+  owner "root"
+  variables :apache_listen_ports => node[:apache][:listen_ports]
+  mode 0644
+  notifies :restart, resources(:service => "apache2")
+end
+
+template "#{node[:apache][:dir]}/sites-available/default" do
+  source "default-site.erb"
+  owner "root"
+  group "root"
+  mode 0644
+  notifies :restart, resources(:service => "apache2")
+end
+
+include_recipe "apache2::mod_status"
+include_recipe "apache2::mod_alias"
+include_recipe "apache2::mod_auth_basic"
+include_recipe "apache2::mod_authn_file"
+include_recipe "apache2::mod_authz_default"
+include_recipe "apache2::mod_authz_groupfile"
+include_recipe "apache2::mod_authz_host"
+include_recipe "apache2::mod_authz_user"
+include_recipe "apache2::mod_autoindex"
+include_recipe "apache2::mod_dir"
+include_recipe "apache2::mod_env"
+include_recipe "apache2::mod_mime"
+include_recipe "apache2::mod_negotiation"
+include_recipe "apache2::mod_setenvif"
+include_recipe "apache2::mod_log_config" if platform?("centos", "redhat", "suse")
+
+# uncomment to get working example site on centos/redhat/fedora
+#apache_site "default"
+
+service "apache2" do
+  action :start
+end

Propchange: incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/default.rb
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/god_monitor.rb
URL: http://svn.apache.org/viewvc/incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/god_monitor.rb?rev=1517753&view=auto
==============================================================================
--- incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/god_monitor.rb (added)
+++ incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/god_monitor.rb Tue Aug 27 05:35:42 2013
@@ -0,0 +1,33 @@
+#
+# Cookbook Name:: apache2
+# Recipe:: god_monitor
+#
+# Copyright 2008-2009, Opscode, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+apache_service = service "apache2" do
+  action :nothing
+end
+
+start_command = apache_service.start_command
+stop_command = apache_service.stop_command
+restart_command = apache_service.restart_command
+
+god_monitor "apache2" do
+  config "apache2.god.erb"
+  start (start_command)?start_command : "/etc/init.d/#{apache_service.service_name} start"
+  restart (restart_command)?restart_command : "/etc/init.d/#{apache_service.service_name} restart"
+  stop (stop_command)?stop_command : "/etc/init.d/#{apache_service.service_name} stop"
+end

Propchange: incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/god_monitor.rb
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_alias.rb
URL: http://svn.apache.org/viewvc/incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_alias.rb?rev=1517753&view=auto
==============================================================================
--- incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_alias.rb (added)
+++ incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_alias.rb Tue Aug 27 05:35:42 2013
@@ -0,0 +1,22 @@
+#
+# Cookbook Name:: apache2
+# Recipe:: alias 
+#
+# Copyright 2008-2009, Opscode, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+apache_module "alias" do
+  conf true
+end

Propchange: incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_alias.rb
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_auth_basic.rb
URL: http://svn.apache.org/viewvc/incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_auth_basic.rb?rev=1517753&view=auto
==============================================================================
--- incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_auth_basic.rb (added)
+++ incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_auth_basic.rb Tue Aug 27 05:35:42 2013
@@ -0,0 +1,20 @@
+#
+# Cookbook Name:: apache2
+# Recipe:: auth_basic 
+#
+# Copyright 2008-2009, Opscode, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+apache_module "auth_basic"

Propchange: incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_auth_basic.rb
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_auth_digest.rb
URL: http://svn.apache.org/viewvc/incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_auth_digest.rb?rev=1517753&view=auto
==============================================================================
--- incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_auth_digest.rb (added)
+++ incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_auth_digest.rb Tue Aug 27 05:35:42 2013
@@ -0,0 +1,20 @@
+#
+# Cookbook Name:: apache2
+# Recipe:: auth_digest 
+#
+# Copyright 2008-2009, Opscode, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+apache_module "auth_digest"

Propchange: incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_auth_digest.rb
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_auth_openid.rb
URL: http://svn.apache.org/viewvc/incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_auth_openid.rb?rev=1517753&view=auto
==============================================================================
--- incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_auth_openid.rb (added)
+++ incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_auth_openid.rb Tue Aug 27 05:35:42 2013
@@ -0,0 +1,59 @@
+#
+# Cookbook Name:: apache2
+# Recipe:: mod_auth_openid
+#
+# Copyright 2008-2009, Opscode, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+%w{ apache2-prefork-dev libopkele-dev libopkele3 }.each do |pkg|
+  package pkg
+end
+
+remote_file "/tmp/mod_auth_openid-0.4.tar.gz" do
+  source "http://butterfat.net/releases/mod_auth_openid/mod_auth_openid-0.4.tar.gz"
+  mode 0644
+end
+
+bash "install mod_auth_openid" do
+  cwd "/tmp"
+  code <<-EOH
+  tar zxvf mod_auth_openid-0.4.tar.gz
+  cd mod_auth_openid-0.4 && ./configure
+  perl -pi -e "s/-i -a -n 'authopenid'/-i -n 'authopenid'/g" Makefile
+  make && make install
+  EOH
+  not_if { File.exists?("/usr/lib/apache2/modules/mod_auth_openid.so") }
+end
+
+file "/var/cache/apache2/mod_auth_openid.db" do
+  owner node[:apache][:user]
+  mode 0600
+end
+
+template "#{node[:apache][:dir]}/mods-available/authopenid.load" do
+  source "mods/authopenid.load.erb"
+  owner "root"
+  group "root"
+  mode 0644
+end
+
+apache_module "authopenid"
+
+template "/usr/local/bin/mod_auth_openid.rb" do
+  source "mod_auth_openid.rb.erb"
+  owner node[:apache][:user]
+  group node[:apache][:user]
+  mode 0750
+end

Propchange: incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_auth_openid.rb
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_authn_file.rb
URL: http://svn.apache.org/viewvc/incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_authn_file.rb?rev=1517753&view=auto
==============================================================================
--- incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_authn_file.rb (added)
+++ incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_authn_file.rb Tue Aug 27 05:35:42 2013
@@ -0,0 +1,20 @@
+#
+# Cookbook Name:: apache2
+# Recipe:: authn_file 
+#
+# Copyright 2008-2009, Opscode, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+apache_module "authn_file"

Propchange: incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_authn_file.rb
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_authnz_ldap.rb
URL: http://svn.apache.org/viewvc/incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_authnz_ldap.rb?rev=1517753&view=auto
==============================================================================
--- incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_authnz_ldap.rb (added)
+++ incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_authnz_ldap.rb Tue Aug 27 05:35:42 2013
@@ -0,0 +1,20 @@
+#
+# Cookbook Name:: apache2
+# Recipe:: authnz_ldap 
+#
+# Copyright 2008-2009, Opscode, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+apache_module "authnz_ldap"

Propchange: incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_authnz_ldap.rb
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_authz_default.rb
URL: http://svn.apache.org/viewvc/incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_authz_default.rb?rev=1517753&view=auto
==============================================================================
--- incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_authz_default.rb (added)
+++ incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_authz_default.rb Tue Aug 27 05:35:42 2013
@@ -0,0 +1,20 @@
+#
+# Cookbook Name:: apache2
+# Recipe:: authz_default 
+#
+# Copyright 2008-2009, Opscode, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+apache_module "authz_default"

Propchange: incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_authz_default.rb
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_authz_groupfile.rb
URL: http://svn.apache.org/viewvc/incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_authz_groupfile.rb?rev=1517753&view=auto
==============================================================================
--- incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_authz_groupfile.rb (added)
+++ incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_authz_groupfile.rb Tue Aug 27 05:35:42 2013
@@ -0,0 +1,20 @@
+#
+# Cookbook Name:: apache2
+# Recipe:: authz_groupfile 
+#
+# Copyright 2008-2009, Opscode, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+apache_module "authz_groupfile"

Propchange: incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_authz_groupfile.rb
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_authz_host.rb
URL: http://svn.apache.org/viewvc/incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_authz_host.rb?rev=1517753&view=auto
==============================================================================
--- incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_authz_host.rb (added)
+++ incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_authz_host.rb Tue Aug 27 05:35:42 2013
@@ -0,0 +1,20 @@
+#
+# Cookbook Name:: apache2
+# Recipe:: authz_host 
+#
+# Copyright 2008-2009, Opscode, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+apache_module "authz_host"

Propchange: incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_authz_host.rb
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_authz_user.rb
URL: http://svn.apache.org/viewvc/incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_authz_user.rb?rev=1517753&view=auto
==============================================================================
--- incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_authz_user.rb (added)
+++ incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_authz_user.rb Tue Aug 27 05:35:42 2013
@@ -0,0 +1,20 @@
+#
+# Cookbook Name:: apache2
+# Recipe:: authz_user 
+#
+# Copyright 2008-2009, Opscode, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+apache_module "authz_user"

Propchange: incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_authz_user.rb
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_autoindex.rb
URL: http://svn.apache.org/viewvc/incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_autoindex.rb?rev=1517753&view=auto
==============================================================================
--- incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_autoindex.rb (added)
+++ incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_autoindex.rb Tue Aug 27 05:35:42 2013
@@ -0,0 +1,22 @@
+#
+# Cookbook Name:: apache2
+# Recipe:: autoindex 
+#
+# Copyright 2008-2009, Opscode, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+apache_module "autoindex" do
+  conf true
+end

Propchange: incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_autoindex.rb
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_cgi.rb
URL: http://svn.apache.org/viewvc/incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_cgi.rb?rev=1517753&view=auto
==============================================================================
--- incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_cgi.rb (added)
+++ incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_cgi.rb Tue Aug 27 05:35:42 2013
@@ -0,0 +1,20 @@
+#
+# Cookbook Name:: apache2
+# Recipe:: cgi 
+#
+# Copyright 2008-2009, Opscode, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+apache_module "cgi"

Propchange: incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_cgi.rb
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_dav.rb
URL: http://svn.apache.org/viewvc/incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_dav.rb?rev=1517753&view=auto
==============================================================================
--- incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_dav.rb (added)
+++ incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_dav.rb Tue Aug 27 05:35:42 2013
@@ -0,0 +1,20 @@
+#
+# Cookbook Name:: apache2
+# Recipe:: dav 
+#
+# Copyright 2008-2009, Opscode, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+apache_module "dav"

Propchange: incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_dav.rb
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_dav_svn.rb
URL: http://svn.apache.org/viewvc/incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_dav_svn.rb?rev=1517753&view=auto
==============================================================================
--- incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_dav_svn.rb (added)
+++ incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_dav_svn.rb Tue Aug 27 05:35:42 2013
@@ -0,0 +1,22 @@
+#
+# Cookbook Name:: apache2
+# Recipe:: dav_svn 
+#
+# Copyright 2008-2009, Opscode, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+package "libapache2-svn"
+
+apache_module "dav_svn"

Propchange: incubator/climate/branches/rcmet-2.1.1/src/main/vm/src/cookbooks/apache2/recipes/mod_dav_svn.rb
------------------------------------------------------------------------------
    svn:executable = *