Commit Graph

62 Commits

Author SHA1 Message Date
Trent Mick 21164320c7 improvements for using node-triton as a module 2015-12-08 11:59:45 -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 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 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
Dave Eddy 08527b433c delete "rm" alias, fixes #44 2015-10-14 16:15:45 -04:00
Trent Mick 8ece8d0024 Integration test config handling improvements. Add 'ResourceNotFound' error and fine tune exit status handling.
Fixes #37.
2015-10-06 23:24:42 -07:00
Dave Eddy e7109071de cloudapi and tritonapi exports should match 2015-09-29 18:13:34 -04:00
Trent Mick bf21ac467a 'triton profile{,s}' all except 'triton profile -a' 2015-09-25 12:19:29 -07:00
Dave Eddy 2eeb68cba5 document destructiveAllowed, use TRITON_* vars for tests 2015-09-25 13:24:12 -04:00
Trent Mick f38bfb68f1 should support TRITON_KEY_ID as well 2015-09-25 10:22:58 -07:00
Dave Eddy e5c5f2d54c use env profile for integration tests 2015-09-25 13:10:39 -04:00
Trent Mick b238fcf52f improve on a DEPTH_ZERO_SELF_SIGNED_CERT error
from:
    triton account: error: DEPTH_ZERO_SELF_SIGNED_CERT
to this:
    triton account: error (SelfSignedCert): could not access CloudAPI https://10.88.88.3 because it uses a self-signed TLS certificate and your current profile is not configured for insecure access: DEPTH_ZERO_SELF_SIGNED_CERT
2015-09-23 21:10:52 -07:00
Trent Mick 0c2ade98ba Fix `"insecure":true` in a profile
This was broken in commit 99d9113eae
2015-09-21 14:07:07 -07:00
Trent Mick 5ed72ea117 Fix 'make check' 2015-09-21 12:37:59 -07:00
Trent Mick 99d9113eae joyent/node-triton#28 profile opts (-i, -a, -k, -u) aren't being applied to profiles other than the `env` profile
Profile/CloudAPI top-level CLI options are now applied to the current
profile. Also clean up loading of the 'env' profile a bit so that
special casing of that is more hidden in "config.js".

Also add support for the TRITON_URL, TRITON_TLS_INSECURE and
TRITON_ACCOUNT envvars. (I didn't add TRITON_KEY_ID because a coming
change will do better than that.)

Fixes #28, #24.
2015-09-21 12:34:37 -07:00
Trent Mick 5e75bff3fe -p profile option should be hidden until complete 2015-09-09 16:14:34 -07:00
Trent Mick d2e999916b joyent/node-triton#18 first cut of 'triton profiles' 2015-09-09 16:04:15 -07:00
Dave Eddy bdc3ea6651 mpl and copyright 2015-09-04 14:12:20 -04:00
Dave Eddy 0fee17fda0 getting ready for OSS
- s/triton/tritonapi/
- s/Triton/TritonApi/
- s/CloudAPI/CloudApi/
2015-09-04 14:05:36 -04:00
Trent Mick 411659180f bash completion support 2015-09-04 00:09:19 -07:00
Dave Eddy f3aad05fc9 use mkdirp to create cache directories 2015-09-03 18:12:08 -04:00
Trent Mick 4064b93c8e joyent/node-triton#5 show usage info on usage errors 2015-09-02 01:04:20 -07:00
Trent Mick e145090c79 Fix handling of SDC_TESTING envvar (really really this time) 2015-08-31 12:31:06 -07:00
Trent Mick 1b2ed0758e Fix handling of SDC_TESTING envvar 2015-08-31 12:23:20 -07:00
Trent Mick 233e8ee784 reduce mkdir noise in log for every 'triton ...' run
E.g.:
    $ triton -v inst 1c7f40f6-a253-49f3-94d6-8f0656440696 2>&1 | bunyan
    [2015-08-31T17:57:02.682Z]  INFO: triton/24726 on danger0.local (/Users/trentm/joy/node-triton/lib/cli.js:188): failed to make dir /Users/trentm/.triton (err.code=EEXIST)
        Error: EEXIST, file already exists '/Users/trentm/.triton'
            at Object.fs.mkdirSync (fs.js:654:18)
            at /Users/trentm/joy/node-triton/lib/cli.js:186:24
            at Array.forEach (native)
            at CLI.triton (/Users/trentm/joy/node-triton/lib/cli.js:184:29)
            at CLI.do_instance (/Users/trentm/joy/node-triton/lib/do_instance.js:16:9)
            at CLI.dispatch (/Users/trentm/joy/node-triton/node_modules/cmdln/lib/cmdln.js:664:13)
            at /Users/trentm/joy/node-triton/node_modules/cmdln/lib/cmdln.js:425:18
            at CLI.init (/Users/trentm/joy/node-triton/node_modules/cmdln/lib/cmdln.js:477:5)
            at CLI.init (/Users/trentm/joy/node-triton/lib/cli.js:221:26)
            at CLI.main (/Users/trentm/joy/node-triton/node_modules/cmdln/lib/cmdln.js:404:10)
    [2015-08-31T17:57:02.684Z]  INFO: triton/24726 on danger0.local (/Users/trentm/joy/node-triton/lib/cli.js:188): failed to make dir /Users/trentm/.triton/cache (err.code=EEXIST)
        Error: EEXIST, file already exists '/Users/trentm/.triton/cache'
            at Object.fs.mkdirSync (fs.js:654:18)
            at /Users/trentm/joy/node-triton/lib/cli.js:186:24
            at Array.forEach (native)
            at CLI.triton (/Users/trentm/joy/node-triton/lib/cli.js:184:29)
            at CLI.do_instance (/Users/trentm/joy/node-triton/lib/do_instance.js:16:9)
            at CLI.dispatch (/Users/trentm/joy/node-triton/node_modules/cmdln/lib/cmdln.js:664:13)
            at /Users/trentm/joy/node-triton/node_modules/cmdln/lib/cmdln.js:425:18
            at CLI.init (/Users/trentm/joy/node-triton/node_modules/cmdln/lib/cmdln.js:477:5)
            at CLI.init (/Users/trentm/joy/node-triton/lib/cli.js:221:26)
            at CLI.main (/Users/trentm/joy/node-triton/node_modules/cmdln/lib/cmdln.js:404:10)
    ...
2015-08-31 11:16:58 -07:00
Trent Mick 92ad1af94e shuffle cmd order in 'triton help' output. 'info' is a nice one to have first 2015-08-31 11:14:07 -07:00
Trent Mick 9e3df02a5e shortid support for instances; --url,--account et al top-level options 2015-08-26 17:22:02 -07:00
Dave Eddy 0ccda0af10 add listDatacenters 2015-08-26 19:59:28 -04:00
Dave Eddy 769e9bbe2b listServices 2015-08-26 19:56:18 -04:00
Dave Eddy 83b1cf188f do_network 2015-08-26 17:09:50 -04:00
Dave Eddy d2ce855a69 do_networks 2015-08-26 16:40:50 -04:00
Dave Eddy 9b57df6962 add wait-instance 2015-08-26 15:16:01 -04:00
Dave Eddy a5213658fa config, cache images 2015-08-26 12:59:12 -04:00
Dave Eddy e61c6099b3 combine delete with start/stop/reboot 2015-08-26 12:18:40 -04:00
Dave Eddy b0b9eb9249 add delete 2015-08-26 01:25:26 -04:00
Dave Eddy b2105ca41f add triton keys 2015-08-26 00:40:32 -04:00
Trent Mick ba5e4d0af4 line up 'triton' help output better 2015-08-25 21:34:47 -07:00
Dave Eddy 6bd918eb81 do_info 2015-08-26 00:16:41 -04:00
Trent Mick 0d4e93208c first pass at 'triton create' 2015-08-25 20:53:53 -07:00
Dave Eddy 15ca8ecc32 add triton account and touch up instance 2015-08-25 23:44:08 -04:00
Dave Eddy a8d8d638ec do_ssh 2015-08-25 23:25:00 -04:00
Dave Eddy 463be10e2d add start/stop/restart and waitForMachineState 2015-08-25 21:46:14 -04:00
Dave Eddy 02305407a8 add start, stop, reboot 2015-08-25 21:09:32 -04:00
Dave Eddy b5f9cbe054 add instance (alias and uuid) 2015-08-25 20:27:46 -04:00
Trent Mick e01babc05e a quick 'triton package ID'; make 'cloudapi' command hidden from help output 2015-08-25 16:12:35 -07:00
Trent Mick 0987881887 'triton image ID', update TODO.txt 2015-08-25 15:47:29 -07:00
Dave Eddy 7afaadbd29 add packages, remove tabulate, put stuff in common 2015-08-25 18:30:25 -04:00