Skip to content

Commit

Permalink
Add jenkinsio azure storage
Browse files Browse the repository at this point in the history
  • Loading branch information
olblak committed Aug 28, 2017
1 parent 2145fad commit 077ee8b
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 077ee8b

Please sign in to comment.