Skip to content

Commit

Permalink
terraform: Update for 0.14 juju-provider (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
misohu authored Sep 19, 2024
1 parent c17ad8d commit 7e73a9c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
7 changes: 5 additions & 2 deletions terraform/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Terraform module for pvcviewer-operator

This is a Terraform module facilitating the deployment of pvcviewer-operator charm, using the [Terraform juju provider](https://github.com/juju/terraform-provider-juju/). For more information, refer to the provider [documentation](https://registry.terraform.io/providers/juju/juju/latest/docs).
This is a Terraform module facilitating the deployment of pvcviewer-operator charm, using the [Terraform juju provider](https://github.com/juju/terraform-provider-juju/). For more information, refer to the provider [documentation](https://registry.terraform.io/providers/juju/juju/latest/docs).

## Compatibility
This terraform module is compatible with charms of version >= 1.9 due to changes in the charm's relations.

## Requirements
This module requires a `juju` model to be available. Refer to the [usage section](#usage) below for more details.
Expand All @@ -16,7 +19,7 @@ The module offers the following configurable inputs:
| `channel`| string | Channel that the charm is deployed from | False |
| `config`| map(string) | Map of the charm configuration options | False |
| `model_name`| string | Name of the model that the charm is deployed on | True |
| `resources`| map(number) | Map of charm resources revisions | False |
| `resources`| map(string) | Map of the charm resources | False |
| `revision`| number | Revision number of the charm name | False |

### Outputs
Expand Down
4 changes: 2 additions & 2 deletions terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ variable "model_name" {

# TODO: Update to a map of strings, once juju provider 0.14 is released
variable "resources" {
description = "Map of resources revisions"
type = map(number)
description = "Map of resources"
type = map(string)
default = null
}

Expand Down
2 changes: 1 addition & 1 deletion terraform/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {
required_providers {
juju = {
source = "juju/juju"
version = "~> 0.13.0"
version = "~> 0.14.0"
}
}
}

0 comments on commit 7e73a9c

Please sign in to comment.