diff --git a/docs/index.md b/docs/index.md index e73e2e3c..55cda702 100644 --- a/docs/index.md +++ b/docs/index.md @@ -72,7 +72,6 @@ Define the Juju controller credentials in the provider definition via environmen ```shell export CONTROLLER=$(juju whoami | yq .Controller) -export JUJU_AGENT_VERSION="$(juju show-controller | yq '.[$CONTROLLER]'.details.\"agent-version\"|tr -d '"')" export JUJU_CONTROLLER_ADDRESSES="$(juju show-controller | yq '.[$CONTROLLER]'.details.\"api-endpoints\" | tr -d "[]' "|tr -d '"'|tr -d '\n')" export JUJU_USERNAME="$(cat ~/.local/share/juju/accounts.yaml | yq .controllers.$CONTROLLER.user|tr -d '"')" export JUJU_PASSWORD="$(cat ~/.local/share/juju/accounts.yaml | yq .controllers.$CONTROLLER.password|tr -d '"')" diff --git a/docs/resources/access_secret.md b/docs/resources/access_secret.md new file mode 100644 index 00000000..8258da9d --- /dev/null +++ b/docs/resources/access_secret.md @@ -0,0 +1,22 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "juju_access_secret Resource - terraform-provider-juju" +subcategory: "" +description: |- + A resource that represents a Juju secret access. +--- + +# juju_access_secret (Resource) + +A resource that represents a Juju secret access. + + + + +## Schema + +### Required + +- `applications` (List of String) The list of applications to which the secret is granted or revoked. +- `model` (String) The model in which the secret belongs. +- `secret_id` (String) The ID of the secret. diff --git a/go.mod b/go.mod index e86fc8af..0773de22 100644 --- a/go.mod +++ b/go.mod @@ -22,7 +22,7 @@ require ( github.com/juju/cmd/v3 v3.0.14 github.com/juju/collections v1.0.4 github.com/juju/errors v1.0.0 - github.com/juju/names/v4 v4.0.0 + github.com/juju/names/v4 v4.0.0-20220207005702-9c6532a52823 github.com/juju/names/v5 v5.0.0 github.com/juju/retry v1.0.0 github.com/juju/utils/v3 v3.1.1 diff --git a/go.sum b/go.sum index 3a56337b..f57435b0 100644 --- a/go.sum +++ b/go.sum @@ -368,8 +368,8 @@ github.com/juju/mgo/v3 v3.0.4 h1:ek6YDy71tqikpoFSpvLkpCZ7zvYNYH+xSk/MebMkCEE= github.com/juju/mgo/v3 v3.0.4/go.mod h1:fAvhDCRbUlEbRIae6UQT8RvPUoLwKnJsBgO6OzHKNxw= github.com/juju/mutex/v2 v2.0.0 h1:rVmJdOaXGWF8rjcFHBNd4x57/1tks5CgXHx55O55SB0= github.com/juju/mutex/v2 v2.0.0/go.mod h1:jwCfBs/smYDaeZLqeaCi8CB8M+tOes4yf827HoOEoqk= -github.com/juju/names/v4 v4.0.0 h1:XeQZbwT70i98TynM+2RJr9At6EGb9X/P6l8qF56hPns= -github.com/juju/names/v4 v4.0.0/go.mod h1:xpkrQpHbz1DGY+0Geo32ZnyognGA/2vSB++rpu/Z+Lc= +github.com/juju/names/v4 v4.0.0-20220207005702-9c6532a52823 h1:Sv0+v4107/GHA0S25ay/rgGVmLyc+5Fjp0NnTksW/IQ= +github.com/juju/names/v4 v4.0.0-20220207005702-9c6532a52823/go.mod h1:xpkrQpHbz1DGY+0Geo32ZnyognGA/2vSB++rpu/Z+Lc= github.com/juju/names/v5 v5.0.0 h1:3IkRTUaniNXsgjy4lNqbJx7dVdsONlzuH6YMYT7uXss= github.com/juju/names/v5 v5.0.0/go.mod h1:PkvHbErUTniKvLu1ejJ5m/AbXOW55MFn1jsGVEbVXk8= github.com/juju/naturalsort v1.0.0 h1:kGmUUy3h8mJ5/SJYaqKOBR3f3owEd5R52Lh+Tjg/dNM= diff --git a/templates/index.md.tmpl b/templates/index.md.tmpl index 5cc53a22..035734a0 100644 --- a/templates/index.md.tmpl +++ b/templates/index.md.tmpl @@ -72,7 +72,6 @@ Define the Juju controller credentials in the provider definition via environmen ```shell export CONTROLLER=$(juju whoami | yq .Controller) -export JUJU_AGENT_VERSION="$(juju show-controller | yq '.[$CONTROLLER]'.details.\"agent-version\"|tr -d '"')" export JUJU_CONTROLLER_ADDRESSES="$(juju show-controller | yq '.[$CONTROLLER]'.details.\"api-endpoints\" | tr -d "[]' "|tr -d '"'|tr -d '\n')" export JUJU_USERNAME="$(cat ~/.local/share/juju/accounts.yaml | yq .controllers.$CONTROLLER.user|tr -d '"')" export JUJU_PASSWORD="$(cat ~/.local/share/juju/accounts.yaml | yq .controllers.$CONTROLLER.password|tr -d '"')"