aboutsummaryrefslogtreecommitdiffstats
path: root/mcp/reclass/classes/cluster/virtual-mcp-ocata-common
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2017-09-13 17:08:01 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-09-13 17:08:01 +0000
commit6d90d3be1fbb7526587a305167e3295bc956d5d4 (patch)
tree916c9d61cc19b6f13ee9125d0462831c684be662 /mcp/reclass/classes/cluster/virtual-mcp-ocata-common
parent06d34f4086f0dcc515b6db0eab3fdeb2d15de640 (diff)
parent75ff9b4407cff88c32c079dde5a23383e3cd8f93 (diff)
Merge "[virtual] Setup nfs for nova instances"
Diffstat (limited to 'mcp/reclass/classes/cluster/virtual-mcp-ocata-common')
-rw-r--r--mcp/reclass/classes/cluster/virtual-mcp-ocata-common/openstack_compute.yml8
-rw-r--r--mcp/reclass/classes/cluster/virtual-mcp-ocata-common/openstack_control.yml13
2 files changed, 21 insertions, 0 deletions
diff --git a/mcp/reclass/classes/cluster/virtual-mcp-ocata-common/openstack_compute.yml b/mcp/reclass/classes/cluster/virtual-mcp-ocata-common/openstack_compute.yml
index 2485d1ff2..978f468e6 100644
--- a/mcp/reclass/classes/cluster/virtual-mcp-ocata-common/openstack_compute.yml
+++ b/mcp/reclass/classes/cluster/virtual-mcp-ocata-common/openstack_compute.yml
@@ -3,6 +3,7 @@ classes:
- system.linux.system.repo.mcp.extra
- system.linux.system.repo.saltstack.xenial
- system.linux.storage.loopback
+- service.nfs.client
- system.nova.compute.single
- service.neutron.compute.single
- service.cinder.volume.single
@@ -44,6 +45,13 @@ parameters:
host: ${_param:cluster_local_address}
message_queue:
host: ${_param:cluster_local_address}
+ nfs:
+ client:
+ mount:
+ nfs:
+ path: /var/lib/nova/instances
+ fstype: nfs
+ device: ${_param:openstack_control_address}:/srv/nova/instances
linux:
network:
bridge: openvswitch
diff --git a/mcp/reclass/classes/cluster/virtual-mcp-ocata-common/openstack_control.yml b/mcp/reclass/classes/cluster/virtual-mcp-ocata-common/openstack_control.yml
index 5b68b7b62..64e6f4d00 100644
--- a/mcp/reclass/classes/cluster/virtual-mcp-ocata-common/openstack_control.yml
+++ b/mcp/reclass/classes/cluster/virtual-mcp-ocata-common/openstack_control.yml
@@ -3,6 +3,7 @@ classes:
- system.linux.system.repo.mcp.openstack
- system.linux.system.repo.mcp.extra
- system.linux.system.repo.saltstack.xenial
+- service.nfs.server
- system.mongodb.server.single
- system.mongodb.server.database.ceilometer
- system.ceilometer.client
@@ -112,3 +113,15 @@ parameters:
address: ${_param:cluster_local_address},127.0.0.1
logging:
verbose: v
+ nfs:
+ server:
+ share:
+ nova_instances:
+ path: /srv/nova/instances
+ host:
+ nova:
+ host: ${_param:single_address}/24
+ params:
+ - rw
+ - no_root_squash
+ - async