Trent Mick
246810e342
TOOLS-1587 'triton profile docker-setup' fails when path to 'docker' has spaces
...
Reviewed by: Julien Gilli <julien.gilli@joyent.com>
Reviewed by: Orlando Vazquez <orlando@joyent.com>
Approved by: Orlando Vazquez <orlando@joyent.com>
2016-10-26 11:11:27 -07:00
Trent Mick
0d4850405b
joyent/node-triton#136 bash completion for 'triton profile create --copy <TAB>'
...
Reviewed by: Angela Fong <angela.fong@joyent.com>
Approved by: Angela Fong <angela.fong@joyent.com>
2016-09-30 15:43:51 -07:00
Trent Mick
21f2d29c86
joyent/node-triton#130 triton
image caching should include disabled images
...
Reviewed by: Cody Peter Mello <cody.mello@joyent.com>
Approved by: Cody Peter Mello <cody.mello@joyent.com>
2016-09-16 16:01:38 -07:00
Trent Mick
0932365d46
joyent/node-triton#120 Ensure 'triton inst ls' only requires ListMachines RBAC access
2016-06-08 14:44:46 -07:00
Trent Mick
fabe0a0841
joyent/node-triton#113 error help for usage errors
...
This builds on cmdln 4.x's "errHelp" facilities.
2016-06-08 14:13:21 -07:00
Trent Mick
ad20360306
joyent/node-triton#120 triton -r,--role ROLE ...
to be able to take up an RBAC role
2016-06-07 14:19:06 -07:00
Trent Mick
8d8d9ed39f
bash completion for 'triton env TAB'
2016-04-22 13:09:35 -07:00
Trent Mick
a48d7629dd
joyent/node-triton#111 want triton env --unset,-u
option emit env to unset relevant envvars
2016-04-22 12:55:32 -07:00
Trent Mick
de391bf013
tweak 'triton create -h' output to help clarify/group related create options
2016-04-12 10:31:07 -07:00
Trent Mick
e068c7abcf
joyent/node-triton#82 locality flag/property at creation (far/near as in sdc-createmachine)
...
a.k.a. "Affinity", `triton create -a,--affinity RULE ...`
2016-04-11 17:04:52 -07:00
Trent Mick
8cd4dd80eb
joyent/node-triton#46 Triton help for setting up and using Docker against a Triton DC
...
This implements all but step #4 (`triton docker ...`) in the proposal.
2016-03-18 16:51:22 -07:00
Trent Mick
e1c977e623
Drop the '-M' option from 'triton ssh' added recently for #52 .
...
A better alternative now is 'ssh $(triton ip <inst>)'.
2016-03-11 15:24:40 -08:00
Trent Mick
1e2b19c0e6
joyent/node-triton#103 triton ip <inst>
to output the instance's primaryIp
2016-03-11 15:21:19 -08:00
Trent Mick
4f778f696e
joyent/node-triton#52 Fix interactive 'triton ssh <inst>' sessions; add workaround for #52
2016-03-11 14:58:27 -08:00
Trent Mick
3824623404
PUBAPI-1266: Add instance disable-firewall/enable-firewall to node-triton (CR changes)
...
- Don't need confirmation/--force for undoable commands
- Drop duration from output message after wait. I don't feel the time
for this should ever be long enough that the number is interesting
enough to get top billing.
- If "shouldn't get here", then it should be an assert.
- Use '_' instead of '__' for unused options.
- Drop the res.instId hack. Instead use a partial faux instance
in place where other endpoints return a machine object.
- Add 'tritoninstance' bash completion.
- Group together with 'fwrules' in 'triton inst' help output.
2016-03-11 11:24:44 -08:00
Trent Mick
c227e15ae3
Slightly more helpful message when 'triton profile ls' has no results
2016-03-11 10:24:55 -08:00
Marsell Kukuljevic
fb20159053
PUBAPI-1266 - add support for instance (en|dis)able-firewall.
2016-03-12 01:09:26 +11:00
Trent Mick
e8d1fb578b
joyent/node-triton#97 triton profile set -
to set the *last* profile as current
2016-03-10 11:42:23 -08:00
Trent Mick
e3b5e6b016
joyent/node-triton#101 Bash completion for server-side data: instances, images, etc.
2016-03-09 09:22:33 -08:00
Marsell Kukuljevic
7d635fc81c
PUBAPI-1268 - remove spinner (-ww) from snapshot create/delete.
2016-03-08 23:09:29 +11:00
Trent Mick
ba16f0d9ef
joyent/node-triton#99 triton profile set ...
alias for set-current
...
Also add 'triton profile set <TAB>' completion.
2016-03-02 22:53:32 -08:00
Trent Mick
88c52d1610
node-triton#98 triton inst get ID
fails obtusely on a destroyed instance
2016-03-02 00:05:06 -08:00
Trent Mick
1d0bafcc5e
slightly improved bash complete install notes; fix 'make check'
2016-03-01 23:02:40 -08:00
Marsell Kukuljevic
634350018a
PUBAPI-1233/PUBAPI-1234 Add firewalls and snapshots to node-triton
...
triton fwrule ...
triton instance snapshot ...
Reviewed-By: Trent Mick (with some contributions)
2016-03-01 22:38:21 -08:00
Trent Mick
a1df6e0fe7
node-triton#52 Fix 'triton ssh ...' stdout/stderr to fully flush with node >= 4.x
...
Fixes #52
2016-02-26 15:28:33 -08:00
Trent Mick
99a083e232
changelog for #93 #94 fix
2016-02-15 10:12:10 -08:00
Kris Shannon
bcf55f0a63
node-triton#94 Protect against cache lookup returning null
...
If the cache file does not exist _cacheGetJson will not pass any value to the callback.
In the getImage function the callback passed to _cacheGetJson assumes if there was no error value then the second argument must be an array.
Add some logic to guard against null values before iterating over the array.
2016-02-15 10:09:04 -08:00
Kris Shannon
6703363934
node-triton#95 Patch missing rename from 4760defd05
...
The fix for joyent/node-triton#88 renamed the metadataandtags
function 'tagsFromOpts' to 'tagsFromCreateOpts' but didn't
rename all of it's uses.
2016-02-15 09:28:44 -08:00
Trent Mick
70c7bbd434
node-triton#90 triton
CLI should summarize err.body.errors
from CloudAPI
2016-02-12 11:09:55 -08:00
Trent Mick
4760defd05
joyent/node-triton#88 : triton inst ...
support for updating tags
2016-02-11 09:46:43 -08:00
Trent Mick
da9e80d94e
Don't state that 'triton inst list' can filter by tags, it can't yet. That is #74 .
2016-02-03 11:57:07 -08:00
Trent Mick
edb28b6791
node-triton#86 "triton profiles" should not require a current profile
2016-02-02 22:03:01 -08:00
Trent Mick
59b804fe6c
support triton.createClient(...) without requiring a configDir
2016-02-02 10:47:34 -08:00
Trent Mick
54923c9ae3
Windows path fixes (should basically run on windows now)
...
Fixes #83 .
2016-01-28 13:41:22 -08:00
Trent Mick
810f0add56
node-triton#78 'triton image delete IMAGE'
2016-01-25 23:23:36 -08:00
Trent Mick
879e86efa3
node-triton#79 triton instance get NAME
doesn't have dns_names
CNS field
2016-01-25 16:12:14 -08:00
Trent Mick
b81b9b0e2d
PUBAPI-1227: document the inconsistency that ListMachines shows *docker* instances, but ListImages does NOT show docker images
2016-01-25 13:26:57 -08:00
Trent Mick
77efb2a7a2
triton create error in v4.3.0
...
Fixes #77
2016-01-19 14:44:30 -08:00
Trent Mick
8d235b8e28
'triton image create' et al
...
Fixes #76 : `triton image create ...` and `triton image wait ...`
Fixes #72 : want `triton image` to still return image details even when it is not in 'active' state
2016-01-19 12:30:46 -08:00
Trent Mick
989a43f367
bash completion for 'triton account update <TAB>'
2016-01-18 11:58:01 -08:00
Trent Mick
5ee94b04af
joyent/node-triton#75 'triton account update ...'
2016-01-14 22:56:38 -08:00
Trent Mick
fb8aec6229
unhide 'triton completion'
2016-01-14 09:22:39 -08:00
Trent Mick
01dc55e93f
joyent/node-triton#73 triton instance list --credentials
to include "metadata.credentials" in instance listing
2016-01-14 09:22:39 -08:00
Marsell Kukuljevic
09954b3f55
clistyle: some more tritonapi tests.
2016-01-14 09:15:58 +11:00
Trent Mick
545d0a3a65
joyent/node-triton#35 More easily distinguish KVM and LX and Docker images and instances
...
Also support filtering insts on docker=true.
2016-01-13 12:18:05 -08:00
Trent Mick
9fbb2006bc
add 'triton env -t'
2016-01-12 10:27:46 -08:00
Trent Mick
3f427adff1
clistyle: updated bash completion (much improved, fixes limitation that subsubcmds weren't supported)
2016-01-09 16:55:12 -08:00
Trent Mick
922ca13816
clistyle: Much improved bash completions (importantly for the clistyle changes, it supports subsubcommands)
2016-01-08 11:08:07 -08:00
Marsell Kukuljevic
ea759565c7
clistyle: some account key UI fixes.
2016-01-05 23:14:42 +11:00
Trent Mick
88bbfdfba7
clistyle: networks should be hidden, no whoami
2016-01-04 22:57:24 -08:00
Trent Mick
105b7bf9a4
clistyle: 'triton account ...'
2016-01-04 22:51:04 -08:00
Trent Mick
13b525cca7
clistyle: 'triton network ...'
2016-01-04 21:53:52 -08:00
Trent Mick
d2c20a5161
clistyle: rest of 'triton instance ...'
2016-01-04 13:08:16 -08:00
Trent Mick
a05de11fb3
clistyle: some CR on marsell's commit 1dfac84
2016-01-04 10:46:57 -08:00
Trent Mick
e21635eaa3
clistyle: part of 'triton instance ...'
2016-01-04 10:46:56 -08:00
Marsell Kukuljevic
96216c6e61
clistyle: add support for account keys, expand subcommand tests,
...
some trivial bug fixes.
2016-01-04 10:46:24 -08:00
Trent Mick
f4246b5faf
clistyle: triton profile ...
2016-01-04 10:46:24 -08:00
Trent Mick
632d5a6568
style: triton img ...
2016-01-04 10:45:50 -08:00
Trent Mick
559162896f
clistyle: triton pkg ...
2016-01-04 10:45:50 -08:00
Trent Mick
adb4c851b9
joyent/node-triton#68 Support specifying networks at instance create time
2015-12-31 09:55:31 -08:00
Trent Mick
8f666b7aca
joyent/node-triton#67 triton create
should support assigning tags
...
Fixes #67 .
2015-12-30 16:12:17 -08:00
Trent Mick
b50f0c8aa1
joyent/node-triton#63 "triton images" with a filter should not be cached
2015-12-29 14:53:49 -08:00
Trent Mick
f66e50c770
joyent/node-triton#65 Fix 'triton profile(s)' handling when the user has no profiles yet
2015-12-29 14:32:27 -08:00
Trent Mick
baddfbf814
update 'triton pkgs -h' help output to mention support for field filters
2015-12-17 15:39:32 -08:00
Trent Mick
aa198b33c8
joyent/node-triton#60 display vcpus
in triton packages
output
2015-12-16 10:56:22 -08:00
Trent Mick
5ea3b1862a
sorted stable fields for 'triton rbac role ROLE' output; use 'add' for added fields in 'triton rbac apply' resource updates
2015-12-16 10:47:59 -08:00
Trent Mick
d15c5893b3
Fix triton rbac role NAME
.
2015-12-09 12:01:24 -08:00
Trent Mick
d25df7c011
Add '-d,--data DATA' option to triton cloudapi ...
...
Also fix '-H,--header' option to `triton cloudapi`. It never worked.
2015-12-09 12:01:24 -08:00
Trent Mick
21164320c7
improvements for using node-triton as a module
2015-12-08 11:59:45 -08:00
Trent Mick
440d09f8b7
joyent/node-triton#59 triton create -m,--metadata
etc. for adding metadata on instance creation
2015-12-07 11:28:59 -08:00
Trent Mick
4576918909
joyent/node-triton#58 : triton --act-as=ACCOUNT ...
for operator accounts
2015-12-02 10:52:47 -08:00
Trent Mick
5c3a4adee3
rbac: Fix bugs in 'triton rbac policy NAME' and updating a policy in 'triton rbac apply'
2015-12-02 10:05:21 -08:00
Trent Mick
3cd4b0d735
'triton --accept-version VER ...' developer option
2015-11-25 11:04:44 -08:00
Trent Mick
4a46310a8d
experimental 'triton env [PROFILE]'
2015-11-24 16:40:17 -08:00
Trent Mick
212903922a
is no longer hidden
2015-11-24 12:34:53 -08:00
Trent Mick
82443e2d67
joyent/node-triton#54 'triton rbac apply --dev-create-keys-and-profiles'
2015-11-23 16:57:58 -08:00
Trent Mick
6918fb93f7
joyent/node-triton#54 'triton rbac reset', 'triton [rbac] keys' default output changes, 'triton rbac apply' implicit usage of './rbac-user-keys' dir, drop shortIds for 'triton rbac ...'
2015-11-21 12:41:16 -08:00
Trent Mick
1160fe120b
joyent/node-triton#54 'triton rbac info' improvements
2015-11-18 14:18:29 -08:00
Trent Mick
7c8554bf14
joyent/node-triton#54 'triton rbac apply'
2015-11-18 12:54:44 -08:00
Alex Wilson
00cdb81287
joyent/node-triton#55 PUBAPI-1166 Use http-signature for generating Authorization, not sprintf
...
Reviewed by: Trent Mick <trent.mick@joyent.com>
2015-11-13 16:46:09 -08:00
Trent Mick
dfbbf309e9
joyent/node-triton#54 'triton rbac {instance,image,network,package,}role-tags ...'
2015-11-12 16:13:23 -08:00
Trent Mick
cd611dafde
joyent/node-triton#54 'triton rbac role-tags' and refactoring to make adding other *-role-tags easy
2015-11-12 16:04:12 -08:00
Trent Mick
4e45e4061f
joyent/node-triton#54 a start at 'triton rbac info', add 'triton rbac instance-role-tags'
2015-11-09 15:09:37 -08:00
Trent Mick
74b8f3e42e
joyent/node-triton#54 first pass at 'triton rbac key' and 'triton rbac keys' (with feeling, aka the new files actually added)
2015-11-05 15:21:19 -08:00
Trent Mick
dd0a70820b
joyent/node-triton#54 first pass at 'triton rbac key' and 'triton rbac keys'
2015-11-05 15:13:14 -08:00
Trent Mick
4491a55093
Better help output for 'triton keys', also avoid double newlines between key output.
2015-11-05 12:41:56 -08:00
Trent Mick
c7daecc6f3
joyent/node-triton#54 first pass at 'triton rbac policy' and 'triton rbac policies'
2015-11-05 12:30:06 -08:00
Trent Mick
6b1065b24d
Don't print 'user: undefined' for the env profile for 'triton profile' if not defined
2015-11-05 11:33:59 -08:00
Trent Mick
dd95ab5f4a
joyent/node-triton#54 first pass at 'triton rbac role' and 'triton rbac roles'
2015-11-04 15:38:38 -08:00
Trent Mick
1652662e2c
joyent/node-triton#54 Complete first pass at 'triton rbac user' and 'triton rbac users'
2015-11-04 00:11:19 -08:00
Trent Mick
8a46d23268
joyent/node-triton#54 A start at RBAC support (still very early)
2015-11-03 15:40:59 -08:00
Trent Mick
d4ba912955
Ensure CLI printing of usage info on UsageError doesn't blow up on a help
*function*
2015-11-03 14:39:37 -08:00
Trent Mick
5bf78491ff
Fix bug with 'CLI.tritonapi' getter creating a TritonApi client multiple times.
2015-11-03 14:39:18 -08:00
Trent Mick
a85391f023
minor fixes/tweaks to help output of a few commands
2015-10-29 15:24:37 -07:00
Trent Mick
59c41886d1
minor command help tweaks
2015-10-19 09:03:39 -07:00
Trent Mick
da447939d2
triton create ... --firewall
for CreateMachine firewall_enabled
...
Fixes #49
2015-10-17 12:43:24 -07:00
Dave Eddy
08527b433c
delete "rm" alias, fixes #44
2015-10-14 16:15:45 -04:00
Trent Mick
f1e90cdab8
triton profile ...
doesn't use the profile from TRITON_PROFILE
envvar
...
Fixes #43
2015-10-14 11:45:41 -07:00
Trent Mick
f7d9dc0ba2
joyent/node-triton#40 Divorce wanted between profile keyId
and keyId actually sent to server
...
fixes #40
2015-10-07 15:49:49 -07:00
Trent Mick
a71a1ddba3
fix 'name' var usage; style nit on for-loop usage for early out
2015-10-06 23:33:18 -07:00