Skip to content

Commit 95c6b12

Browse files
committed
Clean cookbook skeleton via berks cookbook
0 parents  commit 95c6b12

File tree

10 files changed

+272
-0
lines changed

10 files changed

+272
-0
lines changed

Diff for: .gitignore

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
.vagrant
2+
Berksfile.lock
3+
*~
4+
*#
5+
.#*
6+
\#*#
7+
.*.sw[a-z]
8+
*.un~
9+
/cookbooks
10+
11+
# Bundler
12+
Gemfile.lock
13+
bin/*
14+
.bundle/*
15+

Diff for: Berksfile

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
site :opscode
2+
3+
metadata

Diff for: Gemfile

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
source 'https://rubygems.org'
2+
3+
gem 'berkshelf'
4+
gem 'thor-foodcritic'

Diff for: LICENSE

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Copyright (C) 2013 Andrew Fecheyr
2+
3+
Permission is hereby granted, free of charge, to any person obtaining
4+
a copy of this software and associated documentation files (the
5+
"Software"), to deal in the Software without restriction, including
6+
without limitation the rights to use, copy, modify, merge, publish,
7+
distribute, sublicense, and/or sell copies of the Software, and to
8+
permit persons to whom the Software is furnished to do so, subject to
9+
the following conditions:
10+
11+
The above copyright notice and this permission notice shall be
12+
included in all copies or substantial portions of the Software.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Diff for: README.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# gitlab cookbook
2+
3+
# Requirements
4+
5+
# Usage
6+
7+
# Attributes
8+
9+
# Recipes
10+
11+
# Author
12+
13+
Author:: Andrew Fecheyr (<[email protected]>)

Diff for: Thorfile

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# encoding: utf-8
2+
3+
require 'bundler'
4+
require 'bundler/setup'
5+
require 'thor/foodcritic'
6+
require 'berkshelf/thor'

Diff for: Vagrantfile

+82
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
# -*- mode: ruby -*-
2+
# vi: set ft=ruby :
3+
4+
Vagrant.configure("2") do |config|
5+
# All Vagrant configuration is done here. The most common configuration
6+
# options are documented and commented below. For a complete reference,
7+
# please see the online documentation at vagrantup.com.
8+
9+
config.vm.hostname = "gitlab-berkshelf"
10+
11+
# Every Vagrant virtual environment requires a box to build off of.
12+
config.vm.box = "Berkshelf-CentOS-6.3-x86_64-minimal"
13+
14+
# The url from where the 'config.vm.box' box will be fetched if it
15+
# doesn't already exist on the user's system.
16+
config.vm.box_url = "https://dl.dropbox.com/u/31081437/Berkshelf-CentOS-6.3-x86_64-minimal.box"
17+
18+
# Assign this VM to a host-only network IP, allowing you to access it
19+
# via the IP. Host-only networks can talk to the host machine as well as
20+
# any other machines on the same network, but cannot be accessed (through this
21+
# network interface) by any external networks.
22+
config.vm.network :private_network, ip: "33.33.33.10"
23+
24+
# Create a public network, which generally matched to bridged network.
25+
# Bridged networks make the machine appear as another physical device on
26+
# your network.
27+
28+
# config.vm.network :public_network
29+
30+
# Create a forwarded port mapping which allows access to a specific port
31+
# within the machine from a port on the host machine. In the example below,
32+
# accessing "localhost:8080" will access port 80 on the guest machine.
33+
34+
# Share an additional folder to the guest VM. The first argument is
35+
# the path on the host to the actual folder. The second argument is
36+
# the path on the guest to mount the folder. And the optional third
37+
# argument is a set of non-required options.
38+
# config.vm.synced_folder "../data", "/vagrant_data"
39+
40+
# Provider-specific configuration so you can fine-tune various
41+
# backing providers for Vagrant. These expose provider-specific options.
42+
# Example for VirtualBox:
43+
#
44+
# config.vm.provider :virtualbox do |vb|
45+
# # Don't boot with headless mode
46+
# vb.gui = true
47+
#
48+
# # Use VBoxManage to customize the VM. For example to change memory:
49+
# vb.customize ["modifyvm", :id, "--memory", "1024"]
50+
# end
51+
#
52+
# View the documentation for the provider you're using for more
53+
# information on available options.
54+
55+
config.ssh.max_tries = 40
56+
config.ssh.timeout = 120
57+
58+
# The path to the Berksfile to use with Vagrant Berkshelf
59+
# config.berkshelf.berksfile_path = "./Berksfile"
60+
61+
# An array of symbols representing groups of cookbook described in the Vagrantfile
62+
# to exclusively install and copy to Vagrant's shelf.
63+
# config.berkshelf.only = []
64+
65+
# An array of symbols representing groups of cookbook described in the Vagrantfile
66+
# to skip installing and copying to Vagrant's shelf.
67+
# config.berkshelf.except = []
68+
69+
config.vm.provision :chef_solo do |chef|
70+
chef.json = {
71+
:mysql => {
72+
:server_root_password => 'rootpass',
73+
:server_debian_password => 'debpass',
74+
:server_repl_password => 'replpass'
75+
}
76+
}
77+
78+
chef.run_list = [
79+
"recipe[gitlab::default]"
80+
]
81+
end
82+
end

Diff for: chefignore

+96
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
# Put files/directories that should be ignored in this file when uploading
2+
# or sharing to the community site.
3+
# Lines that start with '# ' are comments.
4+
5+
# OS generated files #
6+
######################
7+
.DS_Store
8+
Icon?
9+
nohup.out
10+
ehthumbs.db
11+
Thumbs.db
12+
13+
# SASS #
14+
########
15+
.sass-cache
16+
17+
# EDITORS #
18+
###########
19+
\#*
20+
.#*
21+
*~
22+
*.sw[a-z]
23+
*.bak
24+
REVISION
25+
TAGS*
26+
tmtags
27+
*_flymake.*
28+
*_flymake
29+
*.tmproj
30+
.project
31+
.settings
32+
mkmf.log
33+
34+
## COMPILED ##
35+
##############
36+
a.out
37+
*.o
38+
*.pyc
39+
*.so
40+
*.com
41+
*.class
42+
*.dll
43+
*.exe
44+
*/rdoc/
45+
46+
# Testing #
47+
###########
48+
.watchr
49+
.rspec
50+
spec/*
51+
spec/fixtures/*
52+
test/*
53+
features/*
54+
Guardfile
55+
Procfile
56+
57+
# SCM #
58+
#######
59+
.git
60+
*/.git
61+
.gitignore
62+
.gitmodules
63+
.gitconfig
64+
.gitattributes
65+
.svn
66+
*/.bzr/*
67+
*/.hg/*
68+
*/.svn/*
69+
70+
# Berkshelf #
71+
#############
72+
Berksfile
73+
Berksfile.lock
74+
cookbooks/*
75+
tmp
76+
77+
# Cookbooks #
78+
#############
79+
CONTRIBUTING
80+
CHANGELOG*
81+
82+
# Strainer #
83+
############
84+
Colanderfile
85+
Strainerfile
86+
.colander
87+
.strainer
88+
89+
# Vagrant #
90+
###########
91+
.vagrant
92+
Vagrantfile
93+
94+
# Travis #
95+
##########
96+
.travis.yml

Diff for: metadata.rb

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name "gitlab"
2+
maintainer "Andrew Fecheyr"
3+
maintainer_email "[email protected]"
4+
license "MIT"
5+
description "Installs/Configures gitlab"
6+
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
7+
version "0.1.0"
8+

Diff for: recipes/default.rb

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#
2+
# Cookbook Name:: gitlab
3+
# Recipe:: default
4+
#
5+
# Copyright (C) 2013 Andrew Fecheyr
6+
#
7+
# Permission is hereby granted, free of charge, to any person obtaining
8+
# a copy of this software and associated documentation files (the
9+
# "Software"), to deal in the Software without restriction, including
10+
# without limitation the rights to use, copy, modify, merge, publish,
11+
# distribute, sublicense, and/or sell copies of the Software, and to
12+
# permit persons to whom the Software is furnished to do so, subject to
13+
# the following conditions:
14+
#
15+
# The above copyright notice and this permission notice shall be
16+
# included in all copies or substantial portions of the Software.
17+
#
18+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
19+
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20+
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
21+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
22+
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
23+
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
24+
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25+
#

0 commit comments

Comments
 (0)