Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- ## Testing Terraform CLC support
- #
- # Setup CLC Terraform provider
- provider "clc" {
- username = "xxx"
- password = "xxx"
- account = "IAST"
- }
- # Create the top-level CLC group
- resource "clc_group" "test_group" {
- location_id = "GB3"
- name = "test group"
- parent = "GB3 Hardware"
- }
- # Create a test server
- resource "clc_server" "test01" {
- name_template = "TST"
- description = "test server"
- source_server_id = "CENTOS-7-64-TEMPLATE"
- type = "standard"
- group_id = "${clc_group.test_group.id}"
- cpu = 1
- memory_mb = 1024
- power_state = "started"
- password = "Password123"
- network_id = "${var.network_id}"
- provisioner "clc_exec" {
- package = "ACT Bootstrap"
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement