chef-vpc-toolkit 2.0.0
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/.gitignore +2 -0
- data/COPYING +26 -0
- data/README.rdoc +75 -0
- data/Rakefile +34 -0
- data/VERSION +1 -0
- data/bin/chef-vpc-toolkit +80 -0
- data/config/chef_installer.yml +20 -0
- data/config/databags.json.example +24 -0
- data/config/nodes.json +10 -0
- data/config/server_group.json +16 -0
- data/contrib/doc/ChefVPCToolkit.odt +0 -0
- data/contrib/doc/ChefVPCToolkit.pdf +0 -0
- data/contrib/etc/chef_vpc_toolkit.conf +10 -0
- data/contrib/rake/Rakefile +23 -0
- data/cookbook-repos/local/README +5 -0
- data/cookbook-repos/local/Rakefile +66 -0
- data/cookbook-repos/local/certificates/README +1 -0
- data/cookbook-repos/local/config/client.rb.example +21 -0
- data/cookbook-repos/local/config/knife.rb.example +10 -0
- data/cookbook-repos/local/config/rake.rb +60 -0
- data/cookbook-repos/local/config/server.rb.example +42 -0
- data/cookbook-repos/local/config/solo.rb.example +13 -0
- data/cookbook-repos/local/cookbooks/README +4 -0
- data/cookbook-repos/local/cookbooks/motd/README.rdoc +15 -0
- data/cookbook-repos/local/cookbooks/motd/attributes/motd.rb +1 -0
- data/cookbook-repos/local/cookbooks/motd/metadata.rb +6 -0
- data/cookbook-repos/local/cookbooks/motd/recipes/default.rb +13 -0
- data/cookbook-repos/local/cookbooks/motd/templates/default/motd.erb +1 -0
- data/cookbook-repos/local/roles/README +4 -0
- data/lib/chef-vpc-toolkit.rb +6 -0
- data/lib/chef-vpc-toolkit/chef-0.9.bash +232 -0
- data/lib/chef-vpc-toolkit/chef_bootstrap/centos.bash +47 -0
- data/lib/chef-vpc-toolkit/chef_bootstrap/fedora.bash +41 -0
- data/lib/chef-vpc-toolkit/chef_bootstrap/rhel.bash +38 -0
- data/lib/chef-vpc-toolkit/chef_bootstrap/ubuntu.bash +32 -0
- data/lib/chef-vpc-toolkit/chef_installer.rb +276 -0
- data/lib/chef-vpc-toolkit/cloud_files.bash +67 -0
- data/lib/chef-vpc-toolkit/cloud_servers_vpc.rb +285 -0
- data/lib/chef-vpc-toolkit/http_util.rb +117 -0
- data/lib/chef-vpc-toolkit/ssh_util.rb +22 -0
- data/lib/chef-vpc-toolkit/util.rb +56 -0
- data/lib/chef-vpc-toolkit/version.rb +8 -0
- data/rake/chef_vpc_toolkit.rake +284 -0
- data/test/cloud_servers_vpc_test.rb +174 -0
- data/test/test_helper.rb +25 -0
- metadata +153 -0
data/test/test_helper.rb
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
require 'test/unit'
|
2
|
+
require 'rubygems'
|
3
|
+
require 'mocha'
|
4
|
+
CHEF_VPC_PROJECT = "#{File.dirname(__FILE__)}" unless defined?(CHEF_VPC_PROJECT)
|
5
|
+
|
6
|
+
Dir[File.join(File.dirname(__FILE__), '/../lib', '*.rb')].each do |lib|
|
7
|
+
require(lib)
|
8
|
+
end
|
9
|
+
|
10
|
+
require 'tempfile'
|
11
|
+
require 'fileutils'
|
12
|
+
|
13
|
+
class TmpDir
|
14
|
+
|
15
|
+
def self.new_tmp_dir(prefix="chef-cloud-toolkit")
|
16
|
+
|
17
|
+
tmp_file=Tempfile.new prefix
|
18
|
+
path=tmp_file.path
|
19
|
+
tmp_file.close(true)
|
20
|
+
FileUtils.mkdir_p path
|
21
|
+
return path
|
22
|
+
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
metadata
ADDED
@@ -0,0 +1,153 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: chef-vpc-toolkit
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 15
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 2
|
8
|
+
- 0
|
9
|
+
- 0
|
10
|
+
version: 2.0.0
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Dan Prince
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2010-10-26 00:00:00 -04:00
|
19
|
+
default_executable: chef-vpc-toolkit
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
name: rake
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 3
|
30
|
+
segments:
|
31
|
+
- 0
|
32
|
+
version: "0"
|
33
|
+
type: :runtime
|
34
|
+
version_requirements: *id001
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: builder
|
37
|
+
prerelease: false
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
hash: 3
|
44
|
+
segments:
|
45
|
+
- 0
|
46
|
+
version: "0"
|
47
|
+
type: :runtime
|
48
|
+
version_requirements: *id002
|
49
|
+
- !ruby/object:Gem::Dependency
|
50
|
+
name: json
|
51
|
+
prerelease: false
|
52
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
53
|
+
none: false
|
54
|
+
requirements:
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
hash: 3
|
58
|
+
segments:
|
59
|
+
- 0
|
60
|
+
version: "0"
|
61
|
+
type: :runtime
|
62
|
+
version_requirements: *id003
|
63
|
+
description: The Chef VPC Toolkit is a set of Rake tasks that provide a framework to help automate the creation and configuration of VPC server groups in the cloud.
|
64
|
+
email: dan.prince@rackspace.com
|
65
|
+
executables:
|
66
|
+
- chef-vpc-toolkit
|
67
|
+
extensions: []
|
68
|
+
|
69
|
+
extra_rdoc_files:
|
70
|
+
- README.rdoc
|
71
|
+
files:
|
72
|
+
- .gitignore
|
73
|
+
- COPYING
|
74
|
+
- README.rdoc
|
75
|
+
- Rakefile
|
76
|
+
- VERSION
|
77
|
+
- bin/chef-vpc-toolkit
|
78
|
+
- config/chef_installer.yml
|
79
|
+
- config/databags.json.example
|
80
|
+
- config/nodes.json
|
81
|
+
- config/server_group.json
|
82
|
+
- contrib/doc/ChefVPCToolkit.odt
|
83
|
+
- contrib/doc/ChefVPCToolkit.pdf
|
84
|
+
- contrib/etc/chef_vpc_toolkit.conf
|
85
|
+
- contrib/rake/Rakefile
|
86
|
+
- cookbook-repos/local/README
|
87
|
+
- cookbook-repos/local/Rakefile
|
88
|
+
- cookbook-repos/local/certificates/README
|
89
|
+
- cookbook-repos/local/config/client.rb.example
|
90
|
+
- cookbook-repos/local/config/knife.rb.example
|
91
|
+
- cookbook-repos/local/config/rake.rb
|
92
|
+
- cookbook-repos/local/config/server.rb.example
|
93
|
+
- cookbook-repos/local/config/solo.rb.example
|
94
|
+
- cookbook-repos/local/cookbooks/README
|
95
|
+
- cookbook-repos/local/cookbooks/motd/README.rdoc
|
96
|
+
- cookbook-repos/local/cookbooks/motd/attributes/motd.rb
|
97
|
+
- cookbook-repos/local/cookbooks/motd/metadata.rb
|
98
|
+
- cookbook-repos/local/cookbooks/motd/recipes/default.rb
|
99
|
+
- cookbook-repos/local/cookbooks/motd/templates/default/motd.erb
|
100
|
+
- cookbook-repos/local/roles/README
|
101
|
+
- lib/chef-vpc-toolkit.rb
|
102
|
+
- lib/chef-vpc-toolkit/chef-0.9.bash
|
103
|
+
- lib/chef-vpc-toolkit/chef_bootstrap/centos.bash
|
104
|
+
- lib/chef-vpc-toolkit/chef_bootstrap/fedora.bash
|
105
|
+
- lib/chef-vpc-toolkit/chef_bootstrap/rhel.bash
|
106
|
+
- lib/chef-vpc-toolkit/chef_bootstrap/ubuntu.bash
|
107
|
+
- lib/chef-vpc-toolkit/chef_installer.rb
|
108
|
+
- lib/chef-vpc-toolkit/cloud_files.bash
|
109
|
+
- lib/chef-vpc-toolkit/cloud_servers_vpc.rb
|
110
|
+
- lib/chef-vpc-toolkit/http_util.rb
|
111
|
+
- lib/chef-vpc-toolkit/ssh_util.rb
|
112
|
+
- lib/chef-vpc-toolkit/util.rb
|
113
|
+
- lib/chef-vpc-toolkit/version.rb
|
114
|
+
- rake/chef_vpc_toolkit.rake
|
115
|
+
- test/cloud_servers_vpc_test.rb
|
116
|
+
- test/test_helper.rb
|
117
|
+
has_rdoc: true
|
118
|
+
homepage: http://github.com/rackspace/chef-vpc-toolkit
|
119
|
+
licenses: []
|
120
|
+
|
121
|
+
post_install_message:
|
122
|
+
rdoc_options:
|
123
|
+
- --charset=UTF-8
|
124
|
+
require_paths:
|
125
|
+
- lib
|
126
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
127
|
+
none: false
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
hash: 3
|
132
|
+
segments:
|
133
|
+
- 0
|
134
|
+
version: "0"
|
135
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
136
|
+
none: false
|
137
|
+
requirements:
|
138
|
+
- - ">="
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
hash: 3
|
141
|
+
segments:
|
142
|
+
- 0
|
143
|
+
version: "0"
|
144
|
+
requirements: []
|
145
|
+
|
146
|
+
rubyforge_project:
|
147
|
+
rubygems_version: 1.3.7
|
148
|
+
signing_key:
|
149
|
+
specification_version: 3
|
150
|
+
summary: Rake tasks to automate and configure server groups in the cloud with Chef.
|
151
|
+
test_files:
|
152
|
+
- test/cloud_servers_vpc_test.rb
|
153
|
+
- test/test_helper.rb
|