Pike ovs with ceph rgw

In this change:
* model is aligned to use pike
* added cinder version param
* chnage imcludes of linux.repo to match
  introduced build_id structure

Related: PROD-16862, PROD-15289

Change-Id: I2cd5de82f6a1ef3105bc14ce4625123662b868ef
diff --git a/classes/cluster/virtual-mcp-ocata-dvr-ceph-rgw/ceph/cephfs.yml b/classes/cluster/virtual-mcp-ocata-dvr-ceph-rgw/ceph/cephfs.yml
new file mode 100644
index 0000000..e4fe9bb
--- /dev/null
+++ b/classes/cluster/virtual-mcp-ocata-dvr-ceph-rgw/ceph/cephfs.yml
@@ -0,0 +1,3 @@
+classes:
+- system.linux.system.repo.mcp.apt_mirantis.ubuntu
+- cluster.virtual-mcp-ocata-dvr-ceph-rgw
\ No newline at end of file
diff --git a/classes/cluster/virtual-mcp-ocata-dvr-ceph-rgw/ceph/common.yml b/classes/cluster/virtual-mcp-ocata-dvr-ceph-rgw/ceph/common.yml
new file mode 100644
index 0000000..7da40e1
--- /dev/null
+++ b/classes/cluster/virtual-mcp-ocata-dvr-ceph-rgw/ceph/common.yml
@@ -0,0 +1,24 @@
+classes:
+- system.linux.system.repo.mcp.apt_mirantis.ceph
+- cluster.virtual-mcp-ocata-dvr-ceph-rgw
+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 rwx 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, allow rwx pool=volumes"
\ No newline at end of file
diff --git a/classes/cluster/virtual-mcp-ocata-dvr-ceph-rgw/ceph/init.yml b/classes/cluster/virtual-mcp-ocata-dvr-ceph-rgw/ceph/init.yml
new file mode 100644
index 0000000..94ebad2
--- /dev/null
+++ b/classes/cluster/virtual-mcp-ocata-dvr-ceph-rgw/ceph/init.yml
@@ -0,0 +1,76 @@
+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_rgw_hostname: rgw
+    ceph_rgw_node01_hostname: rgw01
+    ceph_rgw_node02_hostname: rgw02
+    ceph_rgw_node03_hostname: rgw03
+    ceph_rgw_address: 10.60.0.75
+    ceph_rgw_node01_address: 10.60.0.76
+    ceph_rgw_node02_address: 10.60.0.77
+    ceph_rgw_node03_address: 10.60.0.78
+
+    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}
+        rgw:
+          address: ${_param:ceph_rgw_address}
+          names:
+          - ${_param:ceph_rgw_hostname}
+          - ${_param:ceph_rgw_hostname}.${_param:cluster_domain}
+        rgw01:
+          address: ${_param:ceph_rgw_node01_address}
+          names:
+          - ${_param:ceph_rgw_node01_hostname}
+          - ${_param:ceph_rgw_node01_hostname}.${_param:cluster_domain}
+        rgw02:
+          address: ${_param:ceph_rgw_node02_address}
+          names:
+          - ${_param:ceph_rgw_node02_hostname}
+          - ${_param:ceph_rgw_node02_hostname}.${_param:cluster_domain}
+        rgw03:
+          address: ${_param:ceph_rgw_node03_address}
+          names:
+          - ${_param:ceph_rgw_node03_hostname}
+          - ${_param:ceph_rgw_node03_hostname}.${_param:cluster_domain}
diff --git a/classes/cluster/virtual-mcp-ocata-dvr-ceph-rgw/ceph/mon.yml b/classes/cluster/virtual-mcp-ocata-dvr-ceph-rgw/ceph/mon.yml
new file mode 100644
index 0000000..2f46c26
--- /dev/null
+++ b/classes/cluster/virtual-mcp-ocata-dvr-ceph-rgw/ceph/mon.yml
@@ -0,0 +1,16 @@
+classes:
+- system.ceph.mon.cluster
+- system.ceph.mgr.cluster
+- system.linux.system.repo.mcp.apt_mirantis.ceph
+- cluster.virtual-mcp-ocata-dvr-ceph-rgw.ceph.common
+- cluster.virtual-mcp-ocata-dvr-ceph-rgw
+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-ocata-dvr-ceph-rgw/ceph/osd.yml b/classes/cluster/virtual-mcp-ocata-dvr-ceph-rgw/ceph/osd.yml
new file mode 100644
index 0000000..eac413b
--- /dev/null
+++ b/classes/cluster/virtual-mcp-ocata-dvr-ceph-rgw/ceph/osd.yml
@@ -0,0 +1,29 @@
+classes:
+- service.ceph.osd.cluster
+- system.linux.system.repo.mcp.apt_mirantis.ceph
+- cluster.virtual-mcp-ocata-dvr-ceph-rgw.ceph.common
+- cluster.virtual-mcp-ocata-dvr-ceph-rgw
+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: 900000000
+      bluestore_block_wal_size: 900000000
+      backend:
+        bluestore:
+          disks:
+            - dev: /dev/vdb
+              block_db: /dev/vdb
+            - dev: /dev/vdc
+              block_db: /dev/vdc
diff --git a/classes/cluster/virtual-mcp-ocata-dvr-ceph-rgw/ceph/rgw.yml b/classes/cluster/virtual-mcp-ocata-dvr-ceph-rgw/ceph/rgw.yml
new file mode 100644
index 0000000..33a8251
--- /dev/null
+++ b/classes/cluster/virtual-mcp-ocata-dvr-ceph-rgw/ceph/rgw.yml
@@ -0,0 +1,46 @@
+classes:
+- system.ceph.rgw.cluster
+- system.ceph.rgw.keystone
+- cluster.virtual-mcp-ocata-dvr-ceph-rgw.ceph.common
+- cluster.virtual-mcp-ocata-dvr-ceph-rgw
+parameters:
+  linux:
+    network:
+      interface:
+        ens4:
+          enabled: true
+          type: eth
+          proto: static
+          address: ${_param:single_address}
+          netmask: 255.255.255.0
+  _param:
+    keepalived_vip_interface: ens4
+    keepalived_vip_virtual_router_id: 41
+    haproxy_radosgw_bind_port: 8080
+    haproxy_radosgw_source_port: 8080
+    ceph_radosgw_bind_port: 8080
+    keepalived_vip_password: 9HpXQgHKxL1
+    cluster_vip_address: ${_param:ceph_rgw_address}
+    cluster_node01_hostname: ${_param:ceph_rgw_node01_hostname}
+    cluster_node01_address: ${_param:ceph_rgw_node01_address}
+    cluster_node02_hostname: ${_param:ceph_rgw_node02_hostname}
+    cluster_node02_address: ${_param:ceph_rgw_node02_address}
+    cluster_node03_hostname: ${_param:ceph_rgw_node03_hostname}
+    cluster_node03_address: ${_param:ceph_rgw_node03_address}
+    ceph_radosgw_keystone_host: ${_param:openstack_control_address}
+    ceph_radosgw_keystone_password: ${_param:keystone_admin_password}
+  ceph:
+    common:
+      keyring:
+        rgw.rgw01:
+          caps:
+            mon: "allow *"
+            osd: "allow *"
+        rgw.rgw02:
+          caps:
+            mon: "allow *"
+            osd: "allow *"
+        rgw.rgw03:
+          caps:
+            mon: "allow *"
+            osd: "allow *"
\ No newline at end of file
diff --git a/classes/cluster/virtual-mcp-ocata-dvr-ceph-rgw/ceph/setup.yml b/classes/cluster/virtual-mcp-ocata-dvr-ceph-rgw/ceph/setup.yml
new file mode 100644
index 0000000..ad3fd39
--- /dev/null
+++ b/classes/cluster/virtual-mcp-ocata-dvr-ceph-rgw/ceph/setup.yml
@@ -0,0 +1,70 @@
+classes:
+- system.ceph.mon.cluster_init
+- cluster.virtual-mcp-ocata-dvr-ceph-rgw
+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
+        .rgw.root:
+          pg_num: 32
+          pgp_num: 32
+          size: 2
+          type: replicated
+          application: rgw
+          crush_rule: sata
+        default.rgw.control:
+          pg_num: 32
+          pgp_num: 32
+          size: 2
+          type: replicated
+          application: rgw
+          crush_rule: sata
+        default.rgw.meta:
+          pg_num: 32
+          pgp_num: 32
+          size: 2
+          type: replicated
+          application: rgw
+          crush_rule: sata
+        default.rgw.log:
+          pg_num: 32
+          pgp_num: 32
+          size: 2
+          type: replicated
+          application: rgw
+          crush_rule: sata
+        default.rgw.buckets.index:
+          pg_num: 32
+          pgp_num: 32
+          size: 2
+          type: replicated
+          application: rgw
+          crush_rule: sata
+        default.rgw.buckets.data:
+          pg_num: 32
+          pgp_num: 32
+          size: 2
+          type: replicated
+          application: rgw
+          crush_rule: sata
\ No newline at end of file