Create test PV

Change-Id: Icf3d4708f63b84c132fa6c8399562277c896775d
This commit is contained in:
Flavio Percoco 2017-11-17 16:43:20 +01:00
parent 4481a0b31e
commit 0daca0e572
1 changed files with 31 additions and 0 deletions

View File

@ -1,3 +1,34 @@
{% if coe == 'kubernetes' %}
- name: Prepare COE cluster
hosts: localhost
gather_facts: false
connection: local
vars:
namespace: openstack
coe_host: "http://localhost:8080"
tasks:
- name: Create test PV
shell:
cmd: |
cat <<EOF | kubectl create -f -
apiVersion: v1
kind: PersistentVolume
metadata:
name: openstack-test-volume
spec:
capacity:
storage: 5Gi
accessModes:
- ReadWriteMany
persistentVolumeReclaimPolicy: Recycle
storageClassName: slow
hostPath:
path: /tmp
EOF
{% endif %}
- name: Provision {{project_name}}
hosts: localhost
gather_facts: false