Michael Schurter
361db24627
Fix Error -> Errorf
2017-05-30 12:08:59 -07:00
Michael Schurter
fe79c8ac88
Don't autoadvertise private ip if bind=localhost
...
A slight improvement to #2399 - if bind is localhost, return an error
instead of advertising a private ip. The advertised ip isn't valid and
will just cause errors on use. It's better to fail with an error message
instructing users how to fix the problem.
2017-05-30 11:47:29 -07:00
Michael Schurter
f2476cfa67
Fix config parsing test
...
Went overboard before I realized there's only one test case.
2017-05-30 11:39:26 -07:00
Michael Schurter
f6ea22302c
Update docs to match gc_max_allocs default
2017-05-30 11:39:12 -07:00
Alex Dadgar
65465e9ac6
Update artifact.html.md
2017-05-30 09:47:17 -07:00
Alex Dadgar
8e5ac52e80
Merge pull request #2679 from jippi/patch-3
...
correct artifact docs
2017-05-30 09:46:51 -07:00
Christian Winther
5bbe5f14fe
correct arifact docs
...
It's not clear today that `destination` *always* is a directory, and never a destination file
I've been bitten by this multiple times, as the docs today seem like it's possible to download remote file `x` and put it in dir `y` *and* rename the file to `z`
2017-05-30 12:37:52 +02:00
Michael Schurter
5933cac008
Fix diff test
2017-05-26 17:05:14 -07:00
Michael Schurter
68db2aa814
Fix getter tests
...
And use an interface for ReplaceEnv since its all getter needs.
2017-05-26 16:52:47 -07:00
Michael Schurter
aa0e977f1c
Fix executor tests
2017-05-26 16:46:03 -07:00
Michael Schurter
6d0bc9858a
Fix template canonicalize test
2017-05-26 16:42:16 -07:00
Michael Schurter
c4aa3c38cc
Always use PATH-only env for rkt commands
2017-05-26 15:41:26 -07:00
Michael Schurter
de4b008579
Test env parsing
2017-05-26 15:31:40 -07:00
Michael Schurter
fc5254d4b1
Use custom TaskEnv to provide PATH for rkt
2017-05-26 15:24:14 -07:00
Michael Schurter
9ccb53d561
Let's pretend I never committed this
2017-05-26 15:06:59 -07:00
Michael Schurter
be959a4e63
Fix and test multi-env-template loading
2017-05-25 17:13:33 -07:00
Alex Dadgar
832cb449e7
changelog
2017-05-25 14:52:35 -07:00
Alex Dadgar
44db7509ad
Merge pull request #2675 from hashicorp/b-perms
...
Fix perms to just set exec bit
2017-05-25 14:45:08 -07:00
Alex Dadgar
f3218378cd
Fix perms to just set exec bit
2017-05-25 14:44:13 -07:00
Ian Eyberg
0d76cd24bb
dont throw away errors in log rotation
2017-05-25 11:49:33 -07:00
Michael Schurter
572ca97967
Fix formatting
2017-05-25 09:38:49 -07:00
Michael Schurter
8f2ea2f9e5
Comment and correct formatting
2017-05-25 09:30:58 -07:00
Michael Schurter
6571fa548d
Switch tests to mock_driver
2017-05-25 09:28:10 -07:00
Michael Schurter
43cc0a08a9
Minor wording updates
2017-05-24 13:55:21 -07:00
Michael Schurter
0288582e11
Fail fast on env template failures
2017-05-24 13:44:52 -07:00
Alex Dadgar
28b256f6d8
Update template.html.md
2017-05-24 09:54:22 -07:00
Michael Schurter
826aec455f
Document env templates
2017-05-23 17:25:21 -07:00
Michael Schurter
9c6695219b
Add env file test
2017-05-23 17:07:25 -07:00
Michael Schurter
d7eccc1288
Add env testing
2017-05-23 16:46:29 -07:00
Michael Schurter
118892453b
Shrink chroot to avoid timing test failure
2017-05-23 16:11:24 -07:00
Michael Schurter
72a24aecb0
Add env.Builder.UpdateTask for alloc updates
2017-05-23 16:00:57 -07:00
Michael Schurter
59b3ccaa8b
Fix test data
2017-05-23 13:53:34 -07:00
Michael Schurter
1295f88d03
Handle Driver.Prestart returning nil, nil
2017-05-23 13:53:34 -07:00
Michael Schurter
a96fb5dbb0
Move task env into execcontext
...
Also inject PATH into rkt commands since we're no longer appending host
env vars for it.
2017-05-23 13:53:34 -07:00
Michael Schurter
3743d34203
Fix env var interpolation and env tests
2017-05-23 13:53:34 -07:00
Michael Schurter
6db35013d2
Add PortMap to struct returned by Driver.Prestart
...
Moves env.Builder out of drivers entirely so one less thing to worry
about when implementing driver plugins.
2017-05-23 13:53:34 -07:00
Michael Schurter
37c1cbc9cf
Move env template handling into consul_template.go
2017-05-23 13:53:34 -07:00
Michael Schurter
96753dcbcb
Improve PortMap handling and simplify Builder creation
2017-05-23 13:53:34 -07:00
Michael Schurter
3b24980680
Move path building to task dir initialization
2017-05-23 13:53:34 -07:00
Michael Schurter
ace00980a1
Refactor TaskEnvironment into Builder and TaskEnv
2017-05-23 13:53:33 -07:00
Michael Schurter
7dac668adf
Functional consul template env file support
2017-05-23 13:45:14 -07:00
Michael Schurter
052cb28c30
Mention #2658 --security-opts
2017-05-22 09:25:44 -07:00
Alex Dadgar
9fc11b6888
Merge pull request #2663 from benmoss/master
...
Update cluster tutorial to generate random client UUIDs
2017-05-21 16:46:42 -07:00
Ben
90f66355ca
Update cluster tutorial to generate random client UUIDs
2017-05-21 19:44:43 -04:00
Alex Dadgar
98c6c39302
Merge pull request #2662 from benmoss/master
...
Make example clients generate random HostIDs
2017-05-21 16:27:00 -07:00
Ben
5081dd54cf
Make example clients generate random HostIDs
...
The tutorial has you make two clients on the same Vagrant box, so they
end up with the same secret ID.
Fixes #2661 .
2017-05-21 19:20:32 -04:00
Michael Schurter
f735ef712f
Merge pull request #2658 from Evertras/master
...
Add SecurityOpt as a config field in Docker driver
2017-05-19 17:17:08 -07:00
Brandon Fulljames
250c40714d
Add security_opt to docs, alphabetize section
2017-05-19 17:04:28 -07:00
Brandon Fulljames
dc95acdcc6
Fix for test
2017-05-19 16:59:07 -07:00
Brandon Fulljames
b0304477a2
Add SecurityOpt as a config field in Docker driver
2017-05-19 16:18:49 -07:00