Skip to content

Commit 73fb287

Browse files
author
Hubert Hesse
committed
release 0.1 vagrant config
1 parent 3047623 commit 73fb287

File tree

3 files changed

+103
-0
lines changed

3 files changed

+103
-0
lines changed

Cheffile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
site "https://community.opscode.com/api/v1/"
2+
3+
cookbook 'apt'
4+
cookbook 'build-essential'
5+
cookbook 'postgresql', git: 'https://github.com/phlipper/chef-postgresql'
6+
cookbook 'ruby_build'
7+
cookbook 'rbenv', git: 'https://github.com/fnichol/chef-rbenv'
8+
cookbook 'vim'
9+
cookbook 'nano'

Cheffile.lock

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
SITE
2+
remote: https://community.opscode.com/api/v1/
3+
specs:
4+
apt (2.6.0)
5+
build-essential (2.0.6)
6+
nano (1.0.0)
7+
ruby_build (0.8.0)
8+
vim (1.1.2)
9+
10+
GIT
11+
remote: https://github.com/fnichol/chef-rbenv
12+
ref: master
13+
sha: 0a3018634bafe58ad21c6ee271af015220e444b9
14+
specs:
15+
rbenv (0.7.3)
16+
17+
GIT
18+
remote: https://github.com/phlipper/chef-postgresql
19+
ref: master
20+
sha: 4ed030dd3f6c770dd0f6a7a9bdc20f48ede448e0
21+
specs:
22+
postgresql (0.14.1)
23+
apt (>= 1.9.0)
24+
25+
DEPENDENCIES
26+
apt (>= 0)
27+
build-essential (>= 0)
28+
nano (>= 0)
29+
postgresql (>= 0)
30+
rbenv (>= 0)
31+
ruby_build (>= 0)
32+
vim (>= 0)
33+

Vagrantfile

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# -*- mode: ruby -*-
2+
# vi: set ft=ruby :
3+
4+
Vagrant.configure("2") do |config|
5+
config.vm.box = "ubuntu/trusty64"
6+
config.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box"
7+
#config.vm.box = "ubuntu/trusty32"
8+
#config.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-i386-vagrant-disk1.box"
9+
10+
config.vm.provision :chef_solo do |chef|
11+
chef.cookbooks_path = ["cookbooks", "site-cookbooks"]
12+
13+
chef.add_recipe "apt"
14+
chef.add_recipe "ruby_build"
15+
chef.add_recipe "rbenv::user"
16+
chef.add_recipe "rbenv::vagrant"
17+
chef.add_recipe "nano"
18+
chef.add_recipe "vim"
19+
chef.add_recipe "postgresql::server"
20+
chef.add_recipe "postgresql::client"
21+
chef.add_recipe "postgresql::libpq"
22+
23+
chef.json = {
24+
rbenv: {
25+
user_installs: [{
26+
user: 'vagrant',
27+
rubies: ["2.1.3"],
28+
global: "2.1.3",
29+
gems: {
30+
"2.1.3" => [
31+
{ name: "bundler" }
32+
]
33+
}
34+
}]
35+
},
36+
postgresql: {
37+
users: [
38+
{
39+
username: "postgres",
40+
password: "",
41+
superuser: true,
42+
createdb: true,
43+
login: true
44+
},
45+
],
46+
databases: [
47+
{
48+
name: "hpi_swt2_dev",
49+
owner: "postgres",
50+
template: "template0",
51+
encoding: "UTF-8",
52+
locale: "en_US.UTF-8",
53+
extensions: "hstore"
54+
}
55+
]
56+
},
57+
58+
}
59+
end
60+
61+
end

0 commit comments

Comments
 (0)