Skip to content

Commit 2d52b4d

Browse files
committed
inital import
0 parents  commit 2d52b4d

File tree

12 files changed

+304
-0
lines changed

12 files changed

+304
-0
lines changed

.gitignore

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
*~
2+
*#
3+
.#*
4+
\#*#
5+
.*.sw[a-z]
6+
*.un~
7+
pkg/
8+
9+
# Berkshelf
10+
.vagrant
11+
/cookbooks
12+
Berksfile.lock
13+
14+
# Bundler
15+
Gemfile.lock
16+
bin/*
17+
.bundle/*
18+
19+
.kitchen/
20+
.kitchen.local.yml

Berksfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source 'https://api.berkshelf.com'
2+
3+
metadata

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# 0.1.0
2+
3+
Initial release of php-redis
4+
5+
* Enhancements
6+
* an enhancement
7+
8+
* Bug Fixes
9+
* a bug fix

Gemfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
source 'https://rubygems.org'
2+
3+
gem 'berkshelf'
4+
5+
# Uncomment these lines if you want to live on the Edge:
6+
#
7+
# group :development do
8+
# gem "berkshelf", github: "berkshelf/berkshelf"
9+
# gem "vagrant", github: "mitchellh/vagrant", tag: "v1.5.2"
10+
# end
11+
#
12+
# group :plugins do
13+
# gem "vagrant-berkshelf", github: "berkshelf/vagrant-berkshelf"
14+
# gem "vagrant-omnibus", github: "schisamo/vagrant-omnibus"
15+
# end
16+
17+
gem 'test-kitchen'
18+
gem 'kitchen-vagrant'

LICENSE

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Copyright (C) 2014 YOUR_NAME
2+
3+
All rights reserved - Do Not Redistribute

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# php-redis-cookbook
2+
3+
Chef cookbook to download and install the PHP extension redis - https://github.com/nicolasff/phpredis
4+
5+
6+
## Attributes
7+
8+
```
9+
node['php_redis']['url'] = 'https://github.com/nicolasff/phpredis/archive/master.tar.gz'
10+
```
11+
12+
## Usage
13+
14+
### php-redis::default
15+
16+
Include `php-redis` in your node's `run_list`. This will download and install redis.
17+
18+
```json
19+
{
20+
"run_list": [
21+
"recipe[php-redis::default]"
22+
]
23+
}
24+
```
25+
26+
## Contributing
27+
28+
1. Fork the repository on Github
29+
2. Create a named feature branch (i.e. `add-new-recipe`)
30+
3. Write you change
31+
4. Write tests for your change (if applicable)
32+
5. Run the tests, ensuring they all pass
33+
6. Submit a Pull Request

Thorfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# encoding: utf-8
2+
3+
require 'bundler'
4+
require 'bundler/setup'
5+
require 'berkshelf/thor'

Vagrantfile

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

attributes/default.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
default['php_redis']['url'] = 'https://github.com/nicolasff/phpredis/archive/master.tar.gz'

chefignore

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
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+
cookbooks/*
73+
tmp
74+
75+
# Cookbooks #
76+
#############
77+
CONTRIBUTING
78+
CHANGELOG*
79+
80+
# Strainer #
81+
############
82+
Colanderfile
83+
Strainerfile
84+
.colander
85+
.strainer
86+
87+
# Vagrant #
88+
###########
89+
.vagrant
90+
Vagrantfile
91+
92+
# Travis #
93+
##########
94+
.travis.yml

0 commit comments

Comments
 (0)