[Add] add ceph infrastructure
This commit is contained in:
parent
4058ecbef7
commit
d0a9be03e3
5
ceph.sh
Executable file
5
ceph.sh
Executable file
@ -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"
|
112
infra/ceph.json
Normal file
112
infra/ceph.json
Normal file
@ -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"}
|
||||||
|
]
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user