summaryrefslogtreecommitdiffstats
path: root/xci/installer/kubespray/playbooks/configure-targethosts.yml
diff options
context:
space:
mode:
authorMarkos Chandras <mchandras@suse.de>2018-04-20 13:37:32 +0100
committerMarkos Chandras <mchandras@suse.de>2018-05-18 11:40:46 +0100
commitc5e7e23fadc2738985ac6b3e585edd9918f6494b (patch)
tree5c49615a74bb58fa78e98348bc5e3d8f264164da /xci/installer/kubespray/playbooks/configure-targethosts.yml
parent0ed80c59846e9e1b23d26869f05f109dac7495c5 (diff)
xci: kubespray: Use bootstrap role for k8s deployments
The bootstrap role configures NTP and networking on hosts so we should use it on k8s deployments as well. installer-type:kubespray deploy-scenario:k8-nosdn-nofeature Change-Id: I04bd1e1c2c325baabfb836bd8cca60c5f59344c7 Signed-off-by: Markos Chandras <mchandras@suse.de>
Diffstat (limited to 'xci/installer/kubespray/playbooks/configure-targethosts.yml')
-rw-r--r--xci/installer/kubespray/playbooks/configure-targethosts.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/xci/installer/kubespray/playbooks/configure-targethosts.yml b/xci/installer/kubespray/playbooks/configure-targethosts.yml
index c744eae6..7989bfb6 100644
--- a/xci/installer/kubespray/playbooks/configure-targethosts.yml
+++ b/xci/installer/kubespray/playbooks/configure-targethosts.yml
@@ -1,6 +1,19 @@
---
- hosts: k8s-cluster
remote_user: root
+ vars_files:
+ - "{{ xci_path }}/xci/var/opnfv.yml"
+
+ pre_tasks:
+ - name: Load distribution variables
+ include_vars:
+ file: "{{ item }}"
+ with_items:
+ - "{{ xci_path }}/xci/var/{{ ansible_os_family }}.yml"
+
+ roles:
+ - role: bootstrap-host
+
tasks:
- name: Manage SSH keys
include_tasks: "{{ xci_path }}/xci/playbooks/manage-ssh-keys.yml"