aboutsummaryrefslogtreecommitdiffstats
path: root/mcp/patches/0016-Set-boot-source-selections.patch
diff options
context:
space:
mode:
Diffstat (limited to 'mcp/patches/0016-Set-boot-source-selections.patch')
-rw-r--r--mcp/patches/0016-Set-boot-source-selections.patch31
1 files changed, 0 insertions, 31 deletions
diff --git a/mcp/patches/0016-Set-boot-source-selections.patch b/mcp/patches/0016-Set-boot-source-selections.patch
deleted file mode 100644
index 972810931..000000000
--- a/mcp/patches/0016-Set-boot-source-selections.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
-: Copyright (c) 2018 Mirantis Inc., Enea AB and others.
-:
-: All rights reserved. This program and the accompanying materials
-: are made available under the terms of the Apache License, Version 2.0
-: which accompanies this distribution, and is available at
-: http://www.apache.org/licenses/LICENSE-2.0
-::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
-From: Michael Polenchuk <mpolenchuk@mirantis.com>
-Date: Thu, 26 Apr 2018 16:29:02 +0400
-Subject: [PATCH] Set boot source selections
-
-Change-Id: I8dc738b3e6e6f1bfcc1348873f162651aff8bbdf
-
-diff --git a/maas/region.sls b/maas/region.sls
---- a/maas/region.sls
-+++ b/maas/region.sls
-@@ -171,6 +171,13 @@ maas_login_admin:
- cmd.run:
- - name: "maas-region apikey --username {{ region.admin.username }} > /var/lib/maas/.maas_credentials"
-
-+boot_source_selections:
-+ cmd.run:
-+ - name: "maas login {{ region.admin.username }} http://{{ region.bind.host }}:5240/MAAS/api/2.0 - < /var/lib/maas/.maas_credentials && maas opnfv boot-resources stop-import && maas opnfv boot-source-selection update 1 1 release='{{ region.maas_config.default_distro_series }}' {%- for arch in region.opnfv_arches.split(' ') %} arches='{{ arch }}' subarches='generic' subarches='ga-16.04' subarches='hwe-16.04' {%- endfor %}"
-+ - require:
-+ - cmd: maas_login_admin
-+ - unless: "maas login {{ region.admin.username }} http://{{ region.bind.host }}:5240/MAAS/api/2.0 - < /var/lib/maas/.maas_credentials && maas opnfv boot-source-selections read 1 | grep -q {{ region.maas_config.default_distro_series }}"
-+
- maas_force_artifact_sync:
- cmd.script:
- - name: salt://maas/files/maas-artifact-sync.sh