-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added "Documentation" feature #25
Conversation
@@ -0,0 +1,24 @@ | |||
terraform { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why hw_documentation
? It's not specific to Hardware
Existing convention would make it examples/resources/documentation_resource/resource.tf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is addressed in the latest commit. Thanks
|
||
resource "dcloud_topology" "test_topology" { | ||
name = "My Terraformed Topology" | ||
description = "A topology created from terraform" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Convention on the other resource .tf files is to use these sort of values for the test topology...
resource "dcloud_topology" "test_topology" {
name = "Documentation Resource Test"
description = "Testing Topology Documentation Resource Management"
notes = "Created via Terraform Test"
datacenter = "LON"
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Hugh,
Done.
Provided the changes in the commit.
Thanks.
…anged topology values in resource.tf, changed resoruce name from documentation to test_documentation
Description
The documentation feature helps us provide a URL for documentation of the specific topology deployed on TB.
This PR implements that feature. The following modifications have been made:
Modified "provider.go": Added a mapping to "resource_documentation.go"
Created "resource.documentation.go": Supports CRUD operations of the documentation resource.
Modified /examples/provider/provider.tf: Added a documentation resource that assigns the provided URL to the topology.
Created /examples/hw_documentation/resource.tf: resource.tf script that creates a topology and assigns the documentation URL.
Added docs/resources/documentation.md: Specifying the schema of the documentation resource.
Type of Change
Checklist