summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Belanger <pabelanger@redhat.com>2017-10-18 10:00:16 -0400
committerPaul Belanger <pabelanger@redhat.com>2017-10-18 10:00:16 -0400
commite19641c9f27d6d0c290af8924486a2468fc6c6ae (patch)
tree991b3cd62d8999ee6c288de6be1e626e5ca87705
parentcecffabefc6ec1f12721caee8658b89e191abcc1 (diff)
Create nodepool_git_update varible
First attempt to support offline install, as it is possible for the git repo to already be installed onto disk. This is the case now in zuulv3, we no longer need to fetch git from a repo location. Change-Id: Ic93ccb65014619131e335dd0d5bb2ae3c21ae98b Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Notes
Notes (review): Code-Review+2: Paul Belanger <pabelanger@redhat.com> Workflow+1: Paul Belanger <pabelanger@redhat.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Wed, 18 Oct 2017 14:28:48 +0000 Reviewed-on: https://review.openstack.org/513042 Project: openstack/ansible-role-nodepool Branch: refs/heads/master
-rw-r--r--defaults/main.yaml1
-rw-r--r--tasks/install/git.yaml1
2 files changed, 2 insertions, 0 deletions
diff --git a/defaults/main.yaml b/defaults/main.yaml
index 224065a..97c6877 100644
--- a/defaults/main.yaml
+++ b/defaults/main.yaml
@@ -59,6 +59,7 @@ nodepool_git_dest: /opt/ansible-role-nodepool/git/openstack-infra/nodepool
59nodepool_git_uri: https://git.openstack.org/openstack-infra/nodepool 59nodepool_git_uri: https://git.openstack.org/openstack-infra/nodepool
60nodepool_git_version: feature/zuulv3 60nodepool_git_version: feature/zuulv3
61# nodepool_git_refspec: 61# nodepool_git_refspec:
62# nodepool_git_update:
62 63
63nodepool_install_method: git 64nodepool_install_method: git
64 65
diff --git a/tasks/install/git.yaml b/tasks/install/git.yaml
index 7295a1e..b3a33be 100644
--- a/tasks/install/git.yaml
+++ b/tasks/install/git.yaml
@@ -18,6 +18,7 @@
18 dest: "{{ nodepool_git_dest }}" 18 dest: "{{ nodepool_git_dest }}"
19 refspec: "{{ nodepool_git_refspec|default(omit) }}" 19 refspec: "{{ nodepool_git_refspec|default(omit) }}"
20 repo: "{{ nodepool_git_uri }}" 20 repo: "{{ nodepool_git_uri }}"
21 update: "{{ nodepool_git_update|default(omit) }}"
21 version: "{{ nodepool_git_version|default(omit) }}" 22 version: "{{ nodepool_git_version|default(omit) }}"
22 23
23- name: Set nodepool_pip_name to local git repo. 24- name: Set nodepool_pip_name to local git repo.