1
1
# Cookbook Name:: cloudstack
2
2
# Attribute:: systemvm_template
3
3
# Author:: Pierre-Luc Dion (<[email protected] >)
4
- # Copyright 2015 , CloudOps, Inc.
4
+ # Copyright 2018 , CloudOps, Inc.
5
5
#
6
6
# Licensed under the Apache License, Version 2.0 (the "License");
7
7
# you may not use this file except in compliance with the License.
16
16
# limitations under the License.
17
17
#
18
18
19
-
20
19
# System VM templates
21
20
default [ 'cloudstack' ] [ 'cloud-install-sys-tmplt' ] = '/usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt'
22
21
23
22
case node [ 'cloudstack' ] [ 'release_major' ]
23
+ # when ? : if system VM template not define cloudstack_system_template will look
24
+ # for the URL define into cloudstack database.
25
+
26
+ when '4.11'
27
+ default [ 'cloudstack' ] [ 'systemvm' ] = {
28
+ 'xenserver' => 'http://download.cloudstack.org/systemvm/4.11/systemvmtemplate-4.11.1-xen.vhd.bz2' ,
29
+ 'vmware' => 'http://download.cloudstack.org/systemvm/4.11/systemvmtemplate-4.11.1-vmware.ova' ,
30
+ 'kvm' => 'http://download.cloudstack.org/systemvm/4.11/systemvmtemplate-4.11.1-kvm.qcow2.bz2' ,
31
+ 'lxc' => 'http://download.cloudstack.org/systemvm/4.11/systemvmtemplate-4.11.1-kvm.qcow2.bz2' ,
32
+ 'hyperv' => 'http://download.cloudstack.org/systemvm/4.11/systemvmtemplate-4.11.1-hyperv.vhd.zip' ,
33
+ 'ovm3' => 'http://download.cloudstack.org/systemvm/4.11/systemvmtemplate-4.11.1-ovm.raw.bz2' ,
34
+ }
24
35
when '4.6' , '4.7' , '4.8' , '4.9'
25
- default [ 'cloudstack' ] [ 'systemvm' ] = {
26
- 'xenserver' => 'http://cloudstack.apt-get.eu/systemvm/4.6/systemvm64template-4.6.0-xen.vhd.bz2' ,
27
- 'vmware' => 'http://cloudstack.apt-get.eu/systemvm/4.6/systemvm64template-4.6.0-vmware.ova' ,
28
- 'kvm' => 'http://cloudstack.apt-get.eu/systemvm/4.6/systemvm64template-4.6.0-kvm.qcow2.bz2' ,
29
- 'lxc' => 'http://cloudstack.apt-get.eu/systemvm/4.6/systemvm64template-4.6.0-kvm.qcow2.bz2' ,
30
- 'hyperv' => 'http://cloudstack.apt-get.eu/systemvm/4.6/systemvm64template-4.6.0-hyperv.vhd.zip' ,
31
- 'ovm3' => 'http://cloudstack.apt-get.eu/systemvm/4.6/systemvm64template-4.6.0-ovm.raw.bz2'
32
- }
36
+ default [ 'cloudstack' ] [ 'systemvm' ] = {
37
+ 'xenserver' => 'http://cloudstack.apt-get.eu/systemvm/4.6/systemvm64template-4.6.0-xen.vhd.bz2' ,
38
+ 'vmware' => 'http://cloudstack.apt-get.eu/systemvm/4.6/systemvm64template-4.6.0-vmware.ova' ,
39
+ 'kvm' => 'http://cloudstack.apt-get.eu/systemvm/4.6/systemvm64template-4.6.0-kvm.qcow2.bz2' ,
40
+ 'lxc' => 'http://cloudstack.apt-get.eu/systemvm/4.6/systemvm64template-4.6.0-kvm.qcow2.bz2' ,
41
+ 'hyperv' => 'http://cloudstack.apt-get.eu/systemvm/4.6/systemvm64template-4.6.0-hyperv.vhd.zip' ,
42
+ 'ovm3' => 'http://cloudstack.apt-get.eu/systemvm/4.6/systemvm64template-4.6.0-ovm.raw.bz2' ,
43
+ }
33
44
when '4.5'
34
- default [ 'cloudstack' ] [ 'systemvm' ] = {
35
- 'xenserver' => 'http://cloudstack.apt-get.eu/systemvm/4.5/systemvm64template-4.5-xen.vhd.bz2' ,
36
- 'vmware' => 'http://cloudstack.apt-get.eu/systemvm/4.5/systemvm64template-4.5-vmware.ova' ,
37
- 'kvm' => 'http://cloudstack.apt-get.eu/systemvm/4.5/systemvm64template-4.5-kvm.qcow2.bz2' ,
38
- 'lxc' => 'http://cloudstack.apt-get.eu/systemvm/4.5/systemvm64template-4.5-kvm.qcow2.bz2' ,
39
- 'hyperv' => 'http://cloudstack.apt-get.eu/systemvm/4.5/systemvm64template-4.5-hyperv.vhd.zip'
40
- }
45
+ default [ 'cloudstack' ] [ 'systemvm' ] = {
46
+ 'xenserver' => 'http://cloudstack.apt-get.eu/systemvm/4.5/systemvm64template-4.5-xen.vhd.bz2' ,
47
+ 'vmware' => 'http://cloudstack.apt-get.eu/systemvm/4.5/systemvm64template-4.5-vmware.ova' ,
48
+ 'kvm' => 'http://cloudstack.apt-get.eu/systemvm/4.5/systemvm64template-4.5-kvm.qcow2.bz2' ,
49
+ 'lxc' => 'http://cloudstack.apt-get.eu/systemvm/4.5/systemvm64template-4.5-kvm.qcow2.bz2' ,
50
+ 'hyperv' => 'http://cloudstack.apt-get.eu/systemvm/4.5/systemvm64template-4.5-hyperv.vhd.zip' ,
51
+ }
41
52
when '4.4'
42
- default [ 'cloudstack' ] [ 'systemvm' ] = {
43
- 'xenserver' => 'http://cloudstack.apt-get.eu/systemvm/4.4/systemvm64template-4.4.1-7-xen.vhd.bz2' ,
44
- 'vmware' => 'http://cloudstack.apt-get.eu/systemvm/4.4/systemvm64template-4.4.1-7-vmware.ova' ,
45
- 'kvm' => 'http://cloudstack.apt-get.eu/systemvm/4.4/systemvm64template-4.4.1-7-kvm.qcow2.bz2' ,
46
- 'lxc' => 'http://cloudstack.apt-get.eu/systemvm/4.4/systemvm64template-4.4.1-7-kvm.qcow2.bz2' ,
47
- 'hyperv' => 'http://cloudstack.apt-get.eu/systemvm/4.4/systemvm64template-4.4.1-7-hyperv.vhd'
48
- }
53
+ default [ 'cloudstack' ] [ 'systemvm' ] = {
54
+ 'xenserver' => 'http://cloudstack.apt-get.eu/systemvm/4.4/systemvm64template-4.4.1-7-xen.vhd.bz2' ,
55
+ 'vmware' => 'http://cloudstack.apt-get.eu/systemvm/4.4/systemvm64template-4.4.1-7-vmware.ova' ,
56
+ 'kvm' => 'http://cloudstack.apt-get.eu/systemvm/4.4/systemvm64template-4.4.1-7-kvm.qcow2.bz2' ,
57
+ 'lxc' => 'http://cloudstack.apt-get.eu/systemvm/4.4/systemvm64template-4.4.1-7-kvm.qcow2.bz2' ,
58
+ 'hyperv' => 'http://cloudstack.apt-get.eu/systemvm/4.4/systemvm64template-4.4.1-7-hyperv.vhd' ,
59
+ }
49
60
when '4.3'
50
- default [ 'cloudstack' ] [ 'systemvm' ] = {
51
- 'xenserver' => 'http://download.cloud.com/templates/4.3/systemvm64template-2014-06-23-master-xen.vhd.bz2' ,
52
- 'vmware' => 'http://download.cloud.com/templates/4.3/systemvm64template-2014-06-23-master-vmware.ova' ,
53
- 'kvm' => 'http://download.cloud.com/templates/4.3/systemvm64template-2014-06-23-master-kvm.qcow2.bz2' ,
54
- 'lxc' => 'http://download.cloud.com/templates/4.3/systemvm64template-2014-06-23-master-kvm.qcow2.bz2' ,
55
- 'hyperv' => 'http://download.cloud.com/templates/4.3/systemvm64template-2014-06-23-master-hyperv.vhd.bz2'
56
- }
61
+ default [ 'cloudstack' ] [ 'systemvm' ] = {
62
+ 'xenserver' => 'http://download.cloud.com/templates/4.3/systemvm64template-2014-06-23-master-xen.vhd.bz2' ,
63
+ 'vmware' => 'http://download.cloud.com/templates/4.3/systemvm64template-2014-06-23-master-vmware.ova' ,
64
+ 'kvm' => 'http://download.cloud.com/templates/4.3/systemvm64template-2014-06-23-master-kvm.qcow2.bz2' ,
65
+ 'lxc' => 'http://download.cloud.com/templates/4.3/systemvm64template-2014-06-23-master-kvm.qcow2.bz2' ,
66
+ 'hyperv' => 'http://download.cloud.com/templates/4.3/systemvm64template-2014-06-23-master-hyperv.vhd.bz2' ,
67
+ }
57
68
when '4.2'
58
- default [ 'cloudstack' ] [ 'systemvm' ] = {
59
- 'xenserver' => 'http://d21ifhcun6b1t2.cloudfront.net/templates/4.2/systemvmtemplate-2013-07-12-master-xen.vhd.bz2' ,
60
- 'vmware' => 'http://d21ifhcun6b1t2.cloudfront.net/templates/4.2/systemvmtemplate-4.2-vh7.ova' ,
61
- 'kvm' => 'http://d21ifhcun6b1t2.cloudfront.net/templates/4.2/systemvmtemplate-2013-06-12-master-kvm.qcow2.bz2' ,
62
- 'lxc' => 'http://d21ifhcun6b1t2.cloudfront.net/templates/acton/acton-systemvm-02062012.qcow2.bz2'
63
- }
64
- # when ? : if system VM template not define cloudstack_system_template will look
65
- # for the URL define into cloudstack database.
66
- end
69
+ default [ 'cloudstack' ] [ 'systemvm' ] = {
70
+ 'xenserver' => 'http://d21ifhcun6b1t2.cloudfront.net/templates/4.2/systemvmtemplate-2013-07-12-master-xen.vhd.bz2' ,
71
+ 'vmware' => 'http://d21ifhcun6b1t2.cloudfront.net/templates/4.2/systemvmtemplate-4.2-vh7.ova' ,
72
+ 'kvm' => 'http://d21ifhcun6b1t2.cloudfront.net/templates/4.2/systemvmtemplate-2013-06-12-master-kvm.qcow2.bz2' ,
73
+ 'lxc' => 'http://d21ifhcun6b1t2.cloudfront.net/templates/acton/acton-systemvm-02062012.qcow2.bz2' ,
74
+ }
75
+ end
0 commit comments