Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Azure/terraform-azurerm-module-test-jenkins

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Azure RM Jenkins infrastructure for Terraform module test

This is a Terraform module which will create the Jenkins test environment on Azure. You could use this environment to test other modules, including both unit test as well as the end-to-end test.

Usage

module "test-farm-jenkins" {
  source               = "Azure/module-test-jenkins/azurerm"
  version              = "0.1.1"
  
  location             = "West US 2"
  resource_group_name  = "module-test-farm-rg"
  admin_username       = "tfmodtester"
  public_domain_name   = "tfci"
  ssh_public_key_data  = "ssh-rsa [YOUR SSH PUBLIC KEY] rsa-key-20171116"
  ssh_private_key_data = "${file("[YOUR SSH PRIVATE KEY FILE PATH]")}"
}

output "public_ip" {
  value = "${module.test-farm-jenkins.virtual_machine_public_ip}"
}

output "dns" {
  value = "${module.test-farm-jenkins.virtual_machine_dns_name}"
}

About

The test infrastructure (Jenkins on Azure VM) to be provisioned for Terraform module testing purpose.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages