-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into private/feis/CP-49367
- Loading branch information
Showing
15 changed files
with
1,231 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "xenserver_sr Resource - xenserver" | ||
subcategory: "" | ||
description: |- | ||
SR resource | ||
--- | ||
|
||
# xenserver_sr (Resource) | ||
|
||
SR resource | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
// A simple example of creating a local storage on XenServer | ||
resource "xenserver_sr" "local" { | ||
name_label = "Test Local SR" | ||
name_description = "A test local storage repository" | ||
type = "dummy" | ||
shared = false | ||
host = "cbdad2c6-b181-4047-ba2a-b4914bdecdbd" | ||
} | ||
output "local_out" { | ||
value = xenserver_sr.local | ||
} | ||
// A simple example of creating a NFS SR on XenServer | ||
resource "xenserver_sr" "nfs" { | ||
name_label = "Test NFS SR" | ||
type = "nfs" | ||
content_type = "" | ||
device_config = { | ||
server = "10.70.58.9" | ||
serverpath = "/xenrtnfs" | ||
nfsversion = "3" | ||
} | ||
sm_config = { | ||
shared = "true" | ||
} | ||
} | ||
output "nfs_out" { | ||
value = xenserver_sr.nfs | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `name_label` (String) The name of the storage repository | ||
|
||
### Optional | ||
|
||
- `content_type` (String) The type of the SR's content, if required (e.g. ISOs), default to be "" | ||
- `device_config` (Map of String) The device config that will be passed to backend SR driver, default to be {} | ||
- `host` (String) The UUID of the host to create/make the SR on | ||
- `name_description` (String) The human-readable description of the storage repository, default to be "" | ||
- `shared` (Boolean) True if this SR is (capable of being) shared between multiple hosts, default to be true | ||
- `sm_config` (Map of String) The SM dependent data, default to be {} | ||
- `type` (String) The type of the storage repository, default to be "" | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The UUID of the storage repository | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
terraform import xenserver_sr.local <xenserver_sr.local.id> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "xenserver_sr_nfs Resource - xenserver" | ||
subcategory: "" | ||
description: |- | ||
NFS SR resource | ||
--- | ||
|
||
# xenserver_sr_nfs (Resource) | ||
|
||
NFS SR resource | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "xenserver_sr_nfs" "nfs_test" { | ||
name_label = "NFS virtual disk storage" | ||
name_description = "A test NFS storage repository" | ||
version = "3" | ||
storage_location = "10.70.58.9:/xenrtnfs" | ||
} | ||
output "nfs_test_out" { | ||
value = xenserver_sr_nfs.nfs_test | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `name_label` (String) The name of the NFS storage repository | ||
- `storage_location` (String) The server and server patch of the NFS storage repository, for example: "10.70.58.9:/xenrtnfs" | ||
- `version` (String) The version of NFS storage repository, for example: "3" | ||
|
||
### Optional | ||
|
||
- `advanced_options` (String) The advanced options of the NFS storage repository, default to be "" | ||
- `name_description` (String) The human-readable description of the NFS storage repository, default to be "" | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The UUID of the NFS storage repository | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
terraform import xenserver_sr_nfs.nfs_test <xenserver_sr_nfs.nfs_test.id> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
terraform import xenserver_sr.local <xenserver_sr.local.id> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// A simple example of creating a local storage on XenServer | ||
resource "xenserver_sr" "local" { | ||
name_label = "Test Local SR" | ||
name_description = "A test local storage repository" | ||
type = "dummy" | ||
shared = false | ||
host = "cbdad2c6-b181-4047-ba2a-b4914bdecdbd" | ||
} | ||
|
||
output "local_out" { | ||
value = xenserver_sr.local | ||
} | ||
|
||
// A simple example of creating a NFS SR on XenServer | ||
resource "xenserver_sr" "nfs" { | ||
name_label = "Test NFS SR" | ||
type = "nfs" | ||
content_type = "" | ||
device_config = { | ||
server = "10.70.58.9" | ||
serverpath = "/xenrtnfs" | ||
nfsversion = "3" | ||
} | ||
sm_config = { | ||
shared = "true" | ||
} | ||
} | ||
|
||
output "nfs_out" { | ||
value = xenserver_sr.nfs | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
terraform import xenserver_sr_nfs.nfs_test <xenserver_sr_nfs.nfs_test.id> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
resource "xenserver_sr_nfs" "nfs_test" { | ||
name_label = "NFS virtual disk storage" | ||
name_description = "A test NFS storage repository" | ||
version = "3" | ||
storage_location = "10.70.58.9:/xenrtnfs" | ||
} | ||
|
||
output "nfs_test_out" { | ||
value = xenserver_sr_nfs.nfs_test | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.