Update VPP_STABLE_VER files
[csit.git] / fdio.infra.terraform / 2n_aws_c5n / main.tf
1 module "deploy" {
2   source = "./deploy"
3
4   # Parameters starting with var. can be set using "TF_VAR_*" environment
5   # variables or -var parameter when running "terraform apply", for default
6   # values see ./variables.tf
7   testbed_name          = var.testbed_name
8   topology_name         = var.topology_name
9   environment_name      = var.environment_name
10   resources_name_prefix = var.resources_name_prefix
11
12   # AWS general
13   region        = var.region
14   avail_zone    = var.avail_zone
15   instance_type = var.instance_type
16   ami_image_tg  = var.ami_image_tg
17   ami_image_sut = var.ami_image_sut
18
19   # AWS Network
20   vpc_cidr_mgmt = "192.168.0.0/24"
21   vpc_cidr_b    = "192.168.10.0/24"
22   vpc_cidr_c    = "200.0.0.0/24"
23   vpc_cidr_d    = "192.168.20.0/24"
24
25   tg_mgmt_ip   = "192.168.0.10"
26   dut1_mgmt_ip = "192.168.0.11"
27
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 = "192.168.20.11"
32
33   trex_dummy_cidr_port_0 = "10.0.0.0/24"
34   trex_dummy_cidr_port_1 = "20.0.0.0/24"
35
36   # Ansible
37   ansible_python_executable = "/usr/bin/python3"
38   ansible_file_path         = "../../fdio.infra.ansible/site.yaml"
39   ansible_topology_path     = "../../fdio.infra.ansible/cloud_topology.yaml"
40   ansible_provision_pwd     = "Csit1234"
41
42   # First run
43   # TODO: Remove the testuser creation when added to user_add ansible role
44   first_run_commands = [
45     "sudo sed -i 's/^PasswordAuthentication/#PasswordAuthentication/' /etc/ssh/sshd_config",
46     "sudo systemctl restart sshd",
47     "sudo useradd --create-home -s /bin/bash provisionuser",
48     "echo 'provisionuser:Csit1234' | sudo chpasswd",
49     "echo 'provisionuser ALL = (ALL) NOPASSWD: ALL' | sudo tee -a /etc/sudoers",
50     "sudo useradd --create-home -s /bin/bash testuser",
51     "echo 'testuser:Csit1234' | sudo chpasswd",
52     "echo 'testuser ALL = (ALL) NOPASSWD: ALL' | sudo tee -a /etc/sudoers"
53   ]
54 }