Add bitbucketserver_plugin_config resource to allow managing plugins configuration.

Plugin configuration documentation.
This commit is contained in:
Henrique Gontijo
2019-11-18 09:38:32 -08:00
parent 70bba6e511
commit 8c79150355
8 changed files with 276 additions and 1 deletions

View File

@@ -0,0 +1,34 @@
---
id: bitbucketserver_plugin_config
title: bitbucketserver_plugin_config
---
Configure plugins.
## Example Usage
```hcl
resource "bitbucketserver_plugin_config" "mypluginconfig" {
key = "my-plugin-key"
values = "{"\key\": \"value\"}"
}
```
## Argument Reference
* `key` - Required. Unique key of the plugin. This is not the same used by plugin install.
* `values` - Required. Plugin configuration in JSON format.
## Attribute Reference
* `key` - Unique key of the plugin. This is not the same used by plugin install.
* `validlicense` - Indicates if the plugins has a valid license.
* `values` - Plugin configuration in JSON format.
## Import
Import a plugin config reference via the key:
```
terraform import bitbucketserver_plugin_config.mypluginkey my-plugin-key
```

View File

@@ -64,6 +64,9 @@
"bitbucketserver_mail_server": {
"title": "bitbucketserver_mail_server"
},
"bitbucketserver_plugin_config": {
"title": "bitbucketserver_plugin_config"
},
"bitbucketserver_plugin": {
"title": "bitbucketserver_plugin"
},

View File

@@ -26,6 +26,7 @@
"bitbucketserver_license",
"bitbucketserver_mail_server",
"bitbucketserver_plugin",
"bitbucketserver_plugin_config",
"bitbucketserver_project",
"bitbucketserver_project_hook",
"bitbucketserver_project_permissions_group",