2015-08-04 19:16:42 +02:00
|
|
|
package cloudstack
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"strings"
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/hashicorp/terraform/helper/resource"
|
|
|
|
"github.com/hashicorp/terraform/terraform"
|
|
|
|
"github.com/xanzy/go-cloudstack/cloudstack"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestAccCloudStackLoadBalancerRule_basic(t *testing.T) {
|
|
|
|
resource.Test(t, resource.TestCase{
|
|
|
|
PreCheck: func() { testAccPreCheck(t) },
|
|
|
|
Providers: testAccProviders,
|
|
|
|
CheckDestroy: testAccCheckCloudStackLoadBalancerRuleDestroy,
|
|
|
|
Steps: []resource.TestStep{
|
|
|
|
resource.TestStep{
|
|
|
|
Config: testAccCloudStackLoadBalancerRule_basic,
|
|
|
|
Check: resource.ComposeTestCheckFunc(
|
2015-09-08 11:19:41 +02:00
|
|
|
testAccCheckCloudStackLoadBalancerRuleExist("cloudstack_loadbalancer_rule.foo", nil),
|
2015-08-04 19:16:42 +02:00
|
|
|
resource.TestCheckResourceAttr(
|
|
|
|
"cloudstack_loadbalancer_rule.foo", "name", "terraform-lb"),
|
|
|
|
resource.TestCheckResourceAttr(
|
|
|
|
"cloudstack_loadbalancer_rule.foo", "algorithm", "roundrobin"),
|
|
|
|
resource.TestCheckResourceAttr(
|
|
|
|
"cloudstack_loadbalancer_rule.foo", "public_port", "80"),
|
|
|
|
resource.TestCheckResourceAttr(
|
|
|
|
"cloudstack_loadbalancer_rule.foo", "private_port", "80"),
|
|
|
|
),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
func TestAccCloudStackLoadBalancerRule_update(t *testing.T) {
|
2015-09-08 11:19:41 +02:00
|
|
|
var id string
|
|
|
|
|
2015-08-04 19:16:42 +02:00
|
|
|
resource.Test(t, resource.TestCase{
|
|
|
|
PreCheck: func() { testAccPreCheck(t) },
|
|
|
|
Providers: testAccProviders,
|
|
|
|
CheckDestroy: testAccCheckCloudStackLoadBalancerRuleDestroy,
|
|
|
|
Steps: []resource.TestStep{
|
|
|
|
resource.TestStep{
|
|
|
|
Config: testAccCloudStackLoadBalancerRule_basic,
|
|
|
|
Check: resource.ComposeTestCheckFunc(
|
2015-09-08 11:19:41 +02:00
|
|
|
testAccCheckCloudStackLoadBalancerRuleExist("cloudstack_loadbalancer_rule.foo", &id),
|
2015-08-04 19:16:42 +02:00
|
|
|
resource.TestCheckResourceAttr(
|
|
|
|
"cloudstack_loadbalancer_rule.foo", "name", "terraform-lb"),
|
|
|
|
resource.TestCheckResourceAttr(
|
|
|
|
"cloudstack_loadbalancer_rule.foo", "algorithm", "roundrobin"),
|
|
|
|
resource.TestCheckResourceAttr(
|
|
|
|
"cloudstack_loadbalancer_rule.foo", "public_port", "80"),
|
|
|
|
resource.TestCheckResourceAttr(
|
|
|
|
"cloudstack_loadbalancer_rule.foo", "private_port", "80"),
|
|
|
|
),
|
|
|
|
},
|
|
|
|
|
|
|
|
resource.TestStep{
|
|
|
|
Config: testAccCloudStackLoadBalancerRule_update,
|
2015-09-07 00:43:37 +02:00
|
|
|
Check: resource.ComposeTestCheckFunc(
|
2015-09-08 11:19:41 +02:00
|
|
|
testAccCheckCloudStackLoadBalancerRuleExist("cloudstack_loadbalancer_rule.foo", &id),
|
2015-09-07 00:43:37 +02:00
|
|
|
resource.TestCheckResourceAttr(
|
|
|
|
"cloudstack_loadbalancer_rule.foo", "name", "terraform-lb-update"),
|
|
|
|
resource.TestCheckResourceAttr(
|
|
|
|
"cloudstack_loadbalancer_rule.foo", "algorithm", "leastconn"),
|
|
|
|
resource.TestCheckResourceAttr(
|
|
|
|
"cloudstack_loadbalancer_rule.foo", "public_port", "80"),
|
|
|
|
resource.TestCheckResourceAttr(
|
|
|
|
"cloudstack_loadbalancer_rule.foo", "private_port", "80"),
|
|
|
|
),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
func TestAccCloudStackLoadBalancerRule_forcenew(t *testing.T) {
|
|
|
|
resource.Test(t, resource.TestCase{
|
|
|
|
PreCheck: func() { testAccPreCheck(t) },
|
|
|
|
Providers: testAccProviders,
|
|
|
|
CheckDestroy: testAccCheckCloudStackLoadBalancerRuleDestroy,
|
|
|
|
Steps: []resource.TestStep{
|
|
|
|
resource.TestStep{
|
|
|
|
Config: testAccCloudStackLoadBalancerRule_basic,
|
|
|
|
Check: resource.ComposeTestCheckFunc(
|
2015-09-08 11:19:41 +02:00
|
|
|
testAccCheckCloudStackLoadBalancerRuleExist("cloudstack_loadbalancer_rule.foo", nil),
|
2015-09-07 00:43:37 +02:00
|
|
|
resource.TestCheckResourceAttr(
|
|
|
|
"cloudstack_loadbalancer_rule.foo", "name", "terraform-lb"),
|
|
|
|
resource.TestCheckResourceAttr(
|
|
|
|
"cloudstack_loadbalancer_rule.foo", "algorithm", "roundrobin"),
|
|
|
|
resource.TestCheckResourceAttr(
|
|
|
|
"cloudstack_loadbalancer_rule.foo", "public_port", "80"),
|
|
|
|
resource.TestCheckResourceAttr(
|
|
|
|
"cloudstack_loadbalancer_rule.foo", "private_port", "80"),
|
|
|
|
),
|
|
|
|
},
|
|
|
|
|
|
|
|
resource.TestStep{
|
|
|
|
Config: testAccCloudStackLoadBalancerRule_forcenew,
|
|
|
|
Check: resource.ComposeTestCheckFunc(
|
2015-09-08 11:19:41 +02:00
|
|
|
testAccCheckCloudStackLoadBalancerRuleExist("cloudstack_loadbalancer_rule.foo", nil),
|
2015-09-07 00:43:37 +02:00
|
|
|
resource.TestCheckResourceAttr(
|
|
|
|
"cloudstack_loadbalancer_rule.foo", "name", "terraform-lb-update"),
|
|
|
|
resource.TestCheckResourceAttr(
|
|
|
|
"cloudstack_loadbalancer_rule.foo", "algorithm", "leastconn"),
|
|
|
|
resource.TestCheckResourceAttr(
|
|
|
|
"cloudstack_loadbalancer_rule.foo", "public_port", "443"),
|
|
|
|
resource.TestCheckResourceAttr(
|
|
|
|
"cloudstack_loadbalancer_rule.foo", "private_port", "443"),
|
|
|
|
),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
func TestAccCloudStackLoadBalancerRule_vpc(t *testing.T) {
|
|
|
|
resource.Test(t, resource.TestCase{
|
|
|
|
PreCheck: func() { testAccPreCheck(t) },
|
|
|
|
Providers: testAccProviders,
|
|
|
|
CheckDestroy: testAccCheckCloudStackLoadBalancerRuleDestroy,
|
|
|
|
Steps: []resource.TestStep{
|
|
|
|
resource.TestStep{
|
|
|
|
Config: testAccCloudStackLoadBalancerRule_vpc,
|
|
|
|
Check: resource.ComposeTestCheckFunc(
|
2015-09-08 11:19:41 +02:00
|
|
|
testAccCheckCloudStackLoadBalancerRuleExist("cloudstack_loadbalancer_rule.foo", nil),
|
2015-09-07 00:43:37 +02:00
|
|
|
resource.TestCheckResourceAttr(
|
|
|
|
"cloudstack_loadbalancer_rule.foo", "name", "terraform-lb"),
|
|
|
|
resource.TestCheckResourceAttr(
|
|
|
|
"cloudstack_loadbalancer_rule.foo", "algorithm", "roundrobin"),
|
|
|
|
resource.TestCheckResourceAttr(
|
|
|
|
"cloudstack_loadbalancer_rule.foo", "public_port", "80"),
|
|
|
|
resource.TestCheckResourceAttr(
|
|
|
|
"cloudstack_loadbalancer_rule.foo", "private_port", "80"),
|
|
|
|
),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
func TestAccCloudStackLoadBalancerRule_vpc_update(t *testing.T) {
|
|
|
|
resource.Test(t, resource.TestCase{
|
|
|
|
PreCheck: func() { testAccPreCheck(t) },
|
|
|
|
Providers: testAccProviders,
|
|
|
|
CheckDestroy: testAccCheckCloudStackLoadBalancerRuleDestroy,
|
|
|
|
Steps: []resource.TestStep{
|
|
|
|
resource.TestStep{
|
|
|
|
Config: testAccCloudStackLoadBalancerRule_vpc,
|
|
|
|
Check: resource.ComposeTestCheckFunc(
|
2015-09-08 11:19:41 +02:00
|
|
|
testAccCheckCloudStackLoadBalancerRuleExist("cloudstack_loadbalancer_rule.foo", nil),
|
2015-09-07 00:43:37 +02:00
|
|
|
resource.TestCheckResourceAttr(
|
|
|
|
"cloudstack_loadbalancer_rule.foo", "name", "terraform-lb"),
|
|
|
|
resource.TestCheckResourceAttr(
|
|
|
|
"cloudstack_loadbalancer_rule.foo", "algorithm", "roundrobin"),
|
|
|
|
resource.TestCheckResourceAttr(
|
|
|
|
"cloudstack_loadbalancer_rule.foo", "public_port", "80"),
|
|
|
|
resource.TestCheckResourceAttr(
|
|
|
|
"cloudstack_loadbalancer_rule.foo", "private_port", "80"),
|
|
|
|
),
|
|
|
|
},
|
|
|
|
|
|
|
|
resource.TestStep{
|
|
|
|
Config: testAccCloudStackLoadBalancerRule_vpc_update,
|
2015-08-04 19:16:42 +02:00
|
|
|
Check: resource.ComposeTestCheckFunc(
|
2015-09-08 11:19:41 +02:00
|
|
|
testAccCheckCloudStackLoadBalancerRuleExist("cloudstack_loadbalancer_rule.foo", nil),
|
2015-08-04 19:16:42 +02:00
|
|
|
resource.TestCheckResourceAttr(
|
|
|
|
"cloudstack_loadbalancer_rule.foo", "name", "terraform-lb-update"),
|
|
|
|
resource.TestCheckResourceAttr(
|
|
|
|
"cloudstack_loadbalancer_rule.foo", "algorithm", "leastconn"),
|
|
|
|
resource.TestCheckResourceAttr(
|
|
|
|
"cloudstack_loadbalancer_rule.foo", "public_port", "443"),
|
|
|
|
resource.TestCheckResourceAttr(
|
|
|
|
"cloudstack_loadbalancer_rule.foo", "private_port", "443"),
|
|
|
|
),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2015-09-08 11:19:41 +02:00
|
|
|
func testAccCheckCloudStackLoadBalancerRuleExist(n string, id *string) resource.TestCheckFunc {
|
2015-08-04 19:16:42 +02:00
|
|
|
return func(s *terraform.State) error {
|
|
|
|
rs, ok := s.RootModule().Resources[n]
|
|
|
|
if !ok {
|
|
|
|
return fmt.Errorf("Not found: %s", n)
|
|
|
|
}
|
|
|
|
|
|
|
|
if rs.Primary.ID == "" {
|
|
|
|
return fmt.Errorf("No loadbalancer rule ID is set")
|
|
|
|
}
|
|
|
|
|
2015-09-08 11:19:41 +02:00
|
|
|
if id != nil {
|
|
|
|
if *id != "" && *id != rs.Primary.ID {
|
|
|
|
return fmt.Errorf("Resource ID has changed!")
|
2015-08-04 19:16:42 +02:00
|
|
|
}
|
|
|
|
|
2015-09-08 11:19:41 +02:00
|
|
|
*id = rs.Primary.ID
|
|
|
|
}
|
2015-08-04 19:16:42 +02:00
|
|
|
|
2015-09-08 11:19:41 +02:00
|
|
|
cs := testAccProvider.Meta().(*cloudstack.CloudStackClient)
|
|
|
|
_, count, err := cs.LoadBalancer.GetLoadBalancerRuleByID(rs.Primary.ID)
|
2015-08-04 19:16:42 +02:00
|
|
|
|
2015-09-08 11:19:41 +02:00
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
|
|
|
|
if count == 0 {
|
|
|
|
return fmt.Errorf("Loadbalancer rule %s not found", n)
|
2015-08-04 19:16:42 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func testAccCheckCloudStackLoadBalancerRuleDestroy(s *terraform.State) error {
|
|
|
|
cs := testAccProvider.Meta().(*cloudstack.CloudStackClient)
|
|
|
|
|
|
|
|
for _, rs := range s.RootModule().Resources {
|
|
|
|
if rs.Type != "cloudstack_loadbalancer_rule" {
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
|
|
|
|
if rs.Primary.ID == "" {
|
|
|
|
return fmt.Errorf("No Loadbalancer rule ID is set")
|
|
|
|
}
|
|
|
|
|
2015-10-05 14:05:21 +02:00
|
|
|
for k, id := range rs.Primary.Attributes {
|
2015-08-04 19:16:42 +02:00
|
|
|
if !strings.Contains(k, "uuid") {
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
|
2015-10-05 14:05:21 +02:00
|
|
|
_, _, err := cs.LoadBalancer.GetLoadBalancerRuleByID(id)
|
2015-08-04 19:16:42 +02:00
|
|
|
if err == nil {
|
|
|
|
return fmt.Errorf("Loadbalancer rule %s still exists", rs.Primary.ID)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
var testAccCloudStackLoadBalancerRule_basic = fmt.Sprintf(`
|
2015-09-07 00:43:37 +02:00
|
|
|
resource "cloudstack_instance" "foobar1" {
|
|
|
|
name = "terraform-server1"
|
|
|
|
display_name = "terraform"
|
|
|
|
service_offering= "%s"
|
|
|
|
network = "%s"
|
|
|
|
template = "%s"
|
|
|
|
zone = "%s"
|
|
|
|
expunge = true
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "cloudstack_loadbalancer_rule" "foo" {
|
|
|
|
name = "terraform-lb"
|
2016-04-04 22:13:27 +02:00
|
|
|
ip_address = "%s"
|
2015-09-07 00:43:37 +02:00
|
|
|
algorithm = "roundrobin"
|
|
|
|
public_port = 80
|
|
|
|
private_port = 80
|
|
|
|
members = ["${cloudstack_instance.foobar1.id}"]
|
|
|
|
}
|
|
|
|
`,
|
|
|
|
CLOUDSTACK_SERVICE_OFFERING_1,
|
|
|
|
CLOUDSTACK_NETWORK_1,
|
|
|
|
CLOUDSTACK_TEMPLATE,
|
|
|
|
CLOUDSTACK_ZONE,
|
|
|
|
CLOUDSTACK_PUBLIC_IPADDRESS)
|
|
|
|
|
|
|
|
var testAccCloudStackLoadBalancerRule_update = fmt.Sprintf(`
|
|
|
|
resource "cloudstack_instance" "foobar1" {
|
|
|
|
name = "terraform-server1"
|
|
|
|
display_name = "terraform"
|
|
|
|
service_offering= "%s"
|
|
|
|
network = "%s"
|
|
|
|
template = "%s"
|
|
|
|
zone = "%s"
|
|
|
|
expunge = true
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "cloudstack_loadbalancer_rule" "foo" {
|
|
|
|
name = "terraform-lb-update"
|
2016-04-04 22:13:27 +02:00
|
|
|
ip_address = "%s"
|
2015-09-07 00:43:37 +02:00
|
|
|
algorithm = "leastconn"
|
|
|
|
public_port = 80
|
|
|
|
private_port = 80
|
|
|
|
members = ["${cloudstack_instance.foobar1.id}"]
|
|
|
|
}
|
|
|
|
`,
|
|
|
|
CLOUDSTACK_SERVICE_OFFERING_1,
|
|
|
|
CLOUDSTACK_NETWORK_1,
|
|
|
|
CLOUDSTACK_TEMPLATE,
|
|
|
|
CLOUDSTACK_ZONE,
|
|
|
|
CLOUDSTACK_PUBLIC_IPADDRESS)
|
|
|
|
|
|
|
|
var testAccCloudStackLoadBalancerRule_forcenew = fmt.Sprintf(`
|
|
|
|
resource "cloudstack_instance" "foobar1" {
|
|
|
|
name = "terraform-server1"
|
|
|
|
display_name = "terraform"
|
|
|
|
service_offering= "%s"
|
|
|
|
network = "%s"
|
|
|
|
template = "%s"
|
|
|
|
zone = "%s"
|
|
|
|
expunge = true
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "cloudstack_loadbalancer_rule" "foo" {
|
|
|
|
name = "terraform-lb-update"
|
2016-04-04 22:13:27 +02:00
|
|
|
ip_address = "%s"
|
2015-09-07 00:43:37 +02:00
|
|
|
algorithm = "leastconn"
|
|
|
|
public_port = 443
|
|
|
|
private_port = 443
|
|
|
|
members = ["${cloudstack_instance.foobar1.id}"]
|
|
|
|
}
|
|
|
|
`,
|
|
|
|
CLOUDSTACK_SERVICE_OFFERING_1,
|
|
|
|
CLOUDSTACK_NETWORK_1,
|
|
|
|
CLOUDSTACK_TEMPLATE,
|
|
|
|
CLOUDSTACK_ZONE,
|
|
|
|
CLOUDSTACK_PUBLIC_IPADDRESS)
|
|
|
|
|
|
|
|
var testAccCloudStackLoadBalancerRule_vpc = fmt.Sprintf(`
|
2015-08-04 19:16:42 +02:00
|
|
|
resource "cloudstack_vpc" "foobar" {
|
|
|
|
name = "terraform-vpc"
|
|
|
|
cidr = "%s"
|
|
|
|
vpc_offering = "%s"
|
|
|
|
zone = "%s"
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "cloudstack_network" "foo" {
|
|
|
|
name = "terraform-network"
|
|
|
|
cidr = "%s"
|
|
|
|
network_offering = "%s"
|
|
|
|
vpc = "${cloudstack_vpc.foobar.name}"
|
|
|
|
zone = "${cloudstack_vpc.foobar.zone}"
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "cloudstack_ipaddress" "foo" {
|
|
|
|
vpc = "${cloudstack_vpc.foobar.name}"
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "cloudstack_instance" "foobar1" {
|
|
|
|
name = "terraform-server1"
|
|
|
|
display_name = "terraform"
|
|
|
|
service_offering= "%s"
|
|
|
|
network = "${cloudstack_network.foo.name}"
|
|
|
|
template = "%s"
|
|
|
|
zone = "${cloudstack_network.foo.zone}"
|
|
|
|
expunge = true
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "cloudstack_loadbalancer_rule" "foo" {
|
|
|
|
name = "terraform-lb"
|
2016-04-04 22:13:27 +02:00
|
|
|
ip_address = "${cloudstack_ipaddress.foo.ip_address}"
|
2015-08-04 19:16:42 +02:00
|
|
|
algorithm = "roundrobin"
|
|
|
|
network = "${cloudstack_network.foo.id}"
|
|
|
|
public_port = 80
|
|
|
|
private_port = 80
|
|
|
|
members = ["${cloudstack_instance.foobar1.id}"]
|
|
|
|
}`,
|
|
|
|
CLOUDSTACK_VPC_CIDR_1,
|
|
|
|
CLOUDSTACK_VPC_OFFERING,
|
|
|
|
CLOUDSTACK_ZONE,
|
|
|
|
CLOUDSTACK_VPC_NETWORK_CIDR,
|
|
|
|
CLOUDSTACK_VPC_NETWORK_OFFERING,
|
|
|
|
CLOUDSTACK_SERVICE_OFFERING_1,
|
|
|
|
CLOUDSTACK_TEMPLATE)
|
|
|
|
|
2015-09-07 00:43:37 +02:00
|
|
|
var testAccCloudStackLoadBalancerRule_vpc_update = fmt.Sprintf(`
|
2015-08-04 19:16:42 +02:00
|
|
|
resource "cloudstack_vpc" "foobar" {
|
2016-04-04 22:13:27 +02:00
|
|
|
name = "terraform-vpc"
|
|
|
|
cidr = "%s"
|
|
|
|
vpc_offering = "%s"
|
|
|
|
zone = "%s"
|
2015-08-04 19:16:42 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
resource "cloudstack_network" "foo" {
|
|
|
|
name = "terraform-network"
|
|
|
|
cidr = "%s"
|
|
|
|
network_offering = "%s"
|
|
|
|
vpc = "${cloudstack_vpc.foobar.name}"
|
|
|
|
zone = "${cloudstack_vpc.foobar.zone}"
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "cloudstack_ipaddress" "foo" {
|
|
|
|
vpc = "${cloudstack_vpc.foobar.name}"
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "cloudstack_instance" "foobar1" {
|
|
|
|
name = "terraform-server1"
|
|
|
|
display_name = "terraform"
|
|
|
|
service_offering= "%s"
|
|
|
|
network = "${cloudstack_network.foo.name}"
|
|
|
|
template = "%s"
|
|
|
|
zone = "${cloudstack_network.foo.zone}"
|
|
|
|
expunge = true
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "cloudstack_instance" "foobar2" {
|
|
|
|
name = "terraform-server2"
|
|
|
|
display_name = "terraform"
|
|
|
|
service_offering= "%s"
|
|
|
|
network = "${cloudstack_network.foo.name}"
|
|
|
|
template = "%s"
|
|
|
|
zone = "${cloudstack_network.foo.zone}"
|
|
|
|
expunge = true
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "cloudstack_loadbalancer_rule" "foo" {
|
|
|
|
name = "terraform-lb-update"
|
2016-04-04 22:13:27 +02:00
|
|
|
ip_address = "${cloudstack_ipaddress.foo.ip_address}"
|
2015-08-04 19:16:42 +02:00
|
|
|
algorithm = "leastconn"
|
|
|
|
network = "${cloudstack_network.foo.id}"
|
|
|
|
public_port = 443
|
|
|
|
private_port = 443
|
2016-04-04 22:13:27 +02:00
|
|
|
members = ["${cloudstack_instance.foobar1.id}", "${cloudstack_instance.foobar2.id}"]
|
2015-08-04 19:16:42 +02:00
|
|
|
}`,
|
|
|
|
CLOUDSTACK_VPC_CIDR_1,
|
|
|
|
CLOUDSTACK_VPC_OFFERING,
|
|
|
|
CLOUDSTACK_ZONE,
|
|
|
|
CLOUDSTACK_VPC_NETWORK_CIDR,
|
|
|
|
CLOUDSTACK_VPC_NETWORK_OFFERING,
|
|
|
|
CLOUDSTACK_SERVICE_OFFERING_1,
|
|
|
|
CLOUDSTACK_TEMPLATE,
|
|
|
|
CLOUDSTACK_SERVICE_OFFERING_1,
|
|
|
|
CLOUDSTACK_TEMPLATE)
|