Add example file for linux server

This commit is contained in:
유성덕 2018-12-21 19:18:43 +09:00
parent 38c4e21563
commit fb62fa50df

View File

@ -64,6 +64,8 @@ Platform](https://www.ncloud.com/).
## Sample code of template.json
Here is a basic example for windows server.
{
"variables": {
"ncloud_access_key": "FRxhOQRNjKVMqIz3sRLY",
@ -88,6 +90,31 @@ Platform](https://www.ncloud.com/).
]
}
Here is a basic example for linux server.
{
"variables": {
"ncloud_access_key": "FRxhOQRNjKVMqIz3sRLY",
"ncloud_secret_key": "xd6kTO5iNcLookBx0D8TDKmpLj2ikxqEhc06MQD2"
},
"builders": [
{
"type": "ncloud",
"access_key": "{{user `ncloud_access_key`}}",
"secret_key": "{{user `ncloud_secret_key`}}",
"server_image_product_code": "SPSW0LINUX000044",
"server_product_code": "SPSVRSSD00000002",
"server_image_name": "packertest2",
"server_image_description": "server image description",
"region": "US-West",
"communicator": "ssh",
"ssh_username": "root"
}
]
}
## Requirements for creating Windows images
You should include the following code in the packer configuration file for