Skip to content

Commit

Permalink
Okay... fixed up membase recipe and added ksh, because membase loves ksh
Browse files Browse the repository at this point in the history
  • Loading branch information
cparedes committed Dec 16, 2010
1 parent afd6a0c commit c4e48f4
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 1 deletion.
10 changes: 10 additions & 0 deletions ksh/metadata.rb
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,10 @@
maintainer "Blue Box Group, LLC"
maintainer_email "support@blueboxgrp.com"
license "Apache v2.0"
description "Installs/Configures ksh"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
version "0.1.0"

%w{centos redhat}.each do |os|
supports os
end
22 changes: 22 additions & 0 deletions ksh/recipes/default.rb
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,22 @@
#
# Cookbook Name:: ksh
# Recipe:: default
#
# Copyright 2010, Blue Box Group, LLC
#
# 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 "ksh" do
action :install
end
1 change: 1 addition & 0 deletions membase/metadata.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
version "0.1.0" version "0.1.0"


depends "system-users" depends "system-users"
depends "ksh"


%w{centos redhat}.each do |os| %w{centos redhat}.each do |os|
supports os supports os
Expand Down
1 change: 1 addition & 0 deletions membase/recipes/default.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
# #


include_recipe "system-users::membase" include_recipe "system-users::membase"
include_recipe "ksh"


if node[:memory][:total].to_i >= 16000000 if node[:memory][:total].to_i >= 16000000
memoryquota = 15500000 memoryquota = 15500000
Expand Down
2 changes: 1 addition & 1 deletion system-users/recipes/membase.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
uid 60105 uid 60105
gid 60105 gid 60105
home "/opt/membase" home "/opt/membase"
shell "/sbin/nologin" shell "/bin/bash"
system true system true
end end

0 comments on commit c4e48f4

Please sign in to comment.