Update relative paths 31/8231/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Fri, 5 Jan 2018 01:18:00 +0000 (20:18 -0500)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Fri, 5 Jan 2018 01:19:30 +0000 (20:19 -0500)
Packer paths are relative to where it is called from so update the
paths to match where we expect users of common-packer to load the
submodule from.

Change-Id: I03cd26c4fdb7cd2611cd6ae968ddd4470ba33fad
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
templates/builder.json.example
vars/centos-7.json
vars/ubuntu-16.04.json

index ea9454a..923a02c 100644 (file)
     {
       "type": "shell",
       "scripts": [
-        "provision/install-python.sh"
+        "common-packer/provision/install-python.sh"
       ],
       "execute_command": "chmod +x {{ .Path }}; if [ \"$UID\" == \"0\" ]; then {{ .Vars }} '{{ .Path }}'; else {{ .Vars }} sudo -E '{{ .Path }}'; fi"
     },
     {
       "type": "ansible",
-      "playbook_file": "provision/baseline.yaml",
+      "playbook_file": "common-packer/provision/baseline.yaml",
       "ansible_env_vars": [
         "ANSIBLE_NOCOWS=1",
-        "ANSIBLE_ROLES_PATH=lf-ansible/roles",
+        "ANSIBLE_ROLES_PATH=../lf-ansible/roles",
         "ANSIBLE_STDOUT_CALLBACK=debug"
       ]
     }
index 678a903..4d8ea05 100644 (file)
@@ -2,5 +2,5 @@
   "base_image": "LF - CentOS 7.1711 (2017-11-05)",
   "distro": "CentOS 7",
   "ssh_user": "centos",
-  "cloud_user_data": "provision/rh-user_data.sh"
+  "cloud_user_data": "common-packer/provision/rh-user_data.sh"
 }
index 58a54d3..eba1e06 100644 (file)
@@ -2,5 +2,5 @@
   "base_image": "LF - Ubuntu 16.04 LTS (2017-12-01)",
   "distro": "Ubuntu 16.04",
   "ssh_user": "ubuntu",
-  "cloud_user_data": "provision/ubuntu-user_data.sh"
+  "cloud_user_data": "common-packer/provision/ubuntu-user_data.sh"
 }