Extension that describes a terraformrc
file.
Type | Name and description |
---|---|
boolean |
disableCheckPoint Disable checkpoint. |
boolean |
disableCheckPointSignature Disable checkpoint signature. |
java.lang.Object |
pluginCacheDir |
boolean |
useGlobalConfig Select source of Terraform configuration. |
Constructor and description |
---|
TerraformRCExtension
(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. |
|
Provider<java.io.File> |
getPluginCacheDir() Location of Terraform plugin cache directory |
|
Provider<java.io.File> |
getTerraformRC() Location of the terraformrc file if it shoudl be written by the project. |
|
Provider<Task> |
getTerraformRCTask() Task that creates the .terraformrc file. |
|
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
.
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
. Task that creates the .terraformrc
file.
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