Permalink
Browse files

Add ChefSugar and make sure ubuntu, vagrant and git are in the docker…

… group.
  • Loading branch information...
darron committed Mar 16, 2014
1 parent 9071524 commit a934ce86eeaa8f2fc66713d6fa8f7d4fb110ccb0
Showing with 47 additions and 1 deletion.
  1. +1 −0 Gemfile
  2. +2 −1 metadata.rb
  3. +4 −0 recipes/default.rb
  4. +40 −0 recipes/final.rb
View
@@ -9,6 +9,7 @@ gem "tailor"
gem "rubocop"
gem "chef-taste"
gem 'coveralls', require: false
+gem 'chef-sugar'
group :integration do
gem "test-kitchen", "~> 1.0"
View
@@ -4,9 +4,10 @@
maintainer_email 'darron@froese.org'
license 'Apache 2.0'
description 'Installs/configures octohost'
-version '0.6.0'
+version '0.7.0'
recipe 'octohost::default', 'Installs/configures octohost'
+depends 'chef-sugar'
depends 'apt'
depends 'ubuntu_base', '0.7.0'
depends 'octobase', '0.5.0'
View
@@ -22,6 +22,8 @@
command 'apt-get update'
end
+include_recipe 'chef-sugar::default'
+
include_recipe 'ubuntu_base::default'
include_recipe 'octobase::default'
@@ -41,3 +43,5 @@
include_recipe 'serf::default'
include_recipe 'gitreceive::default'
+
+include_recipe 'octohost::final'
View
@@ -0,0 +1,40 @@
+# encoding: utf-8
+#
+# Cookbook Name:: octohost
+# Recipe:: final
+#
+# Copyright (C) 2014, Darron Froese <darron@froese.org>
+#
+# 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.
+#
+
+# Add git, vagrant and ubuntu to docker group.
+group 'docker' do
+ action :modify
+ members 'ubuntu'
+ append true
+ not_if { vagrant? }
+end
+
+group 'docker' do
+ action :modify
+ members 'vagrant'
+ append true
+ only_if { vagrant? }
+end
+
+group 'docker' do
+ action :modify
+ members 'git'
+ append true
+end

0 comments on commit a934ce8

Please sign in to comment.