4 # TODO: Use ENV variable for testbed_name for dynamic deployment
5 testbed_name = "testbed1"
6 topology_name = "3n_aws_c5n"
7 environment_name = "CSIT-AWS"
8 resources_name_prefix = "CSIT_3n_aws_c5n"
11 region = "eu-central-1"
12 avail_zone = "eu-central-1a"
13 instance_type = "c5n.4xlarge"
14 ami_image = "ami-0b418580298265d5c"
15 # eu-central-1/bionic-18.04-amd64-hvm-ssd-20200112
16 # kernel 4.15.0-1057-aws (~4.15.0-74)
19 vpc_cidr_mgmt = "192.168.0.0/24"
20 vpc_cidr_b = "192.168.10.0/24"
21 vpc_cidr_c = "200.0.0.0/24"
22 vpc_cidr_d = "192.168.20.0/24"
24 tg_mgmt_ip = "192.168.0.10"
25 dut1_mgmt_ip = "192.168.0.11"
26 dut2_mgmt_ip = "192.168.0.12"
28 tg_if1_ip = "192.168.10.254"
29 tg_if2_ip = "192.168.20.254"
30 dut1_if1_ip = "192.168.10.11"
31 dut1_if2_ip = "200.0.0.101"
32 dut2_if1_ip = "200.0.0.102"
33 dut2_if2_ip = "192.168.20.11"
35 trex_dummy_cidr_port_0 = "10.0.0.0/24"
36 trex_dummy_cidr_port_1 = "20.0.0.0/24"
39 ansible_python_executable = "/usr/bin/python3"
40 ansible_file_path = "../../resources/tools/testbed-setup/ansible/site.yaml"
41 ansible_topology_path = "../../resources/tools/testbed-setup/ansible/cloud_topology.yaml"
42 ansible_provision_pwd = "Csit1234"
45 # TODO: Remove the testuser creation when added to user_add ansible role
46 first_run_commands = [
47 "sudo sed -i 's/^PasswordAuthentication/#PasswordAuthentication/' /etc/ssh/sshd_config",
48 "sudo systemctl restart sshd",
49 "sudo useradd --create-home -s /bin/bash provisionuser",
50 "echo 'provisionuser:Csit1234' | sudo chpasswd",
51 "echo 'provisionuser ALL = (ALL) NOPASSWD: ALL' | sudo tee -a /etc/sudoers",
52 "sudo useradd --create-home -s /bin/bash testuser",
53 "echo 'testuser:Csit1234' | sudo chpasswd",
54 "echo 'testuser ALL = (ALL) NOPASSWD: ALL' | sudo tee -a /etc/sudoers"