Skip to content

Commit

Permalink
Merge pull request #401 from ovh/hcl-format
Browse files Browse the repository at this point in the history
Add hcl format when missing
  • Loading branch information
scraly authored Mar 21, 2023
2 parents 30af8c4 + a190073 commit b9d9355
Show file tree
Hide file tree
Showing 17 changed files with 19 additions and 7 deletions.
1 change: 1 addition & 0 deletions website/docs/d/cloud_project_database.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Use this data source to get the managed database of a public cloud project.
## Example Usage

To get information of a database cluster service:

```hcl
data "ovh_cloud_project_database" "db" {
service_name = "XXXXXX"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Use the list of IP restrictions associated with a public cloud project.
## Example Usage

To get the list of IP restriction on a database cluster service:

```hcl
data "ovh_cloud_project_database_ip_restrictions" "iprestrictions" {
service_name = "XXXXXX"
Expand Down
1 change: 1 addition & 0 deletions website/docs/d/cloud_project_databases.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Use this data source to get the list of managed databases of a public cloud proj
## Example Usage

To get the list of database clusters service for a given engine:

```hcl
data "ovh_cloud_project_databases" "dbs" {
service_name = "XXXXXX"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ subcategory : "Additional IP"

# ovh_cloud_project_failover_ip_attach (Data Source)

Use this data source to get the details of a failover ip address of a service in a public cloud project.
Use this data source to get the details of a failover IP address of a service in a public cloud project.

## Example Usage

Expand Down
3 changes: 3 additions & 0 deletions website/docs/r/cloud_project_database.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ interact directly with the team that builds our databases services and terraform
## Example Usage

Minimum settings for each engine (region choice is up to the user):

```hcl
resource "ovh_cloud_project_database" "cassandradb" {
service_name = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
Expand Down Expand Up @@ -135,6 +136,7 @@ resource "ovh_cloud_project_database" "redisdb" {
```

To deploy a business PostgreSQL service with two nodes on public network:

```hcl
resource "ovh_cloud_project_database" "postgresql" {
service_name = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
Expand All @@ -154,6 +156,7 @@ resource "ovh_cloud_project_database" "postgresql" {


To deploy an enterprise MongoDB service with three nodes on private network:

```hcl
resource "ovh_cloud_project_database" "mongodb" {
service_name = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Please take a look at the list of available `types` in the `Argument references`
## Example Usage

Push PostgreSQL logs in an OpenSearch DB:

```hcl
data "ovh_cloud_project_database" "dbpostgresql" {
service_name = "XXXX"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Creates an user for a M3DB cluster associated with a public cloud project.

Create a user johndoe in a M3DB database.
Output the user generated password with command `terraform output user_password`.

```hcl
data "ovh_cloud_project_database" "m3db" {
service_name = "XXX"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Creates an user for a MongoDB cluster associated with a public cloud project.

Create a user johndoe in a MongoDB database.
Output the user generated password with command `terraform output user_password`.

```hcl
data "ovh_cloud_project_database" "mongodb" {
service_name = "XXX"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Creates an user for a OpenSearch cluster associated with a public cloud project.

Create a user johndoe in a OpenSearch database.
Output the user generated password with command `terraform output user_password`.

```hcl
data "ovh_cloud_project_database" "opensearch" {
service_name = "XXX"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Creates an user for a PostgreSQL cluster associated with a public cloud project.

Create a user johndoe in a PostgreSQL database.
Output the user generated password with command `terraform output user_password`.

```hcl
data "ovh_cloud_project_database" "postgresql" {
service_name = "XXXX"
Expand Down
1 change: 1 addition & 0 deletions website/docs/r/cloud_project_database_user.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ With this resource you can create a user for the following database engine:

Create a user johndoe in a database.
Output the user generated password with command `terraform output user_password`.

```hcl
data "ovh_cloud_project_database" "db" {
service_name = "XXXX"
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/dedicated_nasha_partition.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Provides a resource for managing partitions on HA-NAS services

## Example Usage

```
```hcl
resource "ovh_dedicated_nasha_partition" "my-partition" {
service_name = "zpool-12345"
name = "my-partition"
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/dedicated_nasha_partition_access.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Provides a resource for managing access rights to partitions on HA-NAS services

## Example Usage

```
```hcl
resource "ovh_dedicated_nasha_partition_access" "my-partition" {
service_name = "zpool-12345"
partition_name = "my-partition"
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/dedicated_nasha_partition_snapshot.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Provides a resource for managing **snapshot** to partitions on HA-NAS services

## Example Usage

```
```hcl
resource "ovh_dedicated_nasha_partition_snapshot" "my-partition" {
service_name = "zpool-12345"
partition_name = "my-partition"
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/iploadbalancing_http_farm.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Creates a HTTP backend server group (farm) to be used by loadbalancing frontend(

## Example Usage

```
```hcl
data "ovh_iploadbalancing" "lb" {
service_name = "ip-1.2.3.4"
state = "ok"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Creates a backend server entry linked to HTTP loadbalancing group (farm)

## Example Usage

```
```hcl
data "ovh_iploadbalancing" "lb" {
service_name = "ip-1.2.3.4"
state = "ok"
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/iploadbalancing_http_frontend.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Creates a backend HTTP server group (frontend) to be used by loadbalancing front

## Example Usage

```
```hcl
data "ovh_iploadbalancing" "lb" {
service_name = "ip-1.2.3.4"
state = "ok"
Expand Down

0 comments on commit b9d9355

Please sign in to comment.