Skip to content

Instantly share code, notes, and snippets.

@f4rx
Last active November 28, 2019 10:52
Show Gist options
  • Save f4rx/3b5063b0f3cdce92982626242fd5cea4 to your computer and use it in GitHub Desktop.
Save f4rx/3b5063b0f3cdce92982626242fd5cea4 to your computer and use it in GitHub Desktop.
main.tf
provider "openstack" {
domain_name = "${var.domain_name}"
tenant_id = "${var.project_id}"
user_name = "${var.user_name}"
password = "${var.user_password}"
auth_url = "https://api.selvpc.ru/identity/v3"
region = "${var.region}"
}
module "app-stand" {
source = "github.com/f4rx/guestbookapp-tf-module"
region = "${var.region}"
public_key = "${var.public_key}"
hdd_size = "${var.hdd_size}"
volume_type = "${var.volume_type}"
az_zone = "${var.az_zone}"
app_count = "${var.app_count}"
domain_name = "${var.domain_name}"
project_id = "${var.project_id}"
user_name = "${var.user_name}"
user_password = "${var.user_password}"
}
output "server_external_ip" {
value = "${module.app-stand.server_external_ip}"
}
variable "app_count" {
default = 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment