From 00ae3049197bdefd66ea201f54d58b420ca0fbc7 Mon Sep 17 00:00:00 2001 From: "mingsheng.su" Date: Tue, 18 Jun 2019 17:54:07 +0800 Subject: [PATCH] update docs && examples --- examples/ucloud/{basic/ucloud.json => basic.json} | 9 +++++---- website/source/docs/builders/ucloud-uhost.html.md | 2 +- website/source/layouts/docs.erb | 3 +++ 3 files changed, 9 insertions(+), 5 deletions(-) rename examples/ucloud/{basic/ucloud.json => basic.json} (78%) diff --git a/examples/ucloud/basic/ucloud.json b/examples/ucloud/basic.json similarity index 78% rename from examples/ucloud/basic/ucloud.json rename to examples/ucloud/basic.json index 457af9569..6b0cb56df 100644 --- a/examples/ucloud/basic/ucloud.json +++ b/examples/ucloud/basic.json @@ -15,17 +15,18 @@ "instance_type": "n-basic-2", "source_image_id":"uimage-f1chxn", "ssh_username":"root", - "image_name": "packer-test-regionCopy-bj", + "image_name": "packer-test-basic-bj", "image_copy_to_mappings": [{ - "project_id": "org-fthbzm", + "project_id": "{{user `ucloud_project_id`}}", "region": "cn-sh2", - "description": "test" + "description": "test", + "name": "packer-test-basic-sh" }] }], "provisioners": [{ "type": "shell", "inline": [ - "yum install mysql -y" + "yum install -y mysql" ] }] } diff --git a/website/source/docs/builders/ucloud-uhost.html.md b/website/source/docs/builders/ucloud-uhost.html.md index 328dbaa81..b7b10a6fa 100644 --- a/website/source/docs/builders/ucloud-uhost.html.md +++ b/website/source/docs/builders/ucloud-uhost.html.md @@ -3,7 +3,7 @@ description: | The `ucloud-uhost` Packer builder plugin provides the capability to build customized images based on an existing base images. layout: docs -page_title: UCloud Image Builder +page_title: 'UCloud Image Builder' sidebar_current: 'docs-builders-ucloud-uhost' --- diff --git a/website/source/layouts/docs.erb b/website/source/layouts/docs.erb index 9f3a84d5a..34b29e15c 100644 --- a/website/source/layouts/docs.erb +++ b/website/source/layouts/docs.erb @@ -174,6 +174,9 @@ > Triton + > + UCloud + > Vagrant