From e815b3114fda12f20c42416d78ea72111d3329ec Mon Sep 17 00:00:00 2001 From: Mohamed Emine IBRAHIM Date: Thu, 14 Jul 2022 11:45:19 +0000 Subject: [PATCH] [Add] add mongi dev Environment --- consolemongi.sh | 5 +++ infra/consolemongi.json | 96 +++++++++++++++++++++++++++++++++++++++++ inventory | 19 ++++++++ 3 files changed, 120 insertions(+) create mode 100755 consolemongi.sh create mode 100644 infra/consolemongi.json diff --git a/consolemongi.sh b/consolemongi.sh new file mode 100755 index 0000000..bd66eaa --- /dev/null +++ b/consolemongi.sh @@ -0,0 +1,5 @@ +#!/bin/bash +export OS_CLOUD="felcloud_staging" +export PULUMI_STACK="staging" +export PULUMI_SUB_STACK="consolemongi" +export PULUMI_CONFIG_PASSPHRASE_FILE="$PWD/env.d/$PULUMI_STACK/pulumi_passphrase" diff --git a/infra/consolemongi.json b/infra/consolemongi.json new file mode 100644 index 0000000..8f14b7e --- /dev/null +++ b/infra/consolemongi.json @@ -0,0 +1,96 @@ +{ + "application_name": "consolemongi", + "INTERNET_Network_ID": "e8d04c1f-0b49-4e87-a1f3-bea618782c90", + "network": [{ + "name": "mongi_console", + "bastion_access": "yes", + "subnet": { + "name":"mongi_console_subnet", + "ip_version": 4, + "cidr": "172.55.0.0/16", + "dns_servers": ["8.8.8.8"], + "linked_router": [{"router_name": "mongi_router"}] + }, + "port": [{ + "name": "vip_console_mongi", + "fip_pool": "INTERNET" + }] + }], + "router": [{ + "router_name": "mongi_router", + "router_external_gateway": "e8d04c1f-0b49-4e87-a1f3-bea618782c90", + "linked_subnets": [{ + "router_interface_name": "mongi_console_interface", + "subnet_name": "mongi_console_subnet"}] + }], + "security_group": [ + ], + "instance": [{ + "name": "stg-mongi-bilweb-00", + "az": "FR_Roubaix", + "flavor": "Atto.L", + "image": "Ubuntu 20.04 LTS - Focal", + "keypair": "dell XPS", + "security_group": ["secgroup_console"], + "inventory_group": "mongi_console_web", + "network": [{"name": "mongi_console"}] + }, + { + "name": "stg-mongi-bilweb-01", + "az": "FR_Roubaix", + "flavor": "Atto.L", + "image": "Ubuntu 20.04 LTS - Focal", + "keypair": "dell XPS", + "security_group": ["secgroup_console"], + "inventory_group": "mongi_console_web", + "network": [{"name": "mongi_console"}] + }, + { + "name": "stg-mongi-billdb-00", + "az": "FR_Roubaix", + "flavor": "Femto.L", + "image": "Ubuntu 20.04 LTS - Focal", + "keypair": "dell XPS", + "security_group": ["secgroup_console"], + "inventory_group": "mongi_console_database", + "network": [{"name": "mongi_console"}] + }, + { + "name": "stg-mongi-billdb-01", + "az": "FR_Roubaix", + "flavor": "Femto.L", + "image": "Ubuntu 20.04 LTS - Focal", + "keypair": "dell XPS", + "security_group": ["secgroup_console"], + "inventory_group": "mongi_console_database", + "network": [{"name": "mongi_console"}] + }, + { + "name": "stg-mongi-billdb-02", + "az": "FR_Roubaix", + "flavor": "Femto.L", + "image": "Ubuntu 20.04 LTS - Focal", + "keypair": "dell XPS", + "security_group": ["secgroup_console"], + "inventory_group": "mongi_console_database", + "network": [{"name": "mongi_console"}] + }, + { + "name": "stg-mongi-bilbas-00", + "az": "FR_Roubaix", + "flavor": "Atto.S", + "image": "Ubuntu 20.04 LTS - Focal", + "keypair": "dell XPS", + "security_group": ["secgroup_console"], + "inventory_group": "mongi_console_bastion", + "network": [{"name": "mongi_console"}], + "fip": [{ + "floatingip": "fip_console", + "pool": "INTERNET", + "bastion_access": "yes" + }] + } + ], + "volume": [ + ] +} diff --git a/inventory b/inventory index ed8b982..74bf8bc 100644 --- a/inventory +++ b/inventory @@ -15,6 +15,7 @@ stg-bilbas-00 ansible_host=172.53.3.126 ansible_user=ubuntu stg-bilrep-00 ansible_host=172.53.0.130 ansible_user=ubuntu [container_biuld] +stg-testMourad-00 ansible_host=172.53.1.155 ansible_user=ubuntu stg-conbld-00 ansible_host=172.53.0.185 ansible_user=ubuntu [console:children] @@ -24,3 +25,21 @@ console_bastion console_database console_web #---- end console inventory ---- +#---- start consolemongi inventory ---- +[mongi_console_web] +stg-mongi-bilweb-00 ansible_host=172.55.2.184 ansible_user=ubuntu +stg-mongi-bilweb-01 ansible_host=172.55.1.235 ansible_user=ubuntu + +[mongi_console_database] +stg-mongi-billdb-00 ansible_host=172.55.1.137 ansible_user=ubuntu +stg-mongi-billdb-01 ansible_host=172.55.1.131 ansible_user=ubuntu +stg-mongi-billdb-02 ansible_host=172.55.0.103 ansible_user=ubuntu + +[mongi_console_bastion] +stg-mongi-bilbas-00 ansible_host=172.55.2.117 ansible_user=ubuntu + +[consolemongi:children] +mongi_console_bastion +mongi_console_database +mongi_console_web +#---- end consolemongi inventory ----