aboutsummaryrefslogtreecommitdiffstats
path: root/nfs-source.yaml
blob: 5d865ea7a7918a7a881a017d115963d7be79721a (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
resources:
  controllerNfsServerConfig:
    type: OS::Heat::StructuredConfig
    properties:
      group: os-apply-config
      config:
        nfs_server:
          shares:
            - name: cinder
              clients:
                - machine: 192.0.2.0/24
                  options: rw,async,all_squash,anonuid=0,anongid=0
  controllerCinderNfsConfig:
    type: OS::Heat::StructuredConfig
    properties:
      group: os-apply-config
      config:
        cinder:
          include_nfs_backend: true
          nfs_shares:
            Fn::Join:
              - ':'
              - - {get_attr: [controller0, networks, ctlplane, 0]}
                - /mnt/state/var/lib/nfs/cinder
  controllerNfsServerDeployment:
    type: OS::Heat::StructuredDeployment
    properties:
      config: {get_resource: controllerNfsServerConfig}
      server: {get_resource: controller0}
      signal_transport: NO_SIGNAL
  controller0CinderNfsDeployment:
    type: OS::Heat::StructuredDeployment
    properties:
      config: {get_resource: controllerCinderNfsConfig}
      server: {get_resource: controller0}
      signal_transport: NO_SIGNAL