Advertisement
Guest User

Untitled

a guest
Mar 4th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. #
  2. ## Testing Terraform CLC support
  3. #
  4.  
  5. # Setup CLC Terraform provider
  6. provider "clc" {
  7. username = "xxx"
  8. password = "xxx"
  9. account = "IAST"
  10. }
  11.  
  12. # Create the top-level CLC group
  13. resource "clc_group" "test_group" {
  14. location_id = "GB3"
  15. name = "test group"
  16. parent = "GB3 Hardware"
  17. }
  18.  
  19. # Create a test server
  20. resource "clc_server" "test01" {
  21. name_template = "TST"
  22. description = "test server"
  23. source_server_id = "CENTOS-7-64-TEMPLATE"
  24. type = "standard"
  25. group_id = "${clc_group.test_group.id}"
  26. cpu = 1
  27. memory_mb = 1024
  28. power_state = "started"
  29. password = "Password123"
  30. network_id = "${var.network_id}"
  31.  
  32. provisioner "clc_exec" {
  33. package = "ACT Bootstrap"
  34. }
  35.  
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement