From d0a9be03e304e642f0ac71a41ff90f0ec69c7ba6 Mon Sep 17 00:00:00 2001 From: Mohamed Emine IBRAHIM Date: Thu, 2 Mar 2023 23:39:33 +0000 Subject: [PATCH] [Add] add ceph infrastructure --- ceph.sh | 5 +++ infra/ceph.json | 112 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 117 insertions(+) create mode 100755 ceph.sh create mode 100644 infra/ceph.json diff --git a/ceph.sh b/ceph.sh new file mode 100755 index 0000000..7e56138 --- /dev/null +++ b/ceph.sh @@ -0,0 +1,5 @@ +#!/bin/bash +export OS_CLOUD="felcloud_staging" +export PULUMI_STACK="staging" +export PULUMI_SUB_STACK="ceph" +export PULUMI_CONFIG_PASSPHRASE_FILE="$PWD/env.d/$PULUMI_STACK/pulumi_passphrase" diff --git a/infra/ceph.json b/infra/ceph.json new file mode 100644 index 0000000..7ba740b --- /dev/null +++ b/infra/ceph.json @@ -0,0 +1,112 @@ +{ + "application_name": "ceph", + "INTERNET_Network_ID": "e8d04c1f-0b49-4e87-a1f3-bea618782c90", + "network": [{ + "name": "ceph_network", + "bastion_access": "yes", + "subnet": { + "name":"ceph_network_subnet", + "ip_version": 4, + "cidr": "172.39.15.0/24", + "dns_servers": ["8.8.8.8"], + "linked_router": [{"router_name": "ceph_router"}] + }, + "port": [{ + "name": "vip_ceph", + "fip_pool": "INTERNET" + }] + }], + "router": [{ + "router_name": "ceph_router", + "router_external_gateway": "e8d04c1f-0b49-4e87-a1f3-bea618782c90", + "linked_subnets": [{ + "router_interface_name": "ceph_router_interface", + "subnet_name": "ceph_network_subnet"}] + }], + "security_group": [ + ], + "instance": [{ + "name": "stg-cephmon-00", + "az": "FR_Roubaix", + "flavor": "Atto.L", + "image": "Ubuntu 20.04 LTS - Focal", + "keypair": "dell XPS", + "security_group": ["all_open"], + "inventory_group": "mons", + "network": [{"name": "ceph_network"}] + }, + { + "name": "stg-cephmon-01", + "az": "FR_Roubaix", + "flavor": "Femto.L", + "image": "Ubuntu 20.04 LTS - Focal", + "keypair": "dell XPS", + "security_group": ["all_open"], + "inventory_group": "mons", + "network": [{"name": "ceph_network"}] + }, + { + "name": "stg-cephmon-02", + "az": "FR_Roubaix", + "flavor": "Femto.L", + "image": "Ubuntu 20.04 LTS - Focal", + "keypair": "dell XPS", + "security_group": ["all_open"], + "inventory_group": "mons", + "network": [{"name": "ceph_network"}] + }, + { + "name": "stg-cephosd-00", + "az": "FR_Roubaix", + "flavor": "Femto.L", + "image": "Ubuntu 20.04 LTS - Focal", + "keypair": "dell XPS", + "security_group": ["all_open"], + "inventory_group": "osds", + "network": [{"name": "ceph_network"}], + "volume": ["osd-00"] + }, + { + "name": "stg-cephosd-01", + "az": "FR_Roubaix", + "flavor": "Femto.L", + "image": "Ubuntu 20.04 LTS - Focal", + "keypair": "dell XPS", + "security_group": ["all_open"], + "inventory_group": "osds", + "network": [{"name": "ceph_network"}], + "volume": ["osd-01"] + }, + { + "name": "stg-cephosd-02", + "az": "FR_Roubaix", + "flavor": "Femto.L", + "image": "Ubuntu 20.04 LTS - Focal", + "keypair": "dell XPS", + "security_group": ["all_open"], + "inventory_group": "osds", + "network": [{"name": "ceph_network"}], + "volume": ["osd-02"] + }, + { + "name": "stg-ceph-bastion-00", + "az": "FR_Roubaix", + "flavor": "Atto.S", + "image": "Ubuntu 20.04 LTS - Focal", + "keypair": "dell XPS", + "security_group": ["all_open"], + "inventory_group": "ceph_bastion", + "network": [{"name": "ceph_network"}], + "fip": [{ + "floatingip": "fip_ceph", + "pool": "INTERNET", + "bastion_access": "yes" + }] + } + ], + "volume": [ + {"name": "osd-00", "description": "Ceph OSD 0", "size": 200, "availability_zone": "FR_Roubaix", "volume_type": "HDD SATA"}, + {"name": "osd-01", "description": "Ceph OSD 1", "size": 200, "availability_zone": "FR_Roubaix", "volume_type": "HDD SATA"}, + {"name": "osd-02", "description": "Ceph OSD 2", "size": 200, "availability_zone": "FR_Roubaix", "volume_type": "HDD SATA"} + ] +}