clean up ncloud docs
This commit is contained in:
parent
6205c71f98
commit
472a922642
@ -1,7 +1,6 @@
|
||||
---
|
||||
description: |
|
||||
As Packer allows users to develop a custom builder as a plugin, NAVER CLOUD PLATFORM provides its own Packer builder for your convenience.
|
||||
You can use NAVER CLOUD PLATFORM's Packer builder to easily create your server images.
|
||||
The ncloud builder allows you to create server images using the NAVER Cloud Platform.
|
||||
layout: docs
|
||||
page_title: 'Naver Cloud Platform - Builders'
|
||||
sidebar_current: 'docs-builders-ncloud'
|
||||
@ -9,10 +8,61 @@ sidebar_current: 'docs-builders-ncloud'
|
||||
|
||||
# NAVER CLOUD PLATFORM Builder
|
||||
|
||||
As Packer allows users to develop a custom builder as a plugin, NAVER CLOUD PLATFORM provides its own Packer builder for your convenience.
|
||||
You can use NAVER CLOUD PLATFORM's Packer builder to easily create your server images.
|
||||
The `ncloud` builder allows you to create server images using the [NAVER Cloud
|
||||
Platform](https://www.ncloud.com/).
|
||||
|
||||
#### Sample code of template.json
|
||||
## Configuration Reference
|
||||
|
||||
### Required:
|
||||
|
||||
- `ncloud_access_key` (string) - User's access key. Go to [\[Account
|
||||
Management \> Authentication
|
||||
Key\]](https://www.ncloud.com/mypage/manage/authkey) to create and view
|
||||
your authentication key.
|
||||
|
||||
- `ncloud_secret_key` (string) - User's secret key paired with the access
|
||||
key. Go to [\[Account Management \> Authentication
|
||||
Key\]](https://www.ncloud.com/mypage/manage/authkey) to create and view
|
||||
your authentication key.
|
||||
|
||||
- `server_image_product_code` (string) - Product code of an image to create.
|
||||
(member\_server\_image\_no is required if not specified)
|
||||
|
||||
- `server_product_code` (string) - Product (spec) code to create.
|
||||
|
||||
### Optional:
|
||||
|
||||
- `member_server_image_no` (string) - Previous image code. If there is an
|
||||
image previously created, it can be used to create a new image.
|
||||
(`server_image_product_code` is required if not specified)
|
||||
|
||||
- `server_image_name` (string) - Name of an image to create.
|
||||
|
||||
- `server_image_description` (string) - Description of an image to create.
|
||||
|
||||
- `block_storage_size` (number) - You can add block storage ranging from 10
|
||||
GB to 2000 GB, in increments of 10 GB.
|
||||
|
||||
- `access_control_group_configuration_no` (string) - This is used to allow
|
||||
winrm access when you create a Windows server. An ACG that specifies an
|
||||
access source (`0.0.0.0/0`) and allowed port (5985) must be created in
|
||||
advance.
|
||||
|
||||
- `user_data` (string) - Init script to run when an instance is created.
|
||||
- For Linux servers, Python, Perl, and Shell scripts can be used. The
|
||||
path of the script to run should be included at the beginning of the
|
||||
script, like \#!/usr/bin/env python, \#!/bin/perl, or \#!/bin/bash.
|
||||
- For Windows servers, only Visual Basic scripts can be used.
|
||||
- All scripts must be written in English.
|
||||
- `user_data_file` (string) - A path to a file containing a `user_data`
|
||||
script. See above for more information.
|
||||
|
||||
- `region` (string) - Name of the region where you want to create an image.
|
||||
(default: Korea)
|
||||
- values: Korea / US-West / HongKong / Singapore / Japan / Germany
|
||||
|
||||
|
||||
## Sample code of template.json
|
||||
|
||||
```
|
||||
{
|
||||
@ -38,28 +88,10 @@ You can use NAVER CLOUD PLATFORM's Packer builder to easily create your server i
|
||||
}
|
||||
```
|
||||
|
||||
#### Description
|
||||
## Requirements for creating Windows images
|
||||
|
||||
* type(required): "ncloud"
|
||||
* ncloud_access_key (required): User's access key. Go to [[Account Management > Authentication Key]](https://www.ncloud.com/mypage/manage/authkey) to create and view your authentication key.
|
||||
* ncloud_secret_key (required): User's secret key paired with the access key. Go to [[Account Management > Authentication Key]](https://www.ncloud.com/mypage/manage/authkey) to create and view your authentication key.
|
||||
* server_image_product_code: Product code of an image to create. (member_server_image_no is required if not specified)
|
||||
* server_product_code (required): Product (spec) code to create.
|
||||
* member_server_image_no: Previous image code. If there is an image previously created, it can be used to create a new image. (server_image_product_code is required if not specified)
|
||||
* server_image_name (option): Name of an image to create.
|
||||
* server_image_description (option): Description of an image to create.
|
||||
* block_storage_size (option): You can add block storage ranging from 10 GB to 2000 GB, in increments of 10 GB.
|
||||
* access_control_group_configuration_no: This is used to allow winrm access when you create a Windows server. An ACG that specifies an access source ("0.0.0.0/0") and allowed port (5985) must be created in advance.
|
||||
* user_data (option): Init script to run when an instance is created.
|
||||
* For Linux servers, Python, Perl, and Shell scripts can be used. The path of the script to run should be included at the beginning of the script, like #!/usr/bin/env python, #!/bin/perl, or #!/bin/bash.
|
||||
* For Windows servers, only Visual Basic scripts can be used.
|
||||
* All scripts must be written in English.
|
||||
* region (option): Name of the region where you want to create an image. (default: Korea)
|
||||
* values: Korea / US-West / HongKong / Singapore / Japan / Germany
|
||||
|
||||
### Requirements for creating Windows images
|
||||
|
||||
You should include the following code in the packer configuration file for provision when creating a Windows server.
|
||||
You should include the following code in the packer configuration file for
|
||||
provision when creating a Windows server.
|
||||
|
||||
```
|
||||
"builders": [
|
||||
@ -82,7 +114,13 @@ You should include the following code in the packer configuration file for provi
|
||||
]
|
||||
```
|
||||
|
||||
### Note
|
||||
## Note
|
||||
|
||||
* You can only create as many public IP addresses as the number of server instances you own. Before running Packer, please make sure that the number of public IP addresses previously created is not larger than the number of server instances (including those to be used to create server images).
|
||||
* When you forcibly terminate the packer process or close the terminal (command) window where the process is running, the resources may not be cleaned up as the packer process no longer runs. In this case, you should manually clean up the resources associated with the process.
|
||||
* You can only create as many public IP addresses as the number of server
|
||||
instances you own. Before running Packer, please make sure that the number of
|
||||
public IP addresses previously created is not larger than the number of
|
||||
server instances (including those to be used to create server images).
|
||||
* When you forcibly terminate the packer process or close the terminal
|
||||
(command) window where the process is running, the resources may not be
|
||||
cleaned up as the packer process no longer runs. In this case, you should
|
||||
manually clean up the resources associated with the process.
|
||||
|
@ -122,6 +122,9 @@
|
||||
<li<%= sidebar_current("docs-builders-lxd") %>>
|
||||
<a href="/docs/builders/lxd.html">LXD</a>
|
||||
</li>
|
||||
<li<%= sidebar_current("docs-builders-ncloud") %>>
|
||||
<a href="/docs/builders/ncloud.html">Naver</a>
|
||||
</li>
|
||||
<li<%= sidebar_current("docs-builders-null") %>>
|
||||
<a href="/docs/builders/null.html">Null</a>
|
||||
</li>
|
||||
|
Loading…
x
Reference in New Issue
Block a user