Skip to content

Commit

Permalink
Merge pull request #34 from olblak/INFRA-1130
Browse files Browse the repository at this point in the history
Add jenkinsio azure storage
  • Loading branch information
olblak authored Sep 12, 2017
2 parents 40e22fc + 077ee8b commit 750800f
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions plans/jenkinsio.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#
# This terraform plan defines the resources necessary to host jenkins.io
#

resource "azurerm_resource_group" "jenkinsio" {
name = "${var.prefix}jenkinsio"
location = "${var.location}"
tags {
env = "${var.prefix}"
}
}

resource "azurerm_storage_account" "jenkinsio" {
name = "${var.prefix}jenkinsio"
resource_group_name = "${azurerm_resource_group.jenkinsio.name}"
location = "${var.location}"
account_type = "Standard_GRS"
depends_on = ["azurerm_resource_group.jenkinsio"]
tags {
env = "${var.prefix}"
}
}

resource "azurerm_storage_share" "jenkinsio" {
name = "jenkinsio"
resource_group_name = "${azurerm_resource_group.jenkinsio.name}"
storage_account_name = "${azurerm_storage_account.jenkinsio.name}"
quota = 10
depends_on = ["azurerm_resource_group.jenkinsio","azurerm_storage_account.jenkinsio"]
}

0 comments on commit 750800f

Please sign in to comment.