Skip to content

Commit e9e7641

Browse files
committed
README formatting
1 parent 630a48c commit e9e7641

File tree

1 file changed

+19
-20
lines changed

1 file changed

+19
-20
lines changed

README.md

+19-20
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
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.
44

5-
65
Tested on CentOS 7
76
Some parts work with Ubuntu 16.04 but this cookbook does not perform all configuraiton required for CloudStack Management-server on Ubuntu.
87

@@ -42,7 +41,7 @@ More info on: http://cloudstack.apache.org/
4241
- `yum` - packages management
4342
- `apt` - packages management
4443
- `mysql` - for MySQL database server and client
45-
- `sudo` - to configure sudoers for user "cloud"
44+
- `sudo` - to configure sudoers for user `cloud`
4645

4746
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]`.
4847

@@ -54,18 +53,18 @@ Create MySQL database and connection configuration used by CloudStack management
5453

5554
```ruby
5655
# Using attributes
57-
cloudstack_setup_database node["cloudstack"]["db"]["host"] do
58-
root_user node["cloudstack"]["db"]["rootusername"]
59-
root_password node["cloudstack"]["db"]["rootpassword"]
60-
user node["cloudstack"]["db"]["username"]
61-
password node["cloudstack"]["db"]["password"]
56+
cloudstack_setup_database node['cloudstack']['db']['host'] do
57+
root_user node['cloudstack']['db']['rootusername']
58+
root_password node['cloudstack']['db']['rootpassword']
59+
user node['cloudstack']['db']['username']
60+
password node['cloudstack']['db']['password']
6261
action :create
6362
end
6463
```
6564

6665
```ruby
6766
# using mysql cookbook and CloudStack default passwords
68-
cloudstack_setup_database node["cloudstack"]["db"]["host"] do
67+
cloudstack_setup_database node['cloudstack']['db']['host'] do
6968
action :create
7069
end
7170
```
@@ -78,11 +77,11 @@ Download initial SystemVM template prior to initialize a CloudStack Region. clou
7877
# Using attributes
7978
cloudstack_system_template 'xenserver' do
8079
url node['cloudstack']['systemvm']['xenserver']
81-
nfs_path node["cloudstack"]["secondary"]["path"]
82-
nfs_server node["cloudstack"]["secondary"]["host"]
83-
db_user node["cloudstack"]["db"]["username"]
84-
db_password node["cloudstack"]["db"]["password"]
85-
db_host node["cloudstack"]["db"]["host"]
80+
nfs_path node['cloudstack']['secondary']['path']
81+
nfs_server node['cloudstack']['secondary']['host']
82+
db_user node['cloudstack']['db']['username']
83+
db_password node['cloudstack']['db']['password']
84+
db_host node['cloudstack']['db']['host']
8685
end
8786
```
8887

@@ -118,19 +117,19 @@ Generate api keys for account. Currently working only for admin account.
118117

119118
Will update attributes:
120119

121-
- `node["cloudstack"]["admin"]["api_key"]`
122-
- `node["cloudstack"]["admin"]["secret_key"]`
120+
- `node['cloudstack']['admin']['api_key']`
121+
- `node['cloudstack']['admin']['secret_key']`
123122

124123
``` ruby
125124
# Create API key if now exist in Cloudstack and update node attributes
126-
cloudstack_api_keys "admin" do
125+
cloudstack_api_keys 'admin' do
127126
action :create
128127
end
129128
```
130129

131130
``` ruby
132131
# Generate new API Keys
133-
cloudstack_api_keys "admin" do
132+
cloudstack_api_keys 'admin' do
134133
action :reset
135134
end
136135
```
@@ -140,9 +139,9 @@ end
140139
Update Global Settings values.
141140

142141
``` ruby
143-
cloudstack_global_setting "expunge.delay" do
144-
value "80"
145-
notifies :restart, "service[cloudstack-management]", :delayed
142+
cloudstack_global_setting 'expunge.delay' do
143+
value '80'
144+
notifies :restart, 'service[cloudstack-management]', :delayed
146145
end
147146
```
148147

0 commit comments

Comments
 (0)