James Bardin
0c714592f0
Fix variable handling on subsequent pushes
...
The handling of remote variables was completely disabled for push.
We still need to fetch variables from atlas for push, because if the
variable is only set remotely the Input walk will still prompt the user
for a value. We add the missing remote variables to the context
to disable input.
We now only handle remote variables as atlas.TFVar and explicitly pass
around that type rather than an `interface{}`.
Shorten the text fixture slightly to make the output a little more
readable on failures.
2016-07-28 15:06:53 -04:00
James Bardin
de87267697
Add tf_vars to the variables sent in push
...
Add tf_vars to the data structures sent in terraform push.
This takes any value of type []interface{} or map[string]interface{} and
marshals it as a string representation of the equivalent HCL. This
prevents ambiguity in atlas between a string that looks like a json
structure, and an actual json structure.
For the time being we will need a way to serialize data as HCL, so the
command package has an internal encodeHCL function to do so. We can
remove this if we get complete package for marshaling HCL.
2016-07-26 20:38:50 -04:00
James Bardin
885935962c
Add a terraform version header to all atlas calls
...
Using the DefaultHeader added to the atlas.Client
2016-07-21 11:04:27 -04:00
James Nugent
3735140286
core: Don't set variables for Atlas until lib is updated
2016-07-18 13:10:33 -05:00
James Nugent
5d18f41f04
core: Convert context vars to map[string]interface{}
...
This is the first step in allowing overrides of map and list variables.
We convert Context.variables to map[string]interface{} from
map[string]string and fix up all the call sites.
2016-07-18 13:02:54 -05:00
Anthony Scalisi
198e1a5186
remove various typos
2015-09-11 11:56:20 -07:00
Mitchell Hashimoto
1f92dd5b40
command/push: update output
2015-06-29 13:58:54 -07:00
Mitchell Hashimoto
c5d3c585c6
command/push: update var name
2015-06-29 13:57:58 -07:00
Mitchell Hashimoto
9d9bcc2f6e
command/push: update flag to -overwrite, update docs
2015-06-29 13:53:05 -07:00
Mitchell Hashimoto
8ee3281858
command/push: UX
2015-06-29 13:41:07 -07:00
Mitchell Hashimoto
dc40f044f0
command/push: prefer Atlas over local, add -set flag
2015-06-29 12:24:13 -07:00
Radek Simko
b7d41d2eed
Add -no-color to help text
2015-06-22 13:14:01 +01:00
Mitchell Hashimoto
77a61157fb
command/push: var/var-file supported, note in help [GH-1950]
2015-05-13 20:18:40 -07:00
Paul Hinze
8ce3e1d5b4
command/push: local vars override remote ones
...
Otherwise once you push a variable it becomes very difficult to change.
2015-05-08 18:54:38 -05:00
Mitchell Hashimoto
000d28c489
command/push: read terraform.tfvars
2015-04-07 15:34:06 -07:00
Mitchell Hashimoto
280635d2b0
command/push: add -atlas-address
2015-03-24 17:45:19 -07:00
Mitchell Hashimoto
51614b6365
command/push: upload-modules
2015-03-24 17:42:40 -07:00
Mitchell Hashimoto
8d47f26bb7
command/push: address PR comments
2015-03-24 17:41:26 -07:00
Mitchell Hashimoto
0229852e48
command/push: change wording on error message
2015-03-24 17:39:37 -07:00
Mitchell Hashimoto
395dd04861
command/push: accept -vcs
2015-03-24 17:03:59 -07:00
Mitchell Hashimoto
86f92119e2
command/push: no version on GET should be okay
2015-03-24 13:59:13 -07:00
Mitchell Hashimoto
19c1771438
command/push: integrate atlas push client
2015-03-24 13:42:48 -07:00
Mitchell Hashimoto
1c0ffbd7bf
command/push: output the name/version of the pushed configuration
2015-03-24 13:30:23 -07:00
Mitchell Hashimoto
ee1ad49829
command/push: rename -module-lock to -module-upload
2015-03-24 13:30:23 -07:00
Mitchell Hashimoto
da46e16f4f
command/push: can set the name on the CLI
2015-03-24 13:30:23 -07:00
Mitchell Hashimoto
5e27bfc040
command/push: read name from the config
2015-03-24 13:30:23 -07:00
Mitchell Hashimoto
eebd7b8aa3
command/push: ask for only variables that are unset
2015-03-24 13:30:23 -07:00
Mitchell Hashimoto
bf14143369
command/push: test that input is asked
2015-03-24 13:30:22 -07:00
Mitchell Hashimoto
d37d9ea6ef
command/push: send the context variables up
2015-03-24 13:30:22 -07:00
Mitchell Hashimoto
a1b424d53f
command/push: properly copy the data directory no matter what
2015-03-24 13:30:22 -07:00
Mitchell Hashimoto
22087181af
command/push: archive, upload
2015-03-24 13:30:22 -07:00
Mitchell Hashimoto
ca8e2085f3
command/push: archiving
2015-03-24 13:30:22 -07:00
Mitchell Hashimoto
cdde9149ff
command/push: start it
2015-03-24 13:30:21 -07:00
Mitchell Hashimoto
01cd761023
command: move remote configuration stuff
2015-03-04 16:17:30 -08:00
Mitchell Hashimoto
0d39a5d9a7
command/push: no more remote package
2015-02-23 15:13:55 -08:00
Armon Dadgar
9168a0f1ce
command: Simplify push/pull, depend on remote command for setup
2014-12-10 13:27:08 -08:00
Armon Dadgar
7ba0c003f2
command/push: Allow existing state file to enable remote
2014-12-10 13:27:08 -08:00
Armon Dadgar
38002904f4
command/push: Adding the push command
2014-12-10 13:27:08 -08:00