diff --git a/.terraform.lock.hcl b/.terraform.lock.hcl index de373c8..e4919cc 100644 --- a/.terraform.lock.hcl +++ b/.terraform.lock.hcl @@ -2,24 +2,24 @@ # Manual edits may be lost in future updates. provider "registry.terraform.io/cloudflare/cloudflare" { - version = "3.35.0" - constraints = "~> 3.0" + version = "4.50.0" + constraints = "~> 4.0" hashes = [ - "h1:Pz5TV7h/BXPJnNtlmUfbirFE9yXozYpXceo01tYlR0Y=", - "zh:13aabc00fee823422831bcc870227650cc765fc4c9622074d24d6d62a4ac0e37", - "zh:1544405f0ea6b388dad7eb25c434427b2682417396da9186e1b33551e6b4adff", - "zh:5d58394cb8e71bd4bf6ef0135f1ca6a4ad2cec937f3731b224125eb34ee059f7", - "zh:648596ed545ed01ae757d5a0b37c20e8050cfb51d42e9a2c82fcc94d883ff11d", - "zh:68d75e14eef4f073faa975ed6baf4db7e0e1f2fc61a4e54fd95325df42793810", + "h1:azL05eWyy2V8SWkbZZImPWvv8ynG4eqmrbZhjXBDFug=", + "zh:0ef99ed39472a94e6a0d6fa733cf0a46bce3bf66eba2873efae8846efdddc237", + "zh:2929cbbffcead171d45c88e4a7a59e9c013ea775dafa68b10da8db7cd04b6140", + "zh:462601c87118088e1a718842e367af7d8e7620598d426980a6d6b33de759865e", + "zh:56766eb62a74a9d88d9efb8486dd3a0c5c9db873d0a980ae9ef1e8af27d74231", + "zh:6b4e8810d99498a5a20a5872982a0f1354e79cfc4a7dfe7cc656f1c7eaae47d8", + "zh:6d65bdb4ec94b6eecc8abe26d94e2ca09262dc1e7a9934db829f418be0119920", + "zh:71adeaf31e41a358ec6095004062e43f56ee7d4b2504e5613ab351d511695641", "zh:890df766e9b839623b1f0437355032a3c006226a6c200cd911e15ee1a9014e9f", - "zh:9916cc626fef57428c4c60db7897b34068c65639b68482e94f62d97d773d64bc", - "zh:9c8c9f369eb30e7360a0ebd7918e4846ca4d5bca430b861fdbde7522a3146459", - "zh:a40e244688bbcb6f1a771e6ea89fb0b0b7bb53be3fab718abc66b3593e0f8133", - "zh:cc5a6191aa8713275550ff2b6adda6e6d56e4780c9cbe3d1da1dc23ea893bfff", - "zh:d1dd435780e8c7e79bff26b46a76df0e123971849355ad17877d1e24dc5953c3", - "zh:d751fc72f2833f2bdb897fa89de2bb5b6efbad1e648896642f0e6fe5cde789c8", - "zh:dfc4c90b3605ec1bb7cc7a9f1fb1b67235578bdd6b9be78e7b3516b55d0422db", - "zh:e6101a80fe24e2df3ab60152458ff1666a4a1befc87c62e459a219cdbb53e6df", - "zh:e9bcf26c44dd231f74703b6a6717470021a3ba7e1d7531dcf7287a6441300e27", + "zh:89761c15908ccc2cf9c50bb5cb3be45d3ad0c45fc7c608c6b95f48c0288b7160", + "zh:8cc5d7c5939da89cfd01f3e51c84f3576564783acea9db86bd9e32049805ed96", + "zh:987cff8225b1dd436cdcb4fc6228689ae7e4281de6896412a2a9a3325c49f05e", + "zh:991e83ebb89867d71e01a1c215ed159efb425683b0a44707be8579eb0a337f06", + "zh:ab8177ae2d8f5cfa90043a6f867435012cae115f6061b832a7e2462e0ae87a67", + "zh:d1ca34df1398f201274a6a18102975148c10ca15aa43cfc56cc9897620929509", + "zh:d34946f70201baf6dda03e3b294c6bbe40d95d0278e97b9f636ded94822b24ac", ] } diff --git a/main.tf b/main.tf index 7d7fff8..6e96cae 100644 --- a/main.tf +++ b/main.tf @@ -1,10 +1,10 @@ -resource "cloudflare_zone_settings_override" "this" { - name = "${var.cloudflare_zone}" +#resource "cloudflare_zone_settings_override" "this" { +# name = "${var.cloudflare_zone}" - settings { - always_use_https = "on" - tls_1_3 = "on" - ssl = "strict" - min_tls_version = "1.2" - } -} \ No newline at end of file +# settings { +# always_use_https = "on" +# tls_1_3 = "on" +# ssl = "strict" +# min_tls_version = "1.2" +# } +#} \ No newline at end of file diff --git a/provider.tf b/provider.tf index fafc7ca..a8b0f6a 100644 --- a/provider.tf +++ b/provider.tf @@ -2,14 +2,14 @@ terraform { required_providers { cloudflare = { source = "cloudflare/cloudflare" - version = "~> 3.0" + version = "~> 4.46" } } required_version = ">= 1.7.5" } provider "cloudflare" { - email = var.cloudflare_email +# email = var.cloudflare_email api_token = var.cloudflare_api_token # zone = var.cloudflare_zone } \ No newline at end of file diff --git a/records_a.tf b/records_a.tf index cab25ed..f6dae66 100644 --- a/records_a.tf +++ b/records_a.tf @@ -1,6 +1,5 @@ resource "cloudflare_record" "terraform" { - domain = "${var.cloudflare_zone}" - + domain = var.cloudflare_zone name = "terraform" value = "82.66.77.254" type = "A" @@ -10,7 +9,6 @@ resource "cloudflare_record" "terraform" { resource "cloudflare_record" "a-root" { domain = "${var.cloudflare_zone}" - name = "@" value = "${var.main_server}" type = "A" diff --git a/variables.tf b/variables.tf index 6fd546a..fa05872 100644 --- a/variables.tf +++ b/variables.tf @@ -1,23 +1,23 @@ variable "cloudflare_email" { - description = "The email associated with the account. This can also be specified with the CLOUDFLARE_EMAIL shell environment variable." + description = "L'adresse électronique associée au compte." type = string default = "thedjinhn@gmail.com" } variable "cloudflare_api_token" { - description = "The Cloudflare API token. This can also be specified with the CLOUDFLARE_TOKEN shell environment variable." + description = "Le jeton de l'API Cloudflare." type = string default = "EMVLdieKXA6X-ifx0tW0ELNQGde5XrJ3D8T-qcEY" } variable "cloudflare_zone" { - description = "The DNS zone to add the record to." + description = "La zone DNS à laquelle ajouter l'enregistrement." type = string default = "tips-of-mine.com" } variable "main_server" { - description = "The main web server" + description = "Le serveur principal" type = string default = "82.66.77.254" }