|
2 | 2 | # Cookbook Name:: cloudstack |
3 | 3 | # Attribute:: default |
4 | 4 | # Author:: Pierre-Luc Dion (<[email protected]>) |
5 | | -# Copyright 2015, CloudOps, Inc. |
| 5 | +# Copyright 2018, CloudOps, Inc. |
6 | 6 | # |
7 | 7 | # Licensed under the Apache License, Version 2.0 (the "License"); |
8 | 8 | # you may not use this file except in compliance with the License. |
|
20 | 20 | # Apache repos: |
21 | 21 | ############### |
22 | 22 | # version = version of package to install if not define = latest from the repo |
23 | | -default['cloudstack']['version'] = "" |
| 23 | +default['cloudstack']['version'] = '' |
24 | 24 | # relase_major = release version, used for the repo URL |
25 | | -if node['cloudstack']['version'].empty? |
26 | | - default['cloudstack']['release_major'] = "4.9" |
27 | | -else |
28 | | - default['cloudstack']['release_major'] = "#{node['cloudstack']['version'].split('.')[0]}.#{node['cloudstack']['version'].split('.')[1]}" |
29 | | -end |
| 25 | +default['cloudstack']['release_major'] = if node['cloudstack']['version'].empty? |
| 26 | + '4.11' |
| 27 | + else |
| 28 | + "#{node['cloudstack']['version'].split('.')[0]}.#{node['cloudstack']['version'].split('.')[1]}" |
| 29 | + end |
30 | 30 |
|
31 | 31 | # yum repo URL |
32 | 32 | case node['platform'] |
33 | 33 | when 'centos', 'redhat', 'fedora', 'oracle' |
34 | 34 | default['cloudstack']['repo_url'] = "http://cloudstack.apt-get.eu/centos/$releasever/#{node['cloudstack']['release_major']}/" |
35 | 35 | default['cloudstack']['repo_sign'] = '' |
36 | | - #default['cloudstack']['repo_sign'] = 'http://cloudstack.apt-get.eu/RPM-GPG-KEY' |
| 36 | + # default['cloudstack']['repo_sign'] = 'http://cloudstack.apt-get.eu/RPM-GPG-KEY' |
37 | 37 | default['cloudstack']['repo_enabled'] = true |
38 | 38 | default['cloudstack']['repo_metadata_expire'] = '6h' |
39 | 39 | when 'ubuntu', 'debian' |
40 | | - default['cloudstack']['repo_url'] = "http://cloudstack.apt-get.eu/ubuntu" |
| 40 | + default['cloudstack']['repo_url'] = 'http://cloudstack.apt-get.eu/ubuntu' |
41 | 41 | default['cloudstack']['repo_sign'] = 'http://cloudstack.apt-get.eu/release.asc' |
42 | | - default['cloudstack']['repo_trust'] = true # trust the community repo |
| 42 | + default['cloudstack']['repo_trust'] = true # trust the community repo |
43 | 43 | end |
44 | 44 | # apt repo URL |
45 | 45 |
|
46 | | - |
47 | 46 | # Secondary Storage |
48 | | -default['cloudstack']['secondary']['host'] = node["ipaddress"] |
49 | | -default['cloudstack']['secondary']['path'] = "/data/secondary" |
| 47 | +default['cloudstack']['secondary']['host'] = node['ipaddress'] |
| 48 | +default['cloudstack']['secondary']['path'] = '/data/secondary' |
50 | 49 | default['cloudstack']['secondary']['mgt_path'] = node['cloudstack']['secondary']['path'] |
0 commit comments