build: Add local Ubuntu mirror to target image
[armband.git] / patches / fuel-web / 0001-nailgun-Add-AArch64-Openstack-Mitaka-release-s.patch
1 From: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2 Date: Sat, 14 May 2016 00:53:36 +0200
3 Subject: [PATCH] nailgun: Add AArch64 Openstack Mitaka release(s).
4
5 Add the following Openstack releases:
6
7 - Mitaka on Ubuntu 14.04 (aarch64)
8 - Mitaka on Ubuntu+UCA 14.04 (aarch64)
9
10 Signed-off-by: Stanislaw Kardach <stanislaw.kardach@cavium.com>
11 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
12 ---
13  nailgun/nailgun/fixtures/openstack.yaml | 287 ++++++++++++++++++++++++++++++++
14  1 file changed, 287 insertions(+)
15
16 diff --git a/nailgun/nailgun/fixtures/openstack.yaml b/nailgun/nailgun/fixtures/openstack.yaml
17 index d08a4fc..65646d4 100644
18 --- a/nailgun/nailgun/fixtures/openstack.yaml
19 +++ b/nailgun/nailgun/fixtures/openstack.yaml
20 @@ -2314,3 +2314,302 @@
21              weight: 61
22              type: "checkbox"
23              value: true
24 +- &ubuntu_aarch64_release
25 +  pk: 4
26 +  extend: *base_release
27 +  fields:
28 +    name: "Mitaka on Ubuntu 14.04 (aarch64)"
29 +    version: "mitaka-9.0"
30 +    operating_system: "Ubuntu"
31 +    description: "This option will install the OpenStack Mitaka packages using Ubuntu as a base operating system. With high availability features built in, you are getting a robust, enterprise-grade OpenStack deployment."
32 +    attributes_metadata:
33 +      editable:
34 +        kernel_params:
35 +          kernel:
36 +            value: "console=ttyAMA0,115200 console=ttyS0,115200 net.ifnames=1 biosdevname=0 rootdelay=90 nomodeset"
37 +        repo_setup:
38 +          metadata:
39 +            label: "Repositories"
40 +            weight: 50
41 +            group: "general"
42 +            always_editable: true
43 +          repos:
44 +            type: "custom_repo_configuration"
45 +            extra_priority: null
46 +            description: |
47 +              Please note: the first repository will be considered the operating system mirror that will be used during node provisioning.
48 +              To create a local repository mirror on the Fuel master node, please follow the instructions provided by running "fuel-createmirror --help" on the Fuel master node.
49 +              Please make sure your Fuel master node has Internet access to the repository before attempting to create a mirror.
50 +              For more details, please refer to the documentation (https://docs.mirantis.com/openstack/fuel/fuel-9.0/operations.html#external-ubuntu-ops).
51 +            value:
52 +              - type: "deb"
53 +                name: "ubuntu-local"
54 +                uri: "http://{settings.MASTER_IP}:8080/ubuntu/x86_64"
55 +                suite: "trusty"
56 +                section: "main"
57 +                priority: null
58 +              - type: "deb"
59 +                name: "ubuntu"
60 +                uri: "http://ports.ubuntu.com/"
61 +                suite: "trusty"
62 +                section: "main universe multiverse"
63 +                priority: null
64 +              - type: "deb"
65 +                name: "ubuntu-updates"
66 +                uri: "http://ports.ubuntu.com/"
67 +                suite: "trusty-updates"
68 +                section: "main universe multiverse"
69 +                priority: null
70 +              - type: "deb"
71 +                name: "ubuntu-security"
72 +                uri: "http://ports.ubuntu.com/"
73 +                suite: "trusty-security"
74 +                section: "main universe multiverse"
75 +                priority: null
76 +              - type: "deb"
77 +                name: "mos"
78 +                uri: "http://{settings.MASTER_IP}:8080/{cluster.release.version}/ubuntu/x86_64"
79 +                suite: "mos9.0"
80 +                section: "main restricted"
81 +                priority: 1050
82 +              - type: "deb"
83 +                name: "mos-updates"
84 +                uri: "http://linux.enea.com/mos-repos/ubuntu/{cluster.release.environment_version}"
85 +                suite: "mos9.0-updates"
86 +                section: "main restricted"
87 +                priority: 1050
88 +              - type: "deb"
89 +                name: "mos-security"
90 +                uri: "http://linux.enea.com/mos-repos/ubuntu/{cluster.release.environment_version}"
91 +                suite: "mos9.0-security"
92 +                section: "main restricted"
93 +                priority: 1050
94 +              - type: "deb"
95 +                name: "mos-holdback"
96 +                uri: "http://linux.enea.com/mos-repos/ubuntu/{cluster.release.environment_version}"
97 +                suite: "mos9.0-holdback"
98 +                section: "main restricted"
99 +                priority: 1100
100 +              - type: "deb"
101 +                name: "Auxiliary"
102 +                uri: "http://{settings.MASTER_IP}:8080/{cluster.release.version}/ubuntu/auxiliary"
103 +                suite: "auxiliary"
104 +                section: "main restricted"
105 +                priority: 1150
106 +        provision:
107 +          metadata:
108 +            label: "Provision"
109 +            weight: 80
110 +            group: "general"
111 +            restrictions:
112 +              - condition: "false"
113 +                action: "hide"
114 +          packages:
115 +            label: "Initial packages"
116 +            weight: 10
117 +            type: "textarea"
118 +            value: |
119 +              acl
120 +              anacron
121 +              bash-completion
122 +              bridge-utils
123 +              bsdmainutils
124 +              build-essential
125 +              cloud-init
126 +              curl
127 +              daemonize
128 +              debconf-utils
129 +              gdisk
130 +              grub-efi-arm64
131 +              hpsa-dkms
132 +              hwloc
133 +              i40e-dkms
134 +              linux-firmware
135 +              linux-firmware-nonfree
136 +              linux-headers-generic-lts-trusty
137 +              linux-image-generic-lts-trusty
138 +              lvm2
139 +              mcollective
140 +              mdadm
141 +              multipath-tools
142 +              multipath-tools-boot
143 +              nailgun-agent
144 +              nailgun-mcagents
145 +              network-checker
146 +              ntp
147 +              openssh-client
148 +              openssh-server
149 +              puppet
150 +              python-amqp
151 +              ruby-augeas
152 +              ruby-ipaddress
153 +              ruby-json
154 +              ruby-netaddr
155 +              ruby-openstack
156 +              ruby-shadow
157 +              ruby-stomp
158 +              telnet
159 +              ubuntu-minimal
160 +              ubuntu-standard
161 +              uuid-runtime
162 +              vim
163 +              virt-what
164 +              vlan
165 +      generated:
166 +        repo_setup:
167 +          installer_kernel:
168 +            remote_relative: "dists/trusty/main/installer-arm64/current/images/generic/netboot/vmlinuz"
169 +            local: "/var/www/nailgun/ubuntu/arm64/images/linux"
170 +          installer_initrd:
171 +            remote_relative: "dists/trusty/main/installer-arm64/current/images/generic/netboot/initrd.gz"
172 +            local: "/var/www/nailgun/ubuntu/arm64/images/initrd.gz"
173 +        cobbler:
174 +          profile:
175 +            generator_arg: "ubuntu_1404_arm64"
176 +        provision:
177 +          codename: "trusty"
178 +          image_data:
179 +            /:
180 +              uri: "http://{settings.MASTER_IP}:8080/targetimages/env_{cluster.id}_ubuntu_1404_arm64.img.gz"
181 +              format: "ext4"
182 +              container: "gzip"
183 +            /boot:
184 +              uri: "http://{settings.MASTER_IP}:8080/targetimages/env_{cluster.id}_ubuntu_1404_arm64-boot.img.gz"
185 +              format: "ext2"
186 +              container: "gzip"
187 +    node_attributes:
188 +      cpu_pinning:
189 +        metadata:
190 +          group: "nfv"
191 +          label: "CPU pinning"
192 +          weight: 10
193 +          restrictions:
194 +            - condition: "settings:common.libvirt_type.value != 'kvm'"
195 +              action: "hide"
196 +        nova:
197 +          weight: 10
198 +          description: "Number of CPUs for Nova usage"
199 +          label: "Nova CPU pinning"
200 +          type: "number"
201 +          value: 0
202 +          min: 0
203 +      hugepages:
204 +        metadata:
205 +          group: "nfv"
206 +          label: "Huge Pages"
207 +          weight: 20
208 +          restrictions:
209 +            - condition: "settings:common.libvirt_type.value != 'kvm'"
210 +              action: "hide"
211 +        nova:
212 +          weight: 10
213 +          description: "Nova Huge Pages configuration"
214 +          label: "Nova Huge Pages"
215 +          type: "custom_hugepages"
216 +          value: {}
217 +- pk: 5
218 +  extend: *ubuntu_aarch64_release
219 +  fields:
220 +    name: "Mitaka on Ubuntu+UCA 14.04 (aarch64)"
221 +    version: "mitaka-9.0"
222 +    description: "This option will install the OpenStack Mitaka packages using Ubuntu as a base operating system, including Ubuntu Cloud Archive OpenStack packages. With high availability features built in, you are getting a robust, enterprise-grade OpenStack deployment."
223 +    attributes_metadata:
224 +      editable:
225 +        repo_setup:
226 +          repos:
227 +            type: "custom_repo_configuration"
228 +            extra_priority: null
229 +            description: |
230 +              Please note: the first repository will be considered the operating system mirror that will be used during node provisioning.
231 +              To create a local repository mirror on the Fuel master node, please follow the instructions provided by running "fuel-createmirror --help" on the Fuel master node.
232 +              Please make sure your Fuel master node has Internet access to the repository before attempting to create a mirror.
233 +              For more details, please refer to the documentation (https://docs.mirantis.com/openstack/fuel/fuel-9.0/operations.html#external-ubuntu-ops).
234 +            value:
235 +              - type: "deb"
236 +                name: "ubuntu-local"
237 +                uri: "http://{settings.MASTER_IP}:8080/ubuntu/x86_64"
238 +                suite: "trusty"
239 +                section: "main"
240 +                priority: null
241 +              - type: "deb"
242 +                name: "ubuntu"
243 +                uri: "http://ports.ubuntu.com/"
244 +                suite: "trusty"
245 +                section: "main universe multiverse"
246 +                priority: null
247 +              - type: "deb"
248 +                name: "ubuntu-updates"
249 +                uri: "http://ports.ubuntu.com/"
250 +                suite: "trusty-updates"
251 +                section: "main universe multiverse"
252 +                priority: null
253 +              - type: "deb"
254 +                name: "ubuntu-security"
255 +                uri: "http://ports.ubuntu.com/"
256 +                suite: "trusty-security"
257 +                section: "main universe multiverse"
258 +                priority: null
259 +              - type: "deb"
260 +                name: "uca"
261 +                uri: "http://ubuntu-cloud.archive.canonical.com/ubuntu"
262 +                suite: "trusty-updates/mitaka"
263 +                section: "main"
264 +                priority: 1080
265 +              - type: "deb"
266 +                name: "uca-proposed"
267 +                uri: "http://ubuntu-cloud.archive.canonical.com/ubuntu"
268 +                suite: "trusty-proposed/mitaka"
269 +                section: "main"
270 +                priority: 1080
271 +              - type: "deb"
272 +                name: "mos"
273 +                uri: "http://{settings.MASTER_IP}:8080/{cluster.release.version}/ubuntu/x86_64"
274 +                suite: "mos9.0"
275 +                section: "main restricted"
276 +                priority: 1050
277 +              - type: "deb"
278 +                name: "mos-updates"
279 +                uri: "http://linux.enea.com/mos-repos/ubuntu/{cluster.release.environment_version}"
280 +                suite: "mos9.0-updates"
281 +                section: "main restricted"
282 +                priority: 1050
283 +              - type: "deb"
284 +                name: "mos-security"
285 +                uri: "http://linux.enea.com/mos-repos/ubuntu/{cluster.release.environment_version}"
286 +                suite: "mos9.0-security"
287 +                section: "main restricted"
288 +                priority: 1050
289 +              - type: "deb"
290 +                name: "mos-holdback"
291 +                uri: "http://linux.enea.com/mos-repos/ubuntu/{cluster.release.environment_version}"
292 +                suite: "mos9.0-holdback"
293 +                section: "main restricted"
294 +                priority: 1100
295 +              - type: "deb"
296 +                name: "Auxiliary"
297 +                uri: "http://{settings.MASTER_IP}:8080/{cluster.release.version}/ubuntu/auxiliary"
298 +                suite: "auxiliary"
299 +                section: "main restricted"
300 +                priority: 1150
301 +          repo_type:
302 +            type: "hidden"
303 +            weight: 58
304 +            value: "uca"
305 +          pin_haproxy:
306 +            label: "HAProxy APT Pinning"
307 +            description: "Use Fuel HAProxy packages instead of upstream"
308 +            weight: 59
309 +            type: "checkbox"
310 +            value: true
311 +          pin_rabbitmq:
312 +            label: "RabbitMQ APT Pinning"
313 +            description: "Use Fuel RabbitMQ packages instead of upstream"
314 +            weight: 60
315 +            type: "checkbox"
316 +            value: true
317 +          pin_ceph:
318 +            label: "Ceph APT Pinning"
319 +            description: "Use Fuel Ceph packages instead of upstream"
320 +            weight: 61
321 +            type: "checkbox"
322 +            value: true