update examples && CODEOWNERS

This commit is contained in:
mingsheng.su 2019-06-27 14:10:26 +08:00
parent 823e2e260f
commit 0ca67081c9
3 changed files with 32 additions and 1 deletions

View File

@ -16,6 +16,7 @@
/builder/scaleway/ @sieben @mvaude @jqueuniet @fflorens @brmzkw
/builder/hcloud/ @LKaemmerling
/builder/hyperone @m110 @gregorybrzeski @ad-m
/builder/ucloud/ @shawnmssu
/builder/yandex @GennadySpb @alexanderKhaustov @seukyaso
# provisioners

View File

@ -26,7 +26,7 @@
"provisioners": [{
"type": "shell",
"inline": [
"yum install -y mysql"
"yum install -y nginx"
]
}]
}

View File

@ -0,0 +1,30 @@
{
"variables": {
"ucloud_public_key": "{{env `UCLOUD_PUBLIC_KEY`}}",
"ucloud_private_key": "{{env `UCLOUD_PRIVATE_KEY`}}",
"ucloud_project_id": "{{env `UCLOUD_PROJECT_ID`}}"
},
"builders": [{
"type": "ucloud-uhost",
"public_key":"{{user `ucloud_public_key`}}",
"private_key":"{{user `ucloud_private_key`}}",
"project_id": "{{user `ucloud_project_id`}}",
"region": "cn-bj2",
"availability_zone": "cn-bj2-02",
"instance_type": "n-basic-2",
"source_image_id":"uimage-irofn4",
"ssh_password": "ucloud_2019",
"ssh_username":"ubuntu",
"image_name": "packer-test-ubuntu-bj"
}],
"provisioners": [{
"type": "shell",
"inline": [
"sleep 30",
"echo 'ucloud_2019' | sudo -S apt update",
"sudo apt install nginx -y"
]
}]
}