Update vmpooler commands
This commit is contained in:
parent
80fec56ce8
commit
32cfa66254
1 changed files with 7 additions and 3 deletions
10
.zshenv
10
.zshenv
|
|
@ -289,10 +289,14 @@ alias -s mkv="mplayer"
|
||||||
alias -s mpg="mplayer"
|
alias -s mpg="mplayer"
|
||||||
|
|
||||||
# Functions
|
# Functions
|
||||||
function listvm() { curl -H "X-AUTH-TOKEN: $(grep vmpooler_token ~/.fog | cut -d ' ' -f 4)" -s --url http://vcloud.delivery.puppetlabs.net/vm/ ; }
|
function listtoken() { curl -u hunter --url vmpooler.delivery.puppetlabs.net/api/v1/token ; }
|
||||||
function getvm() { curl -H "X-AUTH-TOKEN: $(grep vmpooler_token ~/.fog | cut -d ' ' -f 4)" -d --url http://vcloud.delivery.puppetlabs.net/vm/$1 ; }
|
function gettoken() { curl -X POST -u hunter --url vmpooler.delivery.puppetlabs.net/api/v1/token ; }
|
||||||
|
function rmtoken() { curl -X DELETE -u hunter --url vmpooler.delivery.puppetlabs.net/api/v1/token/$1 ; }
|
||||||
|
function listmyvm() { curl --url vmpooler.delivery.puppetlabs.net/api/v1/token/$(grep vmpooler_token ~/.fog | cut -d ' ' -f 4); }
|
||||||
|
function listvm() { curl -H "X-AUTH-TOKEN: $(grep vmpooler_token ~/.fog | cut -d ' ' -f 4)" -s --url vmpooler.delivery.puppetlabs.net/api/v1/vm/ ; }
|
||||||
|
function getvm() { curl -H "X-AUTH-TOKEN: $(grep vmpooler_token ~/.fog | cut -d ' ' -f 4)" -d --url vmpooler.delivery.puppetlabs.net/api/v1/vm/$1 ; }
|
||||||
function sshvm() { ssh -i ~/.ssh/id_rsa-acceptance root@$1 ; }
|
function sshvm() { ssh -i ~/.ssh/id_rsa-acceptance root@$1 ; }
|
||||||
function rmvm() { curl -H "X-AUTH-TOKEN: $(grep vmpooler_token ~/.fog | cut -d ' ' -f 4)" -X DELETE --url http://vcloud.delivery.puppetlabs.net/vm/$1 ; }
|
function rmvm() { curl -H "X-AUTH-TOKEN: $(grep vmpooler_token ~/.fog | cut -d ' ' -f 4)" -X DELETE --url vmpooler.delivery.puppetlabs.net/api/v1/vm/$1 ; }
|
||||||
args() { echo $#; }
|
args() { echo $#; }
|
||||||
title() { WINTITLE="$*"; print -Pn "\e]0;$WINTITLE\a" }
|
title() { WINTITLE="$*"; print -Pn "\e]0;$WINTITLE\a" }
|
||||||
hl() { pbpaste | highlight --syntax=$1 -O rtf | pbcopy }
|
hl() { pbpaste | highlight --syntax=$1 -O rtf | pbcopy }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue