aboutsummaryrefslogtreecommitdiffstats
path: root/nfs-source.yaml
diff options
context:
space:
mode:
authorGiulio Fidente <gfidente@redhat.com>2014-11-21 06:11:26 -0500
committerGiulio Fidente <gfidente@redhat.com>2014-12-11 00:19:27 +0100
commit6674c39d80b2418aa573d7f8bbbb9c92648f90c5 (patch)
treece3a9cdec905789389f3c85af6635cd87c2f0da1 /nfs-source.yaml
parentf0ba1a632448fb50c0a8754f5d183c4d1f5759f4 (diff)
Bring back (abandoned) support for Cinder/NFS
We used to have a YAML file providing a test setup for Cinder/NFS which could be used via a special Makefile target; this was not used in CI anymore though and overtime things broke. This change aims at bringing that functionality back and also make it easier to use it via a number of changes: * delete unmaintained nfs-server-source (not working due to changes in the elements) * delete (unneeded) block-storage-nfs * remove the hidden block-storage-with-nfs target from Makefile * add a some nfs-source which supports newer elements and newer template language as well * improve existing comments in Makefile documeting how to use it Change-Id: I96144ee2f4ca33bd7467f09ad960ea268c1250bf
Diffstat (limited to 'nfs-source.yaml')
-rw-r--r--nfs-source.yaml36
1 files changed, 36 insertions, 0 deletions
diff --git a/nfs-source.yaml b/nfs-source.yaml
new file mode 100644
index 00000000..5d865ea7
--- /dev/null
+++ b/nfs-source.yaml
@@ -0,0 +1,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