mirror of
				https://github.com/Telecominfraproject/wlan-toolsmith.git
				synced 2025-10-31 19:08:04 +00:00 
			
		
		
		
	Merge pull request #165 from Telecominfraproject/feature/wifi-5640--freeradius-sandbox
[WIFI-5640] Add: new freeradius instance for QA team
This commit is contained in:
		| @@ -48,3 +48,34 @@ resource "null_resource" "ansible_inventory_generate" { | |||||||
| output "wlan_freeradius_instance" { | output "wlan_freeradius_instance" { | ||||||
|   value = aws_eip.wlan_freeradius.public_ip |   value = aws_eip.wlan_freeradius.public_ip | ||||||
| } | } | ||||||
|  |  | ||||||
|  | # This instance will also have freeradius installed, but it will be given to the QA team for the internal tests and manual configuration changes that may be backported to the ansible configuration | ||||||
|  | resource "aws_instance" "wlan_freeradius_qa" { | ||||||
|  |   ami                    = "ami-00399ec92321828f5" # Ubuntu 20.04 amd64 | ||||||
|  |   instance_type          = "t2.micro" | ||||||
|  |   subnet_id              = module.vpc_main.public_subnets[1] | ||||||
|  |   vpc_security_group_ids = [aws_security_group.wlan.id] | ||||||
|  |   key_name               = aws_key_pair.dunaev_wifi_3714.id | ||||||
|  |  | ||||||
|  |   lifecycle { | ||||||
|  |     ignore_changes = [ami] | ||||||
|  |   } | ||||||
|  |  | ||||||
|  |   root_block_device { | ||||||
|  |     delete_on_termination = true | ||||||
|  |   } | ||||||
|  |  | ||||||
|  |   tags = merge({ | ||||||
|  |     "Name" : "${var.org}-${var.project}-${var.env} FreeRADIUS server for QA team (WIFI-5640)" | ||||||
|  |   }, local.common_tags) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | resource "aws_eip" "wlan_freeradius_qa" { | ||||||
|  |   vpc      = true | ||||||
|  |   instance = aws_instance.wlan_freeradius_qa.id | ||||||
|  |   tags     = local.common_tags | ||||||
|  | } | ||||||
|  |  | ||||||
|  | output "wlan_freeradius_qa_instance" { | ||||||
|  |   value = aws_eip.wlan_freeradius_qa.public_ip | ||||||
|  | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Dmitry Dunaev
					Dmitry Dunaev