Skip to content

Commit

Permalink
Update Azure template
Browse files Browse the repository at this point in the history
- Use Debian 9 instead of Debian 8
- Update Virtual Machine size options
- Add wait for apt/dpkg lock in install.sh
  • Loading branch information
hwdsl2 committed May 10, 2018
1 parent 9417d26 commit 7f65604
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 29 deletions.
6 changes: 3 additions & 3 deletions azure/README-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
- Username for VPN and SSH (用户名)
- Password for VPN and SSH (密码)
- IPsec Pre-Shared Key for VPN (IPsec 预共享密钥)
- Operating System Image (操作系统镜像,Debian 8 或 Ubuntu 16.04 LTS)
- Virtual Machine Size (虚拟机大小,默认值: Basic_A0
- Operating System Image (操作系统镜像,Debian 9 或 Ubuntu 16.04 LTS)
- Virtual Machine Size (虚拟机大小,默认值: Standard_B1s

请单击以下按钮开始:

Expand All @@ -23,7 +23,7 @@
## 作者

版权所有 (C) 2016 [Daniel Falkner](https://github.com/derdanu)
版权所有 (C) 2017 Lin Song
版权所有 (C) 2017-2018 Lin Song

## 屏幕截图

Expand Down
6 changes: 3 additions & 3 deletions azure/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ Customizable with the following options:
- Username for VPN and SSH
- Password for VPN and SSH
- IPsec Pre-Shared Key for VPN
- Operating System Image (Debian 8 or Ubuntu 16.04 LTS)
- Virtual Machine Size (Default: Basic_A0)
- Operating System Image (Debian 9 or Ubuntu 16.04 LTS)
- Virtual Machine Size (Default: Standard_B1s)

Press this button to start:

Expand All @@ -23,7 +23,7 @@ When the deployment finishes, Azure displays a notification. Next steps: [Config
## Authors

Copyright (C) 2016 [Daniel Falkner](https://github.com/derdanu)
Copyright (C) 2017 Lin Song
Copyright (C) 2017-2018 Lin Song

## Screenshot

Expand Down
33 changes: 10 additions & 23 deletions azure/azuredeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,34 +25,21 @@
"type": "string",
"allowedValues": [
"ubuntu1604",
"debian8"
"debian9"
],
"defaultValue": "debian8",
"defaultValue": "debian9",
"metadata": {
"description": "OS to use. Debian 8 or Ubuntu 16.04 LTS"
"description": "OS to use. Debian 9 or Ubuntu 16.04 LTS"
}
},
"VMSize": {
"type": "string",
"defaultValue": "Basic_A0",
"defaultValue": "Standard_B1s",
"allowedValues": [
"Basic_A0",
"Basic_A1",
"Basic_A2",
"Basic_A3",
"Basic_A4",
"Standard_A0",
"Standard_A1",
"Standard_A2",
"Standard_A3",
"Standard_A4",
"Standard_A5",
"Standard_A6",
"Standard_A7",
"Standard_D1",
"Standard_D2",
"Standard_D3",
"Standard_D4"
"Standard_B1s",
"Standard_B1ms",
"Standard_B2s",
"Standard_B2ms"
],
"metadata": {
"description": "The size of the Virtual Machine."
Expand All @@ -77,10 +64,10 @@
"sku": "16.04-LTS",
"version": "latest"
},
"debian8": {
"debian9": {
"publisher": "credativ",
"offer": "Debian",
"sku": "8",
"sku": "9",
"version": "latest"
},
"installScriptURL": "https://raw.githubusercontent.com/hwdsl2/setup-ipsec-vpn/master/azure/install.sh",
Expand Down
3 changes: 3 additions & 0 deletions azure/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ export VPN_IPSEC_PSK=$1
export VPN_USER=$2
export VPN_PASSWORD=$3

# Wait 60 seconds for apt/dpkg lock
sleep 60

wget https://git.io/vpnsetup -O vpnsetup.sh && sh vpnsetup.sh

0 comments on commit 7f65604

Please sign in to comment.