summaryrefslogtreecommitdiffstats
path: root/roles/openshift_persistent_volumes/README.md
blob: 0407d6ef1e2dfff30f6a61200443a45c43ae866f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
OpenShift NFS Server
====================

OpenShift Persistent Volumes

Requirements
------------

Role Variables
--------------

From this role:

| Name                     | Default value |                                                                                     |
|--------------------------|---------------|-------------------------------------------------------------------------------------|
| persistent_volumes       | []            | List of persistent volume dictionaries, keys: name, capacity, access_modes, storage |
| persistent_volume_claims | []            | List of persistent volume claim dictionaries, keys: name, capacity, access_modes    |


Dependencies
------------


Example Playbook
----------------

```
- name: Create persistent volumes/claims
  hosts: oo_first_master
  vars:
    persistent_volumes:
    - name: "registry-volume"
      capacity: "5Gi"
      access_modes:
      - "ReadWriteMany"
      storage:
        nfs:
          server: "nfs.example.com"
          path: "/var/exports/registry"
    persistent_volume_claims:
    - name: "registry-claim"
      capacity: "5Gi"
      access_modes:
      - "ReadWriteMany"
  roles:
  - role: openshift_persistent_volumes
```


License
-------

Apache License, Version 2.0

Author Information
------------------

Andrew Butcher (abutcher@redhat.com)