Skip to content
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

Update dedicated server (and (me_)_installation_template ) #639

Merged
merged 11 commits into from
May 3, 2024
Prev Previous commit
Next Next commit
update description attributes on *_installation_template
  • Loading branch information
bigbigbang committed May 2, 2024
commit e7ae6192989a0e5a6437536037bbec4034a214eb
22 changes: 11 additions & 11 deletions ovh/data_dedicated_installation_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ func dataSourceDedicatedInstallationTemplate() *schema.Resource {
"template_name": {
Type: schema.TypeString,
Required: true,
Description: "This template name",
Description: "Template name",
},

// Computed properties
"bit_format": {
Type: schema.TypeInt,
Computed: true,
Description: "This template bit format (32 or 64)",
Description: "Template bit format (32 or 64)",
},
"category": {
Type: schema.TypeString,
Expand All @@ -33,22 +33,22 @@ func dataSourceDedicatedInstallationTemplate() *schema.Resource {
"description": {
Type: schema.TypeString,
Computed: true,
Description: "information about this template",
Description: "Description of the template",
},
"distribution": {
Type: schema.TypeString,
Computed: true,
Description: "the distribution this template is based on",
Description: "Distribution this template is based on",
},
"end_of_install": {
Type: schema.TypeString,
Computed: true,
Description: "after this date, install of this template will not be possible at OVH",
Description: "After this date, install of this template will not be possible at OVH",
},
"family": {
Type: schema.TypeString,
Computed: true,
Description: "this template family type (bsd,linux,solaris,windows)",
Description: "Template family type (bsd,linux,solaris,windows)",
},
"filesystems": {
Type: schema.TypeList,
Expand All @@ -59,7 +59,7 @@ func dataSourceDedicatedInstallationTemplate() *schema.Resource {
"hard_raid_configuration": {
Type: schema.TypeBool,
Computed: true,
Description: "This distribution supports hardware raid configuration through the OVH API",
Description: "Distribution supports hardware raid configuration through the OVH API",
},
"inputs": {
Type: schema.TypeList,
Expand Down Expand Up @@ -139,17 +139,17 @@ func dataSourceDedicatedInstallationTemplate() *schema.Resource {
"lvm_ready": {
Type: schema.TypeBool,
Computed: true,
Description: "This distribution supports Logical Volumes (Linux LVM)",
Description: "Whether this distribution supports Logical Volumes (Linux LVM)",
},
"no_partitioning": {
Type: schema.TypeBool,
Computed: true,
Description: "The template supports RAID0 and RAID1 on 2 disks.",
Description: "Template supports RAID0 and RAID1 on 2 disks",
},
"project": {
Type: schema.TypeList,
Computed: true,
Description: "This distribution project details",
Description: "Distribution project details",
Elem: &schema.Resource{
Description: "A structure describing some interesting facts about an OS template project",
Schema: map[string]*schema.Schema{
Expand Down Expand Up @@ -233,7 +233,7 @@ func dataSourceDedicatedInstallationTemplate() *schema.Resource {
"subfamily": {
Type: schema.TypeString,
Computed: true,
Description: "this template subfamily type",
Description: "Template subfamily type",
},
},
}
Expand Down
38 changes: 19 additions & 19 deletions ovh/data_me_installation_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ func dataSourceMeInstallationTemplate() *schema.Resource {
"template_name": {
Type: schema.TypeString,
Required: true,
Description: "This template name",
Description: "Template name",
},

// computed
"bit_format": {
Type: schema.TypeInt,
Computed: true,
Description: "This template bit format (32 or 64)",
Description: "Template bit format (32 or 64)",
},
"category": {
Type: schema.TypeString,
Expand All @@ -47,30 +47,30 @@ func dataSourceMeInstallationTemplate() *schema.Resource {
"post_installation_script_return": {
Type: schema.TypeString,
Computed: true,
Description: "indicate the string returned by your postinstall customisation script on successful execution. Advice: your script should return a unique validation string in case of succes. A good example is 'loh1Xee7eo OK OK OK UGh8Ang1Gu'",
Description: "Indicate the string returned by your postinstall customisation script on successful execution. Advice: your script should return a unique validation string in case of succes. A good example is 'loh1Xee7eo OK OK OK UGh8Ang1Gu'",
},
},
},
},
"description": {
Type: schema.TypeString,
Computed: true,
Description: "information about this template",
Description: "Description of the template",
},
"distribution": {
Type: schema.TypeString,
Computed: true,
Description: "the distribution this template is based on",
Description: "Distribution this template is based on",
},
"end_of_install": {
Type: schema.TypeString,
Computed: true,
Description: "after this date, install of this template will not be possible at OVH",
Description: "After this date, install of this template will not be possible at OVH",
},
"family": {
Type: schema.TypeString,
Computed: true,
Description: "this template family type (bsd,linux,solaris,windows)",
Description: "Template family type (bsd,linux,solaris,windows)",
},
"filesystems": {
Type: schema.TypeList,
Expand All @@ -83,18 +83,18 @@ func dataSourceMeInstallationTemplate() *schema.Resource {
"hard_raid_configuration": {
Type: schema.TypeBool,
Computed: true,
Description: "This distribution supports hardware raid configuration through the OVH API",
Description: "Distribution supports hardware raid configuration through the OVH API",
Deprecated: "This will be deprecated in the next release",
},
"lvm_ready": {
Type: schema.TypeBool,
Computed: true,
Description: "This distribution supports Logical Volumes (Linux LVM)",
Description: "Whether this Distribution supports Logical Volumes (Linux LVM)",
},
"no_partitioning": {
Type: schema.TypeBool,
Computed: true,
Description: "The template supports RAID0 and RAID1 on 2 disks.",
Description: "Template supports RAID0 and RAID1 on 2 disks",
},
"partition_scheme": {
Type: schema.TypeList,
Expand All @@ -104,12 +104,12 @@ func dataSourceMeInstallationTemplate() *schema.Resource {
"name": {
Type: schema.TypeString,
Computed: true,
Description: "name of this partitioning scheme",
Description: "Name of this partitioning scheme",
},
"priority": {
Type: schema.TypeInt,
Computed: true,
Description: "on a reinstall, if a partitioning scheme is not specified, the one with the higher priority will be used by default, among all the compatible partitioning schemes (given the underlying hardware specifications)",
Description: "On a reinstall, if a partitioning scheme is not specified, the one with the higher priority will be used by default, among all the compatible partitioning schemes (given the underlying hardware specifications)",
},
"hardware_raid": {
Type: schema.TypeList,
Expand Down Expand Up @@ -155,32 +155,32 @@ func dataSourceMeInstallationTemplate() *schema.Resource {
"mountpoint": {
Type: schema.TypeString,
Computed: true,
Description: "partition mount point",
Description: "Partition mount point",
},
"raid": {
Type: schema.TypeString,
Computed: true,
Description: "raid partition type",
Description: "Raid partition type",
},
"size": {
Type: schema.TypeInt,
Computed: true,
Description: "size of partition in MB, 0 => rest of the space",
Description: "Size of partition in MB, 0 => rest of the space",
},
"order": {
Type: schema.TypeInt,
Computed: true,
Description: "step or order. specifies the creation order of the partition on the disk",
Description: "Step or order. specifies the creation order of the partition on the disk",
},
"type": {
Type: schema.TypeString,
Computed: true,
Description: "partition type",
Description: "Partition type",
},
"volume_name": {
Type: schema.TypeString,
Computed: true,
Description: "The volume name needed for proxmox distribution",
Description: "Volume name needed for proxmox distribution",
},
},
},
Expand All @@ -196,7 +196,7 @@ func dataSourceMeInstallationTemplate() *schema.Resource {
"subfamily": {
Type: schema.TypeString,
Computed: true,
Description: "this template subfamily type",
Description: "Template subfamily type",
},
},
}
Expand Down
2 changes: 1 addition & 1 deletion ovh/resource_me_installation_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ func resourceMeInstallationTemplate() *schema.Resource {
"lvm_ready": {
Type: schema.TypeBool,
Computed: true,
Description: "This distribution supports Logical Volumes (Linux LVM)",
Description: "Whether this distribution supports Logical Volumes (Linux LVM)",
},
"no_partitioning": {
Type: schema.TypeBool,
Expand Down
28 changes: 14 additions & 14 deletions website/docs/d/dedicated_installation_template.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ subcategory : "Dedicated Server"

# ovh_dedicated_installation_template (Data Source)

Use this data source to retrieve informations about a specific ovh dedicated server installation template.
Use this data source to retrieve information about a specific OVH dedicated server installation template.

## Example Usage

Expand All @@ -20,25 +20,25 @@ output "template" {

## Argument Reference

* `template_name` - (Required) The name of the template
* `template_name` - (Required) The name of the template.

## Attributes Reference

The following attributes are exported:

* `id` - The ID of the installation template
* `bit_format`: This template bit format (32 or 64)
* `id` - The ID of the installation template.
* `bit_format`: Template bit format (32 or 64).
bigbigbang marked this conversation as resolved.
Show resolved Hide resolved
* `category` - Category of this template (informative only).
bigbigbang marked this conversation as resolved.
Show resolved Hide resolved
* `description` - Information about this template.
* `distribution` - The distribution this template is based on.
* `end_of_install` - The end of install date of the template
* `family` - This template family type.
* `distribution` - Distribution this template is based on.
* `end_of_install` - End of install date of the template.
* `family` - Template family type.
* `filesystems` - Filesystems available.
* `hardware_raid_configuration` - This distribution supports hardware raid configuration through the OVHcloud API.
* `inputs` - Represents the questions of the expected answers in the userMetadata field
* `license` - The license available for this template
* `lvm_ready` - This template supports LVM.
* `hardware_raid_configuration` - Distribution supports hardware raid configuration through the OVHcloud API.
* `inputs` - Represents the questions of the expected answers in the userMetadata field.
* `license` - License available for this template.
* `lvm_ready` - Whether this template supports LVM.
* `no_partitioning` - Partitioning customization is not available for this OS template.
* `project` - The project
* `soft_raid_only_mirroring` - The template supports RAID0 and RAID1 on 2 disks.
* `subfamily` - The sub family of the template
* `project` - Distribution project details.
* `soft_raid_only_mirroring` - Template supports RAID0 and RAID1 on 2 disks.
* `subfamily` - Subfamily of the template.
39 changes: 19 additions & 20 deletions website/docs/d/me_installation_template.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -16,42 +16,41 @@ data "ovh_me_installation_template" "mytemplate" {

## Argument Reference

* `template_name`: This template name
* `template_name`: Template name.

## Attributes Reference

The following attributes are exported:

* `bit_format`: This template bit format (32 or 64).
* `bit_format`: Template bit format (32 or 64).
* `category`: Category of this template (informative only).
* `customization`:
* `custom_hostname`: Set up the server using the provided hostname instead of the default hostname.
* `post_installation_script_link`: Indicate the URL where your postinstall customisation script is located.
* `post_installation_script_return`: indicate the string returned by your postinstall customisation script on successful execution. Advice: your script should return a unique validation string in case of succes. A good example is 'loh1Xee7eo OK OK OK UGh8Ang1Gu'.
* `ssh_key_name`: Name of the ssh key that should be installed. Password login will be disabled. Deprecated, will be removed in next release, use userMetada instead.
* `description`: information about this template.
* `distribution`: the distribution this template is based on.
* `end_of_install` - The end of install date of the template
* `family`: this template family type (bsd,linux,solaris,windows).
* `post_installation_script_return`: Indicate the string returned by your postinstall customisation script on successful execution. Advice: your script should return a unique validation string in case of succes. A good example is 'loh1Xee7eo OK OK OK UGh8Ang1Gu'.
* `description`: Information about this template.
* `distribution`: Distribution this template is based on.
* `end_of_install` - End of install date of the template.
* `family`: Template family type (bsd,linux,solaris,windows).
* `filesystems`: Filesystems available.
* `hard_raid_configuration`: This distribution supports hardware raid configuration through the OVHcloud API.
* `lvm_ready` - This template supports LVM.
* `hard_raid_configuration`: Distribution supports hardware raid configuration through the OVHcloud API.
* `lvm_ready` - Whether this template supports LVM.
* `no_partitioning` - Partitioning customization is not available for this OS template.
* `partition_scheme`:
* `name`: name of this partitioning scheme.
* `priority`: on a reinstall, if a partitioning scheme is not specified, the one with the higher priority will be used by default, among all the compatible partitioning schemes (given the underlying hardware specifications).
* `name`: Name of this partitioning scheme.
* `priority`: On a reinstall, if a partitioning scheme is not specified, the one with the higher priority will be used by default, among all the compatible partitioning schemes (given the underlying hardware specifications).
* `hardware_raid`:
* `name`: Hardware RAID name.
* `disks`: Disk List. Syntax is cX:dY for disks and [cX:dY,cX:dY] for groups. With X and Y resp. the controller id and the disk id.
* `mode`: RAID mode (raid0, raid1, raid10, raid5, raid50, raid6, raid60).
* `step`: Specifies the creation order of the hardware RAID.
* `partition`:
* `filesystem`: Partition filesystem.
* `mountpoint`: partition mount point.
* `raid`: raid partition type.
* `size`: size of partition in MB, 0 => rest of the space.
* `order`: step or order. specifies the creation order of the partition on the disk
* `type`: partition type.
* `volume_name`: The volume name needed for proxmox distribution
* `soft_raid_only_mirroring` - The template supports RAID0 and RAID1 on 2 disks.
* `subfamily` - The sub family of the template
* `mountpoint`: Partition mount point.
* `raid`: Raid partition type.
* `size`: Size of partition in MB, 0 => rest of the space.
* `order`: Step or order. Specifies the creation order of the partition on the disk.
* `type`: Partition type.
* `volume_name`: Volume name needed for proxmox distribution.
* `soft_raid_only_mirroring` - Template supports RAID0 and RAID1 on 2 disks.
* `subfamily` - Subfamily of the template.