|
|
|
|
@ -7,15 +7,15 @@ import (
|
|
|
|
|
|
|
|
|
|
func testConfig() map[string]interface{} {
|
|
|
|
|
return map[string]interface{}{
|
|
|
|
|
"access_key": "access_key",
|
|
|
|
|
"secret_key": "secret_key",
|
|
|
|
|
"server_image_product_code": "SPSW0WINNT000016",
|
|
|
|
|
"server_product_code": "SPSVRSSD00000011",
|
|
|
|
|
"server_image_name": "packer-test {{timestamp}}",
|
|
|
|
|
"server_image_description": "server description",
|
|
|
|
|
"block_storage_size": 100,
|
|
|
|
|
"user_data": "#!/bin/sh\nyum install -y httpd\ntouch /var/www/html/index.html\nchkconfig --level 2345 httpd on",
|
|
|
|
|
"region": "Korea",
|
|
|
|
|
"access_key": "access_key",
|
|
|
|
|
"secret_key": "secret_key",
|
|
|
|
|
"server_image_product_code": "SPSW0WINNT000016",
|
|
|
|
|
"server_product_code": "SPSVRSSD00000011",
|
|
|
|
|
"server_image_name": "packer-test {{timestamp}}",
|
|
|
|
|
"server_image_description": "server description",
|
|
|
|
|
"block_storage_size": 100,
|
|
|
|
|
"user_data": "#!/bin/sh\nyum install -y httpd\ntouch /var/www/html/index.html\nchkconfig --level 2345 httpd on",
|
|
|
|
|
"region": "Korea",
|
|
|
|
|
"access_control_group_configuration_no": "33",
|
|
|
|
|
"communicator": "ssh",
|
|
|
|
|
"ssh_username": "root",
|
|
|
|
|
@ -24,15 +24,15 @@ func testConfig() map[string]interface{} {
|
|
|
|
|
|
|
|
|
|
func testConfigForMemberServerImage() map[string]interface{} {
|
|
|
|
|
return map[string]interface{}{
|
|
|
|
|
"access_key": "access_key",
|
|
|
|
|
"secret_key": "secret_key",
|
|
|
|
|
"server_product_code": "SPSVRSSD00000011",
|
|
|
|
|
"member_server_image_no": "2440",
|
|
|
|
|
"server_image_name": "packer-test {{timestamp}}",
|
|
|
|
|
"server_image_description": "server description",
|
|
|
|
|
"block_storage_size": 100,
|
|
|
|
|
"user_data": "#!/bin/sh\nyum install -y httpd\ntouch /var/www/html/index.html\nchkconfig --level 2345 httpd on",
|
|
|
|
|
"region": "Korea",
|
|
|
|
|
"access_key": "access_key",
|
|
|
|
|
"secret_key": "secret_key",
|
|
|
|
|
"server_product_code": "SPSVRSSD00000011",
|
|
|
|
|
"member_server_image_no": "2440",
|
|
|
|
|
"server_image_name": "packer-test {{timestamp}}",
|
|
|
|
|
"server_image_description": "server description",
|
|
|
|
|
"block_storage_size": 100,
|
|
|
|
|
"user_data": "#!/bin/sh\nyum install -y httpd\ntouch /var/www/html/index.html\nchkconfig --level 2345 httpd on",
|
|
|
|
|
"region": "Korea",
|
|
|
|
|
"access_control_group_configuration_no": "33",
|
|
|
|
|
"communicator": "ssh",
|
|
|
|
|
"ssh_username": "root",
|
|
|
|
|
|