diff --git a/ceph_vexx.sh b/ceph_vexx.sh new file mode 100755 index 0000000..397fd52 --- /dev/null +++ b/ceph_vexx.sh @@ -0,0 +1,5 @@ +#!/bin/bash +export OS_CLOUD="vexxhost_sjc1" +export PULUMI_STACK="staging" +export PULUMI_SUB_STACK="ceph_vexx" +export PULUMI_CONFIG_PASSPHRASE_FILE="/etc/ansible/pulumi_passphrase" diff --git a/infra/ceph_vexx.json b/infra/ceph_vexx.json new file mode 100644 index 0000000..16a677f --- /dev/null +++ b/infra/ceph_vexx.json @@ -0,0 +1,198 @@ +{ + "application_name": "ceph_vexx", + "bastion_access_network_name": "ceph_network", + "bastion_access_network_cidr": "172.39.15.0/24", + "bastion_to_use": "ceph_vexx", + "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": [ + ] + }], + "router": [{ + "router_name": "ceph_router", + "router_external_gateway": "0048fce6-c715-4106-a810-473620326cb0", + "linked_subnets": [{ + "router_interface_name": "ceph_router_interface", + "subnet_name": "ceph_network_subnet"}] + }], + "security_group":[ + { + "name": "all_open", + "description": "Emine DEV environment is security group", + "rules": [ + { + "name": "Ingress_ssh", + "description": "ssh traffic", + "direction": "ingress", + "port_range_max": 22, + "port_range_min": 22, + "protocol": "tcp", + "remote_ip_prefix": "0.0.0.0/0" + }, + { + "name": "Ingress_http", + "description": "http traffic", + "direction": "ingress", + "port_range_max": 80, + "port_range_min": 80, + "protocol": "tcp", + "remote_ip_prefix": "0.0.0.0/0" + }, + { + "name": "Ingress_https", + "description": "https traffic", + "direction": "ingress", + "port_range_max": 443, + "port_range_min": 443, + "protocol": "tcp", + "remote_ip_prefix": "0.0.0.0/0" + }, + { + "name": "Ingress_squid", + "description": "Squid Proxy traffic", + "direction": "ingress", + "port_range_max": 3128, + "port_range_min": 3128, + "protocol": "tcp", + "remote_ip_prefix": "0.0.0.0/0" + }, + { + "name": "Ingress_ping", + "description": "icmp traffic", + "direction": "ingress", + "port_range_max": 0, + "port_range_min": 0, + "protocol": "icmp", + "remote_ip_prefix": "0.0.0.0/0" + }, + { + "name": "Ingress_nosqlclient", + "description": "nosqlclient traffic", + "direction": "ingress", + "port_range_max": 3000, + "port_range_min": 3000, + "protocol": "tcp", + "remote_ip_prefix": "0.0.0.0/0" + }, + { + "name": "Ingress_nexus", + "description": "nexus repository traffic", + "direction": "ingress", + "port_range_max": 8081, + "port_range_min": 8081, + "protocol": "tcp", + "remote_ip_prefix": "0.0.0.0/0" + }, + { + "name": "Ingress_nexus_docker_registry", + "description": "nexus repository traffic", + "direction": "ingress", + "port_range_max": 8082, + "port_range_min": 8082, + "protocol": "tcp", + "remote_ip_prefix": "0.0.0.0/0" + }, + { + "name": "Ingress_mongodb", + "description": "mongodb traffic", + "direction": "ingress", + "port_range_max": 27017, + "port_range_min": 27017, + "protocol": "tcp", + "remote_ip_prefix": "0.0.0.0/0" + } + ] + } + ], + "instance": [{ + "name": "stg-cephmon-00", + "az": "nova", + "flavor": "v3-starter-1", + "image": "Ubuntu 20.04.3 LTS (x86_64) [2021-10-04]", + "keypair": "dell XPS", + "security_group": ["all_open"], + "inventory_group": "mons", + "network": [{"name": "ceph_network"}] + }, + { + "name": "stg-cephmon-01", + "az": "nova", + "flavor": "v3-starter-1", + "image": "Ubuntu 20.04.3 LTS (x86_64) [2021-10-04]", + "keypair": "dell XPS", + "security_group": ["all_open"], + "inventory_group": "mons", + "network": [{"name": "ceph_network"}] + }, + { + "name": "stg-cephmon-02", + "az": "nova", + "flavor": "v3-starter-1", + "image": "Ubuntu 20.04.3 LTS (x86_64) [2021-10-04]", + "keypair": "dell XPS", + "security_group": ["all_open"], + "inventory_group": "mons", + "network": [{"name": "ceph_network"}] + }, + { + "name": "stg-cephosd-00", + "az": "nova", + "flavor": "v3-starter-1", + "image": "Ubuntu 20.04.3 LTS (x86_64) [2021-10-04]", + "keypair": "dell XPS", + "security_group": ["all_open"], + "inventory_group": "osds", + "network": [{"name": "ceph_network"}], + "volume": ["osd-00"] + }, + { + "name": "stg-cephosd-01", + "az": "nova", + "flavor": "v3-starter-1", + "image": "Ubuntu 20.04.3 LTS (x86_64) [2021-10-04]", + "keypair": "dell XPS", + "security_group": ["all_open"], + "inventory_group": "osds", + "network": [{"name": "ceph_network"}], + "volume": ["osd-01"] + }, + { + "name": "stg-cephosd-02", + "az": "nova", + "flavor": "v3-starter-1", + "image": "Ubuntu 20.04.3 LTS (x86_64) [2021-10-04]", + "keypair": "dell XPS", + "security_group": ["all_open"], + "inventory_group": "osds", + "network": [{"name": "ceph_network"}], + "volume": ["osd-02"] + }, + { + "name": "stg-ceph-bastion-00", + "az": "nova", + "flavor": "v3-starter-1", + "image": "Ubuntu 20.04.3 LTS (x86_64) [2021-10-04]", + "keypair": "dell XPS", + "security_group": ["all_open"], + "inventory_group": "ceph_bastion", + "network": [{"name": "ceph_network"}], + "fip": [{ + "floatingip": "fip_ceph", + "pool": "public" + }] + } + ], + "volume": [ + {"name": "osd-00", "description": "Ceph OSD 0", "size": 50, "availability_zone": "nova", "volume_type": "rbd"}, + {"name": "osd-01", "description": "Ceph OSD 1", "size": 50, "availability_zone": "nova", "volume_type": "rbd"}, + {"name": "osd-02", "description": "Ceph OSD 2", "size": 50, "availability_zone": "nova", "volume_type": "rbd"} + ] +}