Remove unnecessary openstack configuration file 18/5618/2
authorThanh Ha <thanh.ha@linuxfoundation.org>
Mon, 24 Jul 2017 22:10:08 +0000 (18:10 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Mon, 24 Jul 2017 22:12:22 +0000 (18:12 -0400)
The packer jobs do not use openstack so do not require a clouds.yaml
file.

Change-Id: Iaccaa906980eb077676a3dc4b9100a91ec65f8c0
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
README.md
jjb/lf-macros.yaml
shell/packer-clear-credentials.sh

index dbbf0d9..bc6fcc7 100644 (file)
--- a/README.md
+++ b/README.md
@@ -181,7 +181,6 @@ ci-management.yaml:
     project: ci-management
     project-name: ci-management
     branch: master
-    os-cloud-file-id: 'ci-managed-file-id'
     build-node: centos7-basebuild-2c-1g
 
     platforms:
@@ -208,8 +207,6 @@ Required parameters:
 **project**: is the project repo as defined in source control.
 **project-name**: is a custom name to call the job in Jenkins.
 **build-node**: is the name of the builder to use when building (Jenkins label).
-**os-cloud-file-id**: is the name of the managed file-id, which contains
-credentials required for packer to spin up build nodes on the cloud provider.
 **platforms**: is a list of supported platforms.
 **templates**: is a list of supported templates.
 
index d0f596b..20a5c6b 100644 (file)
     builders:
       - config-file-provider:
           files:
-            - file-id: '{os-cloud-file-id}'
-              target: '$HOME/.config/openstack/clouds.yaml'
-            - file-id: 'packer-cloud-env'
-              variable: 'CLOUDENV'
+            - file-id: packer-cloud-env
+              variable: CLOUDENV
       - inject:
           properties-content: |
               PACKER_PLATFORM={platform}
index 099f559..093b16b 100644 (file)
@@ -10,8 +10,6 @@
 ##############################################################################
 echo "---> packer-clear-credentials.sh"
 
-#!/bin/bash
 set +e  # DO NOT cause build failure if any of the rm calls fail.
 rm "$CLOUDENV"
-rm "$HOME/.config/openstack/clouds.yaml"
 exit 0