summaryrefslogtreecommitdiffstats
path: root/xci/installer/osh/playbooks/configure-opnfvhost.yml
diff options
context:
space:
mode:
authorFatih Degirmenci <fdegir@gmail.com>2019-09-01 11:03:25 +0200
committerFatih Degirmenci <fdegir@gmail.com>2019-09-01 12:19:56 +0200
commit2f711d43c322abc597ed2a53a1ce461229039960 (patch)
tree2316847fb583274655ed9251b19b229e2c1e68aa /xci/installer/osh/playbooks/configure-opnfvhost.yml
parentf098d178cbbaa1096786c0d181d6693461fe4eb5 (diff)
Adapt OSH to new scenario logic, ansible and k8s versions
installer-type:osh deploy-scenario:k8-calico-nofeature JIRA: XCI-5 JIRA: XCI-6 JIRA: XCI-20 Signed-off-by: Fatih Degirmenci <fdegir@gmail.com> Change-Id: I0f2b577f7535050e6c65ca0e0bc209b7403c67ba Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
Diffstat (limited to 'xci/installer/osh/playbooks/configure-opnfvhost.yml')
-rw-r--r--xci/installer/osh/playbooks/configure-opnfvhost.yml28
1 files changed, 10 insertions, 18 deletions
diff --git a/xci/installer/osh/playbooks/configure-opnfvhost.yml b/xci/installer/osh/playbooks/configure-opnfvhost.yml
index 54e32149..52e42b06 100644
--- a/xci/installer/osh/playbooks/configure-opnfvhost.yml
+++ b/xci/installer/osh/playbooks/configure-opnfvhost.yml
@@ -52,22 +52,20 @@
- "--recursive"
- "--files-from={{ xci_cache }}/releng-xci.files"
- - name: delete the opnfv_inventory directory
- file:
- path: "{{ remote_xci_path }}/.cache/repos/kubespray/opnfv_inventory"
- state: absent
-
- - name: make sure kubespray/opnfv_inventory/group_vars/ exist
- file:
- path: "{{ remote_xci_path }}/.cache/repos/kubespray/opnfv_inventory/group_vars"
- state: directory
-
- - name: copy kubespray inventory directory
+ - name: link xci dynamic inventory to kubespray/inventory/opnfv directory
file:
src: "{{ remote_xci_playbooks }}/dynamic_inventory.py"
- path: "{{ remote_xci_path }}/.cache/repos/kubespray/opnfv_inventory/dynamic_inventory.py"
+ path: "{{ remote_xci_path }}/.cache/repos/kubespray/inventory/opnfv/dynamic_inventory.py"
state: link
+ - name: Download kubectl and place it to /usr/local/bin
+ get_url:
+ url: "https://storage.googleapis.com/kubernetes-release/release/{{ kubernetes_version }}/bin/linux/amd64/kubectl"
+ dest: /usr/local/bin/kubectl
+ owner: root
+ group: root
+ mode: 0755
+
- name: Reload XCI deployment host facts
setup:
filter: ansible_local
@@ -85,12 +83,6 @@
update_cache: "{{ (ansible_pkg_mgr in ['apt', 'zypper']) | ternary('yes', omit) }}"
when: xci_flavor == 'aio'
- - name: change dashboard server type to NodePort
- lineinfile:
- path: "{{ remote_xci_path }}/.cache/repos/kubespray/roles/kubernetes-apps/ansible/templates/dashboard.yml.j2"
- insertafter: 'targetPort'
- line: " type: NodePort"
-
- name: pip install required packages
pip:
name: "{{ item.name }}"