fix error in metadata redirect
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
f45ebbf1b6
commit
7d3db06f27
4 changed files with 8 additions and 13 deletions
|
|
@ -15,6 +15,7 @@ function metadata_config() {
|
|||
|
||||
VENDOR_DATA=$(
|
||||
cat <<END | sed -e ':a;N;$!ba;s/\n/\\n/g' | sed -e 's/"/\\"/g'
|
||||
#cloud-config
|
||||
users:
|
||||
- name: syonad
|
||||
lock_passwd: true
|
||||
|
|
@ -43,11 +44,11 @@ END
|
|||
}
|
||||
|
||||
function metadata_start() {
|
||||
vpc="${1}"
|
||||
ip="${2}"
|
||||
port="${3}"
|
||||
vm_name="${4}"
|
||||
ssh_key="${5}"
|
||||
local vpc="${1}"
|
||||
local ip="${2}"
|
||||
local port="${3}"
|
||||
local vm_name="${4}"
|
||||
local ssh_key="${5}"
|
||||
|
||||
|
||||
metadata_config "${vm_name}" "${vpc}_${ip}-${port}" "${ssh_key}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue