You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+50-51
Original file line number
Diff line number
Diff line change
@@ -1,42 +1,58 @@
1
-
cloudstack Cookbook
2
-
===================
1
+
# CloudStack Cookbook
3
2
4
3
Install and configure [Apache Cloudstack](http://cloudstack.apache.org) using [Chef](http://www.chef.io/). A wrapper cookbook is prefered in order to Install Apache CloudStack properly, refer to [cloudstack_wrapper cookbook](https://github.com/cloudops/cookbook_cloudstack_wrapper) for example.
Apache CloudStack is open source software designed to deploy and manage large networks of virtual machines, as a highly available, highly scalable Infrastructure as a Service (IaaS) cloud computing platform.
16
35
17
36
More info on: http://cloudstack.apache.org/
18
37
19
-
Requirements
20
-
------------
38
+
## Requirements
39
+
40
+
### Cookbooks
21
41
22
-
#### cookbooks
23
42
-`yum` - packages management
24
43
-`apt` - packages management
25
44
-`mysql` - for MySQL database server and client
26
45
-`sudo` - to configure sudoers for user "cloud"
27
46
28
47
There is a dependency on Ruby gem [cloudstack_ruby_client](https://github.com/chipchilders/cloudstack_ruby_client) for chef which is handle in `recipe[cloudstack::default]`.
29
48
30
-
Resources/Providers
31
-
-------------------
49
+
## Resources / Providers
32
50
33
51
### cloudstack_setup_database
34
52
35
53
Create MySQL database and connection configuration used by CloudStack management-server using `/usr/bin/cloudstack-setup-databases` utility.
36
54
37
-
#### Examples
38
-
39
-
```ruby
55
+
```ruby
40
56
# Using attributes
41
57
cloudstack_setup_database node["cloudstack"]["db"]["host"] do
Download initial SystemVM template prior to initialize a CloudStack Region. cloudstack_system_template require access to CloudStack database which must be initated before executing this ressource. If no URL is provided cloudstack_system_template will use the default URL from the database if available to download the template.
60
76
61
-
#### Examples
62
-
63
-
```ruby
77
+
```ruby
64
78
# Using attributes
65
79
cloudstack_system_template 'xenserver'do
66
80
url node['cloudstack']['systemvm']['xenserver']
@@ -71,19 +85,20 @@ cloudstack_system_template 'xenserver' do
@@ -146,52 +155,43 @@ install CloudStack because of dependency such as MySQL server and system VM
146
155
templates. Refer to [cloudstack_wrapper cookbook](https://github.com/cloudops/cookbook_cloudstack_wrapper)
147
156
to install a fully working CloudStack management-server.
148
157
149
-
150
158
### cloudstack::usage
151
159
152
160
Install, enable and start cloudstack-usage. cloudstack-usage is usefull to collect resource usage from account. This recipe make sure cloudstack-usage run on a cloudstack-management server as it is required.
153
161
154
-
155
162
### cloudstack::kvm_agent
156
163
157
164
Install, enable and start KVM cloudstack-agent. KVM host managed by CloudStack require an agent. This recipe install cloudstack-agent required on a KVM server.
158
165
159
166
Support Ubuntu and CentOS/RHEL KVM server.
160
167
161
-
162
168
### cloudstack::vhd-util
163
169
164
170
Download the tool vhd-util which is not include in CloudStack packages and required to manage XenServer hosts.
165
171
166
-
167
172
### cloudstack::mysql_conf
168
173
169
174
MySQL tunning based on official CloudStack documentation.
170
175
171
-
172
176
### cloudstack::eventbus
173
177
174
178
Configure CloudStack to send Events into RabbitMQ message bus. Work for CloudStack 4.3 and latest. RabbitMQ must be installed and configured somewhere, default values are for localhost.
175
179
176
-
177
180
### cloudstack::default
178
181
179
182
Chef Required dependencies in order to interact with CloudStack.
180
183
181
-
182
-
Attributes
183
-
----------
184
+
## Attributes
184
185
185
186
Attributes can be customized. The cookbook does not support encrypted data bag usage for now.
186
187
187
-
-<tt>node['cloudstack']['yum_repo']</tt> - yum repo url to use, default: http://cloudstack.apt-get.eu/rhel/4.3/
188
-
-<tt>node['cloudstack']['apt_repo']</tt> - apt repo url to use, default: http://cloudstack.apt-get.eu/ubuntu
189
-
-<tt>node['cloudstack']['release_major']</tt> - Major CloudStack release ex: 4.3 or 4.2
190
-
-<tt>node['cloudstack']['version']</tt> - Package version ex: 4.2.1-1.el6
188
+
-`node['cloudstack']['yum_repo']` - YUM repo URL to use, default: http://cloudstack.apt-get.eu/rhel/4.3/
189
+
-`node['cloudstack']['apt_repo']` - APT repo URL to use, default: http://cloudstack.apt-get.eu/ubuntu
190
+
-`node['cloudstack']['release_major']` - Major CloudStack release ex: 4.3 or 4.2
191
+
-`node['cloudstack']['version']` - Package version ex: 4.2.1-1.el6
191
192
193
+
## Contributing
192
194
193
-
Contributing
194
-
------------
195
195
TODO: (optional) If this is a public cookbook, detail the process for contributing. If this is a private cookbook, remove this section.
0 commit comments