kamino 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/kamino/version.rb +1 -1
- data/templates/rails/Berksfile.erb +3 -0
- data/templates/rails/Vagrantfile.erb +58 -0
- metadata +3 -1
data/lib/kamino/version.rb
CHANGED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
Vagrant::Config.run do |config|
|
|
2
|
+
# The path to the Berksfile to use with Vagrant Berkshelf
|
|
3
|
+
# config.berkshelf.berksfile_path = "./Berksfile"
|
|
4
|
+
|
|
5
|
+
# An array of symbols representing groups of cookbook described in the Vagrantfile
|
|
6
|
+
# to skip installing and copying to Vagrant's shelf.
|
|
7
|
+
# config.berkshelf.only = []
|
|
8
|
+
|
|
9
|
+
# An array of symbols representing groups of cookbook described in the Vagrantfile
|
|
10
|
+
# to skip installing and copying to Vagrant's shelf.
|
|
11
|
+
# config.berkshelf.except = []
|
|
12
|
+
|
|
13
|
+
config.vm.host_name = "<%= config[:app_name] %>"
|
|
14
|
+
|
|
15
|
+
# Build this from https://github.com/opscode/bento
|
|
16
|
+
config.vm.box = "ubuntu-12.04"
|
|
17
|
+
config.vm.box_url = "https://opscode-vm.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04_chef-11.2.0.box"
|
|
18
|
+
|
|
19
|
+
config.vm.customize do |vm|
|
|
20
|
+
vm.memory_size = 512
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
config.vm.network :hostonly, "<%= config[:host_ip] %>"
|
|
24
|
+
# config.vm.network :bridged
|
|
25
|
+
|
|
26
|
+
config.ssh.max_tries = 40
|
|
27
|
+
config.ssh.timeout = 120
|
|
28
|
+
|
|
29
|
+
config.vm.provision :chef_solo do |chef|
|
|
30
|
+
# chef.data_bags_path = "data_bags"
|
|
31
|
+
chef.json = {
|
|
32
|
+
'dev-stack' => {
|
|
33
|
+
app: { root_dir: '/vagrant' },
|
|
34
|
+
rails: {
|
|
35
|
+
postgresql: {
|
|
36
|
+
development_name: '<%= config[:development_name] %>',
|
|
37
|
+
test_name: '<%= config[:test_name] %>',
|
|
38
|
+
username: '<%= config[:username] %>',
|
|
39
|
+
password: '<%= config[:password] %>'
|
|
40
|
+
} # postgresql
|
|
41
|
+
} # rails
|
|
42
|
+
}, # dev-stack
|
|
43
|
+
|
|
44
|
+
build_essential: { compiletime: true },
|
|
45
|
+
postgresql: {
|
|
46
|
+
password: { postgres: '' },
|
|
47
|
+
|
|
48
|
+
# This is a dev box. Trust everything
|
|
49
|
+
pg_hba: [
|
|
50
|
+
{ type: 'local', db: 'all', user: 'postgres', addr: nil, method: 'trust' },
|
|
51
|
+
{ type: 'local', db: 'all', user: 'all', addr: nil, method: 'trust' }
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
chef.run_list = [ "dev-stack-rails" ]
|
|
57
|
+
end
|
|
58
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kamino
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -73,6 +73,8 @@ files:
|
|
|
73
73
|
- lib/kamino/config.rb
|
|
74
74
|
- lib/kamino/version.rb
|
|
75
75
|
- lib/kamino.rb
|
|
76
|
+
- templates/rails/Berksfile.erb
|
|
77
|
+
- templates/rails/Vagrantfile.erb
|
|
76
78
|
- LICENSE
|
|
77
79
|
- README.md
|
|
78
80
|
homepage: http://github.com/hosh/kamino
|