Skip to content

Commit

Permalink
Add instance timeouts and additional resources (#6)
Browse files Browse the repository at this point in the history
* Migrate code to SDK v2

* Update resource documentation

* Update testing and documentation

* Update contribution documentation

* Update core Morpheus resources

* Update overall provider documentation and code structure

* Update data source documentation

* Docs update

* Update documentation

* Additional documentation updates
  • Loading branch information
martezr authored May 20, 2021
1 parent 4b35cb2 commit 1fae058
Show file tree
Hide file tree
Showing 141 changed files with 7,060 additions and 1,218 deletions.
29 changes: 29 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
## 1.0 (Unreleased)

## 0.2 (May 17, 2021)

FEATURES:

* **New Data Source:** `morpheus_cloud`
* **New Data Source:** `morpheus_environment`
* **New Data Source:** `morpheus_group`
* **New Data Source:** `morpheus_instance_layout`
* **New Data Source:** `morpheus_instance_type`
* **New Data Source:** `morpheus_network`
* **New Data Source:** `morpheus_option_type`
* **New Data Source:** `morpheus_plan`
* **New Data Source:** `morpheus_resource_pool`
* **New Data Source:** `morpheus_task`
* **New Resource:** `morpheus_checkbox_option_type`
* **New Resource:** `morpheus_hidden_option_type`
* **New Resource:** `morpheus_manual_option_list`
* **New Resource:** `morpheus_number_option_type`
* **New Resource:** `morpheus_operational_workflow`
* **New Resource:** `morpheus_password_option_type`
* **New Resource:** `morpheus_provisioning_workflow`
* **New Resource:** `morpheus_rest_option_list`
* **New Resource:** `morpheus_select_list_option_type`
* **New Resource:** `morpheus_tenant`
* **New Resource:** `morpheus_text_option_type`
* **New Resource:** `morpheus_typeahead_option_type`
* **New Resource:** `morpheus_vsphere_cloud`
* **New Resource:** `morpheus_vsphere_instance`

## 0.1 (November 27, 2019)

NOTES:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ gencheck:
@git diff --compact-summary --exit-code || \
(echo; echo "Unexpected difference in directories after code generation. Run 'go generate' command and commit."; exit 1)

.PHONY: dev all fmt fmtcheck test testacc depscheck gencheck tools gendocs
.PHONY: dev all fmt fmtcheck test testacc depscheck gencheck tools gendocs
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@ When the provider is out of beta the documentation will be available alongside t
## Developing the provider
-------------------------

See the [`contributing`](contributing/) directory for more developer documentation.
See the [`contributing`](contributing/) directory for more developer documentation.
2 changes: 1 addition & 1 deletion contributing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ $ go generate

The following checklists are meant to be used for PRs to give developers and reviewers confidence that the proper changes have been made:

* [New resource](checklist-resource.md)
* [New resource](checklist-resource.md)
31 changes: 31 additions & 0 deletions docs/data-sources/cloud.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
page_title: "morpheus_cloud Data Source - terraform-provider-morpheus"
subcategory: ""
description: |-
Provides a Morpheus cloud data source.
---

# morpheus_cloud (Data Source)

Provides a Morpheus cloud data source.

## Example Usage

```terraform
data "morpheus_cloud" "vspherecloud" {
name = "morpheus_vsphere"
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Optional

- **id** (String) The ID of this resource.
- **name** (String) The name of the Morpheus cloud

### Read-Only

- **code** (String) Optional code for use with policies
- **location** (String) Optional location for your cloud
33 changes: 33 additions & 0 deletions docs/data-sources/environment.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
page_title: "morpheus_environment Data Source - terraform-provider-morpheus"
subcategory: ""
description: |-
Provides a Morpheus environment data source.
---

# morpheus_environment (Data Source)

Provides a Morpheus environment data source.

## Example Usage

```terraform
data "morpheus_environment" "production" {
name = "production"
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Optional

- **id** (String) The ID of this resource.
- **name** (String) The name of the Morpheus environment

### Read-Only

- **active** (Boolean) Whether the environment is active
- **code** (String) Optional code for use with policies
- **description** (String) The description of the Morpheus environment
- **visibility** (String) Whether the environment is visible in sub-tenants or not
31 changes: 31 additions & 0 deletions docs/data-sources/group.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
page_title: "morpheus_group Data Source - terraform-provider-morpheus"
subcategory: ""
description: |-
Provides a Morpheus group data source.
---

# morpheus_group (Data Source)

Provides a Morpheus group data source.

## Example Usage

```terraform
data "morpheus_group" "morpheusgroup" {
name = "Morpheus"
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Optional

- **id** (String) The ID of this resource.
- **name** (String) The name of the Morpheus group.

### Read-Only

- **code** (String) Optional code for use with policies
- **location** (String) Optional location argument for your group
31 changes: 31 additions & 0 deletions docs/data-sources/instance_layout.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
page_title: "morpheus_instance_layout Data Source - terraform-provider-morpheus"
subcategory: ""
description: |-
Provides a Morpheus instance layout data source.
---

# morpheus_instance_layout (Data Source)

Provides a Morpheus instance layout data source.

## Example Usage

```terraform
data "morpheus_instance_layout" "apache" {
name = "Apache"
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Optional

- **id** (String) The ID of this resource.
- **name** (String) The name of the Morpheus instance layout

### Read-Only

- **code** (String) Optional code for use with policies
- **description** (String) The description of the instance layout
33 changes: 33 additions & 0 deletions docs/data-sources/instance_type.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
page_title: "morpheus_instance_type Data Source - terraform-provider-morpheus"
subcategory: ""
description: |-
Provides a Morpheus instance type data source.
---

# morpheus_instance_type (Data Source)

Provides a Morpheus instance type data source.

## Example Usage

```terraform
data "morpheus_instance_type" "apache" {
name = "apache"
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Optional

- **id** (String) The ID of this resource.
- **name** (String) The name of the Morpheus cloud.

### Read-Only

- **active** (Boolean) Whether the instance type is enabled or not
- **code** (String) Optional code for use with policies
- **description** (String) The description of the instance type
- **visibility** (String) Whether the instance type is visible in sub-tenants or not
32 changes: 32 additions & 0 deletions docs/data-sources/network.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
page_title: "morpheus_network Data Source - terraform-provider-morpheus"
subcategory: ""
description: |-
Provides a Morpheus network data source.
---

# morpheus_network (Data Source)

Provides a Morpheus network data source.

## Example Usage

```terraform
data "morpheus_network" "vmnetwork" {
name = "VM Network"
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Optional

- **id** (String) The ID of this resource.
- **name** (String) The name of the Morpheus network.

### Read-Only

- **active** (Boolean) Optional code for use with policies
- **description** (String) The description of the network
- **visibility** (String) Whether the network is visible in sub-tenants or not
26 changes: 26 additions & 0 deletions docs/data-sources/option_type.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
page_title: "morpheus_option_type Data Source - terraform-provider-morpheus"
subcategory: ""
description: |-
Provides a Morpheus option type data source.
---

# morpheus_option_type (Data Source)

Provides a Morpheus option type data source.

## Example Usage

```terraform
data "morpheus_option_type" "versions" {
name = "App Versions"
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Optional

- **id** (String) The ID of this resource.
- **name** (String) The name of the option type
31 changes: 31 additions & 0 deletions docs/data-sources/plan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
page_title: "morpheus_plan Data Source - terraform-provider-morpheus"
subcategory: ""
description: |-
Provides a Morpheus plan data source.
---

# morpheus_plan (Data Source)

Provides a Morpheus plan data source.

## Example Usage

```terraform
data "morpheus_plan" "vmware" {
name = "1 CPU, 4GB Memory"
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Optional

- **id** (String) The ID of this resource.
- **name** (String) The name of the Morpheus plan.

### Read-Only

- **code** (String) Optional code for use with policies
- **description** (String) The description of the plan
37 changes: 37 additions & 0 deletions docs/data-sources/resource_pool.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
page_title: "morpheus_resource_pool Data Source - terraform-provider-morpheus"
subcategory: ""
description: |-
Provides a Morpheus resource pool data source.
---

# morpheus_resource_pool (Data Source)

Provides a Morpheus resource pool data source.

## Example Usage

```terraform
data "morpheus_resource_pool" "morpheus_pool" {
name = "morpheuspool"
cloud_id = data.morpheus_cloud.vspherecloud.id
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- **cloud_id** (Number) The id of the Morpheus cloud to search for the resource pool.

### Optional

- **id** (String) The ID of this resource.
- **name** (String) The name of the Morpheus resource pool.

### Read-Only

- **active** (Boolean) Whether the resource pool is enabled or not
- **description** (String) The description of the resource pool
- **type** (String) Optional code for use with policies
26 changes: 26 additions & 0 deletions docs/data-sources/task.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
page_title: "morpheus_task Data Source - terraform-provider-morpheus"
subcategory: ""
description: |-
Provides a Morpheus task data source.
---

# morpheus_task (Data Source)

Provides a Morpheus task data source.

## Example Usage

```terraform
data "morpheus_task" "deploy_app" {
name = "Deploy app"
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Optional

- **id** (String) The ID of this resource.
- **name** (String) The name of the task
Loading

0 comments on commit 1fae058

Please sign in to comment.