Extension that describes a terraformrc
file.
Type | Name and description |
---|---|
boolean |
disableCheckPoint Disable checkpoint. |
boolean |
disableCheckPointSignature Disable checkpoint signature. |
java.lang.Object |
pluginCacheDir |
org.gradle.api.Project |
project Project this extension is attached to. |
boolean |
useGlobalConfig Select source of Terraform configuration. |
Constructor and description |
---|
TerraformRCExtension
(org.gradle.api.Project project) |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
credentials(java.lang.String key, java.lang.String token) Adds a credential set to the configuration file. |
|
org.gradle.api.provider.Provider<java.io.File> |
getPluginCacheDir() Location of Terraform plugin cache directory |
|
org.gradle.api.provider.Provider<java.io.File> |
getTerraformRC() Location of the terraformrc file if it shoudl be written by the project. |
|
void |
setPluginCacheDir(java.lang.Object dir) Sets the location of the Terraform plugin cache directory |
|
java.io.Writer |
toHCL(java.io.Writer writer) Writes to the content of the Terraform configuration to an HCL writer. |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Disable checkpoint.
When set to true, disables upgrade and security bulletin checks that require reaching out to
HashiCorp-provided network services.
Default is true
.
Disable checkpoint signature.
When set to true, allows the upgrade and security bulletin checks described above but disables the use of an
anonymous id used to de-duplicate warning messages.
Default is false
.
Project this extension is attached to.
Select source of Terraform configuration.
When set to true
use global Terraform configuration rather than a project configuration.
Default is false
.
Adds a credential set to the configuration file.
key
- Remote Terraform system nametoken
- Token for remote Terraform system.Location of Terraform plugin cache directory
Location of the terraformrc
file if it shoudl be written by the project.
terraformrc
file. Never null
.Sets the location of the Terraform plugin cache directory
dir
- Anything that is convertible using project.file
.Writes to the content of the Terraform configuration to an HCL writer.
writer
- Writer instance to send output to.Groovy Documentation