From 7359d65af9fe1ad2b92f9caa8f63ade4ddf9e7a5 Mon Sep 17 00:00:00 2001 From: Terry Cain Date: Wed, 17 Mar 2021 15:34:24 +0000 Subject: [PATCH] Updated documentation --- README.md | 17 +++++++++++++++++ website/docs/r/data_bag.html.markdown | 8 ++++++++ website/docs/r/environment.html.markdown | 8 ++++++++ website/docs/r/node.html.markdown | 8 ++++++++ website/docs/r/role.html.markdown | 8 ++++++++ 5 files changed, 49 insertions(+) diff --git a/README.md b/README.md index 5b0807dc..1f004478 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,23 @@ Terraform Provider + +--- + +# Will update soon, this is purely a fork of the archived chef provider, so we have darwin_arm64 builds + +also added import functionality + +To replace old Hashicorp Chef provider with this one: +``` +tf state replace-provider terraform-providers/chef terrycain/chef +``` + + +--- + + + Requirements ------------ diff --git a/website/docs/r/data_bag.html.markdown b/website/docs/r/data_bag.html.markdown index 974eba7c..7743648b 100644 --- a/website/docs/r/data_bag.html.markdown +++ b/website/docs/r/data_bag.html.markdown @@ -36,3 +36,11 @@ The following arguments are supported: The following attributes are exported: * `api_uri` - The URI representing this data bag in the Chef server API. + +## Import + +Chef Data Bag's can be imported using the `name`, e.g. + +```shell +terraform import chef_data_bag.db_info db_info +``` diff --git a/website/docs/r/environment.html.markdown b/website/docs/r/environment.html.markdown index cc331ec0..7749eff5 100644 --- a/website/docs/r/environment.html.markdown +++ b/website/docs/r/environment.html.markdown @@ -49,3 +49,11 @@ The following arguments are supported: ## Attributes Reference This resource exports no further attributes. + +## Import + +Chef Environment's can be imported using the `name`, e.g. + +```shell +terraform import chef_environment.env1 prod +``` diff --git a/website/docs/r/node.html.markdown b/website/docs/r/node.html.markdown index 970f9438..4ae09b20 100644 --- a/website/docs/r/node.html.markdown +++ b/website/docs/r/node.html.markdown @@ -53,3 +53,11 @@ The following arguments are supported: ## Attributes Reference This resource exports no further attributes. + +## Import + +Chef Node's can be imported using the `name`, e.g. + +```shell +terraform import chef_node.db1 db1 +``` diff --git a/website/docs/r/role.html.markdown b/website/docs/r/role.html.markdown index 95ea3280..b85d697c 100644 --- a/website/docs/r/role.html.markdown +++ b/website/docs/r/role.html.markdown @@ -45,3 +45,11 @@ The following arguments are supported: ## Attributes Reference This resource exports no further attributes. + +## Import + +Chef Role's can be imported using the `name`, e.g. + +```shell +terraform import chef_role.db db +```