Commit 2cd1e44
fix: disable outputting config.toml by default (#768)
## Description
In #754 I unfortunately made a major oversight: the `local_file` doesn't
persist between machines (duh 🤦🏾 ). So for example in a CI/CD pipeline
the file is not present so it wants to render the whole file as new
every time. This defeats the main purpose that I had intended for this
feature... Also if the pipeline applies the plan, there will be a
perpetual diff, even if you save the file in repository.
I still think this is useful locally for debugging purposes, but
therefore I propose we disable this mechanism by default. In addition,
when these variables are enabled I changed the location to the Root
module for easier access if you want to debug the rendered files.
## Migrations required
YES/NO - Feature is quite new, if someone wants to use keep this as
introduced they now need to explicitly enable it.
## Verification
```hcl
output_runner_config_to_file = true
output_user_data_to_file = true
```
Results:

---------
Co-authored-by: kayma <[email protected]>
Co-authored-by: Matthias Kay <[email protected]>1 parent 51d63e6 commit 2cd1e44
4 files changed
+52
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
| 42 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
96 | 97 | | |
97 | | - | |
| 98 | + | |
98 | 99 | | |
99 | 100 | | |
100 | 101 | | |
101 | | - | |
102 | | - | |
103 | | - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
104 | 105 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
983 | 983 | | |
984 | 984 | | |
985 | 985 | | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
986 | 1011 | | |
0 commit comments