Add ovs pike models
* Add ceph ovs pike
* rename ceph ocata rgw to ceph ocata pike as there pike inside
* Add pike ovs, dvr, dpdk
PROD-16951
Change-Id: Ib8c17eb0909991b70f18ac916ba503e6301f6eb7
diff --git a/classes/cluster/virtual-mcp-pike-ovs-ceph/ceph/cephfs.yml b/classes/cluster/virtual-mcp-pike-ovs-ceph/ceph/cephfs.yml
new file mode 100644
index 0000000..e61ff1f
--- /dev/null
+++ b/classes/cluster/virtual-mcp-pike-ovs-ceph/ceph/cephfs.yml
@@ -0,0 +1,3 @@
+classes:
+- system.linux.system.repo.mcp.apt_mirantis.ubuntu
+- cluster.virtual-mcp-pike-ovs-ceph
\ No newline at end of file
diff --git a/classes/cluster/virtual-mcp-pike-ovs-ceph/ceph/common.yml b/classes/cluster/virtual-mcp-pike-ovs-ceph/ceph/common.yml
new file mode 100644
index 0000000..3b8d738
--- /dev/null
+++ b/classes/cluster/virtual-mcp-pike-ovs-ceph/ceph/common.yml
@@ -0,0 +1,24 @@
+classes:
+- system.linux.system.repo.mcp.apt_mirantis.ceph
+- cluster.virtual-mcp-pike-ovs-ceph
+parameters:
+ ceph:
+ common:
+ public_network: 10.60.0.0/24
+ cluster_network: 10.70.0.0/24
+ keyring:
+ glance:
+ name: ${_param:glance_storage_user}
+ caps:
+ mon: "allow r"
+ osd: "allow class-read object_prefix rdb_children, allow rwx pool=images"
+ cinder:
+ name: ${_param:cinder_storage_user}
+ caps:
+ mon: "allow r"
+ osd: "allow class-read object_prefix rbd_children, allow rwx pool=volumes, allow rx pool=images"
+ nova:
+ name: ${_param:nova_storage_user}
+ caps:
+ mon: "allow r"
+ osd: "allow class-read object_prefix rbd_children, allow rwx pool=vms, allow rx pool=images"
\ No newline at end of file
diff --git a/classes/cluster/virtual-mcp-pike-ovs-ceph/ceph/init.yml b/classes/cluster/virtual-mcp-pike-ovs-ceph/ceph/init.yml
new file mode 100644
index 0000000..2f0d2ec
--- /dev/null
+++ b/classes/cluster/virtual-mcp-pike-ovs-ceph/ceph/init.yml
@@ -0,0 +1,48 @@
+parameters:
+ _param:
+ linux_repo_ceph_component: ${_param:ceph_version}
+ ceph_version: luminous
+ ceph_mon_node01_hostname: cmn01
+ ceph_mon_node02_hostname: cmn02
+ ceph_mon_node03_hostname: cmn03
+
+ ceph_osd_node01_hostname: osd01
+ ceph_osd_node02_hostname: osd02
+
+
+ ceph_osd_node01_address: 172.16.10.94
+ ceph_osd_node02_address: 172.16.10.95
+ ceph_mon_node01_address: 172.16.10.96
+ ceph_mon_node02_address: 172.16.10.97
+ ceph_mon_node03_address: 172.16.10.98
+
+ ceph_cluster_fsid: a619c5fc-c4ed-4f22-9ed2-66cf2feca23d
+
+ linux:
+ network:
+ host:
+ cmn01:
+ address: ${_param:ceph_mon_node01_address}
+ names:
+ - ${_param:ceph_mon_node01_hostname}
+ - ${_param:ceph_mon_node01_hostname}.${_param:cluster_domain}
+ cmn02:
+ address: ${_param:ceph_mon_node02_address}
+ names:
+ - ${_param:ceph_mon_node02_hostname}
+ - ${_param:ceph_mon_node02_hostname}.${_param:cluster_domain}
+ cmn03:
+ address: ${_param:ceph_mon_node03_address}
+ names:
+ - ${_param:ceph_mon_node03_hostname}
+ - ${_param:ceph_mon_node03_hostname}.${_param:cluster_domain}
+ osd01:
+ address: ${_param:ceph_osd_node01_address}
+ names:
+ - ${_param:ceph_osd_node01_hostname}
+ - ${_param:ceph_osd_node01_hostname}.${_param:cluster_domain}
+ osd02:
+ address: ${_param:ceph_osd_node02_address}
+ names:
+ - ${_param:ceph_osd_node02_hostname}
+ - ${_param:ceph_osd_node02_hostname}.${_param:cluster_domain}
diff --git a/classes/cluster/virtual-mcp-pike-ovs-ceph/ceph/mon.yml b/classes/cluster/virtual-mcp-pike-ovs-ceph/ceph/mon.yml
new file mode 100644
index 0000000..803aac5
--- /dev/null
+++ b/classes/cluster/virtual-mcp-pike-ovs-ceph/ceph/mon.yml
@@ -0,0 +1,15 @@
+classes:
+- system.ceph.mon.cluster
+- system.ceph.mgr.cluster
+- system.linux.system.repo.mcp.apt_mirantis.ceph
+- cluster.virtual-mcp-pike-ovs-ceph
+parameters:
+ linux:
+ network:
+ interface:
+ ens4:
+ enabled: true
+ type: eth
+ proto: static
+ address: ${_param:single_address}
+ netmask: 255.255.255.0
diff --git a/classes/cluster/virtual-mcp-pike-ovs-ceph/ceph/osd.yml b/classes/cluster/virtual-mcp-pike-ovs-ceph/ceph/osd.yml
new file mode 100644
index 0000000..20e7089
--- /dev/null
+++ b/classes/cluster/virtual-mcp-pike-ovs-ceph/ceph/osd.yml
@@ -0,0 +1,25 @@
+classes:
+- service.ceph.osd.cluster
+- system.linux.system.repo.mcp.apt_mirantis.ceph
+- cluster.virtual-mcp-pike-ovs-ceph
+parameters:
+ linux:
+ network:
+ interface:
+ ens4:
+ enabled: true
+ type: eth
+ proto: static
+ address: ${_param:single_address}
+ netmask: 255.255.255.0
+
+ ceph:
+ osd:
+ enabled: true
+ crush_parent: ${_param:ceph_crush_parent}
+ bluestore_block_db_size: 10073741824
+ backend:
+ bluestore:
+ disks:
+ - dev: /dev/vdb
+ block_db: /dev/vdb
diff --git a/classes/cluster/virtual-mcp-pike-ovs-ceph/ceph/setup.yml b/classes/cluster/virtual-mcp-pike-ovs-ceph/ceph/setup.yml
new file mode 100644
index 0000000..2f6ca80
--- /dev/null
+++ b/classes/cluster/virtual-mcp-pike-ovs-ceph/ceph/setup.yml
@@ -0,0 +1,28 @@
+classes:
+- system.ceph.mon.cluster_init
+- cluster.virtual-mcp-pike-ovs-ceph
+parameters:
+ ceph:
+ setup:
+ pool:
+ images:
+ pg_num: 32
+ pgp_num: 32
+ type: replicated
+ size: 2
+ application: rbd
+ crush_rule: sata
+ volumes:
+ pg_num: 32
+ pgp_num: 32
+ type: replicated
+ size: 2
+ application: rbd
+ crush_rule: sata
+ vms:
+ pg_num: 32
+ pgp_num: 32
+ type: replicated
+ size: 2
+ application: rbd
+ crush_rule: sata