mirror of
https://github.com/ysoftdevs/terraform-provider-bitbucketserver.git
synced 2026-03-30 06:01:51 +02:00
Added resource.bitbucketserver_plugin
This commit is contained in:
112
README.md
112
README.md
@@ -76,8 +76,8 @@ $ terraform import bitbucketserver_project.test TEST
|
||||
|
||||
```hcl
|
||||
resource "bitbucketserver_project_permissions_group" "test" {
|
||||
project = "TEST"
|
||||
group = "stash-users"
|
||||
project = "TEST"
|
||||
group = "stash-users"
|
||||
permission = "PROJECT_WRITE"
|
||||
}
|
||||
```
|
||||
@@ -97,8 +97,8 @@ $ terraform import bitbucketserver_project_permissions_group.test TEST/stash-use
|
||||
|
||||
```hcl
|
||||
resource "bitbucketserver_project_permissions_user" "test" {
|
||||
project = "TEST"
|
||||
user = "admin"
|
||||
project = "TEST"
|
||||
user = "admin"
|
||||
permission = "PROJECT_WRITE"
|
||||
}
|
||||
```
|
||||
@@ -220,7 +220,7 @@ $ terraform import bitbucketserver_user.test mreynolds
|
||||
|
||||
```hcl
|
||||
resource "bitbucketserver_group" "browncoats" {
|
||||
name = "browncoats"
|
||||
name = "browncoats"
|
||||
}
|
||||
```
|
||||
|
||||
@@ -256,8 +256,8 @@ $ terraform import bitbucketserver_user_group.browncoat mreynolds/browncoats
|
||||
|
||||
```hcl
|
||||
resource "bitbucketserver_global_permissions_group" "test" {
|
||||
project = "TEST"
|
||||
group = "stash-users"
|
||||
project = "TEST"
|
||||
group = "stash-users"
|
||||
permission = "ADMIN"
|
||||
}
|
||||
```
|
||||
@@ -276,7 +276,7 @@ $ terraform import bitbucketserver_global_permissions_group.test my-group
|
||||
|
||||
```hcl
|
||||
resource "bitbucketserver_project_permissions_user" "test" {
|
||||
user = "admin"
|
||||
user = "admin"
|
||||
permission = "ADMIN"
|
||||
}
|
||||
```
|
||||
@@ -291,6 +291,63 @@ $ terraform import bitbucketserver_global_permissions_user.test my-user
|
||||
```
|
||||
|
||||
|
||||
### Install and License Plugins
|
||||
|
||||
Install plugins, manage enabled state and set license details.
|
||||
|
||||
```hcl
|
||||
resource "bitbucketserver_plugin" "myplugin" {
|
||||
key = "com.example-my-plugin"
|
||||
version = "1.2.3"
|
||||
license = "ABCDEF"
|
||||
}
|
||||
```
|
||||
|
||||
* `key` - Required. Unique key of the plugin.
|
||||
* `version` - Required. Version to install.
|
||||
* `license` - Optional. License to apply to the plugin.
|
||||
* `enabled` - Optional, default `true`. Flag to enable/disable the plugin.
|
||||
|
||||
#### Attributes
|
||||
|
||||
Additional to the above, the following attributes are emitted:
|
||||
|
||||
* `enabled_by_default` - Set to `true` if the plugin is enabled by default (for system plugins).
|
||||
* `version` - Installed version of the plugin.
|
||||
* `name` - Name of the plugin.
|
||||
* `description` - Plugin description.
|
||||
* `user_installed` - Set to `true` if this is a user installed plugin vs a system bundled plugin.
|
||||
* `optional` - Set to `true` if this is an optional plugin.
|
||||
* `vendor.name` - Name of the vendor.
|
||||
* `vendor.link` - Vendor homepage.
|
||||
* `vendor.marketplace_link` - Plugin marketplace link.
|
||||
* `applied_license.0.valid` - Is the license valid. true/false.
|
||||
* `applied_license.0.evaluation` - Is the license an evaluation. true/false.
|
||||
* `applied_license.0.nearly_expired` - Is the license nearly expired. true/false.
|
||||
* `applied_license.0.maintenance_expiry_date` - Date of maintenance expiry.
|
||||
* `applied_license.0.maintenance_expired` - Is the maintenance expired. true/false.
|
||||
* `applied_license.0.license_type` - Type of license.
|
||||
* `applied_license.0.expiry_date` - Expiry date of the license.
|
||||
* `applied_license.0.raw_license` - The raw license information.
|
||||
* `applied_license.0.renewable` - Is the license renewabl. true/false.
|
||||
* `applied_license.0.organization_name` - Name of the organization the license is for.
|
||||
* `applied_license.0.enterprise` - Is the license for enterprise. true/false.
|
||||
* `applied_license.0.data_center` - Is the license for data center. true/false.
|
||||
* `applied_license.0.subscription` - Is the license a subscription. true/false.
|
||||
* `applied_license.0.active` - Is the license active. true/false.
|
||||
* `applied_license.0.auto_renewal` - Is the license renewed automatically. true/false.
|
||||
* `applied_license.0.upgradable` - Is the license able to be upgraded. true/false.
|
||||
* `applied_license.0.crossgradeable` - Can the license be crossgraded. true/false.
|
||||
* `applied_license.0.purchase_past_server_cutoff_date` - The purchase date past the server cutoff date. true/false.
|
||||
|
||||
#### Import Plugin
|
||||
|
||||
```bash
|
||||
$ terraform import bitbucketserver_plugin.test com.example-my-plugin
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Set Server License
|
||||
|
||||
```hcl
|
||||
@@ -520,9 +577,10 @@ data "bitbucketserver_plugin" "myplugin" {
|
||||
}
|
||||
```
|
||||
|
||||
* `key` - Unique key of the plugin.
|
||||
|
||||
#### Attributes
|
||||
|
||||
* `key` - Unique key of the plugin.
|
||||
* `enabled` - Set to `true` if the plugin is enabled.
|
||||
* `enabled_by_default` - Set to `true` if the plugin is enabled by default (for system plugins).
|
||||
* `version` - Installed version of the plugin.
|
||||
@@ -533,24 +591,24 @@ data "bitbucketserver_plugin" "myplugin" {
|
||||
* `vendor.name` - Name of the vendor.
|
||||
* `vendor.link` - Vendor homepage.
|
||||
* `vendor.marketplace_link` - Plugin marketplace link.
|
||||
* `license.0.valid` - Is the license valid. true/false.
|
||||
* `license.0.evaluation` - Is the license an evaluation. true/false.
|
||||
* `license.0.nearly_expired` - Is the license nearly expired. true/false.
|
||||
* `license.0.maintenance_expiry_date` - Date of maintenance expiry.
|
||||
* `license.0.maintenance_expired` - Is the maintenance expired. true/false.
|
||||
* `license.0.license_type` - Type of license.
|
||||
* `license.0.expiry_date` - Expiry date of the license.
|
||||
* `license.0.raw_license` - The raw license information.
|
||||
* `license.0.renewable` - Is the license renewabl. true/false.
|
||||
* `license.0.organization_name` - Name of the organization the license is for.
|
||||
* `license.0.enterprise` - Is the license for enterprise. true/false.
|
||||
* `license.0.data_center` - Is the license for data center. true/false.
|
||||
* `license.0.subscription` - Is the license a subscription. true/false.
|
||||
* `license.0.active` - Is the license active. true/false.
|
||||
* `license.0.auto_renewal` - Is the license renewed automatically. true/false.
|
||||
* `license.0.upgradable` - Is the license able to be upgraded. true/false.
|
||||
* `license.0.crossgradeable` - Can the license be crossgraded. true/false.
|
||||
* `license.0.purchase_past_server_cutoff_date` - The purchase date past the server cutoff date. true/false.
|
||||
* `applied_license.0.valid` - Is the license valid. true/false.
|
||||
* `applied_license.0.evaluation` - Is the license an evaluation. true/false.
|
||||
* `applied_license.0.nearly_expired` - Is the license nearly expired. true/false.
|
||||
* `applied_license.0.maintenance_expiry_date` - Date of maintenance expiry.
|
||||
* `applied_license.0.maintenance_expired` - Is the maintenance expired. true/false.
|
||||
* `applied_license.0.license_type` - Type of license.
|
||||
* `applied_license.0.expiry_date` - Expiry date of the license.
|
||||
* `applied_license.0.raw_license` - The raw license information.
|
||||
* `applied_license.0.renewable` - Is the license renewabl. true/false.
|
||||
* `applied_license.0.organization_name` - Name of the organization the license is for.
|
||||
* `applied_license.0.enterprise` - Is the license for enterprise. true/false.
|
||||
* `applied_license.0.data_center` - Is the license for data center. true/false.
|
||||
* `applied_license.0.subscription` - Is the license a subscription. true/false.
|
||||
* `applied_license.0.active` - Is the license active. true/false.
|
||||
* `applied_license.0.auto_renewal` - Is the license renewed automatically. true/false.
|
||||
* `applied_license.0.upgradable` - Is the license able to be upgraded. true/false.
|
||||
* `applied_license.0.crossgradeable` - Can the license be crossgraded. true/false.
|
||||
* `applied_license.0.purchase_past_server_cutoff_date` - The purchase date past the server cutoff date. true/false.
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user