Skip to content
Snippets Groups Projects
Commit f0c7a5aa authored by Nathan Rodet's avatar Nathan Rodet
Browse files

Removed old usage of ssh in terraform

parent 2af42499
No related branches found
No related tags found
6 merge requests!6End of development,!5Develop,!4End of development,!3Develop,!2hot-fix: change readme.md,!1Develop
Pipeline #49278 passed
......@@ -50,8 +50,6 @@ Now, you can create a file for your variables information called **variables-loc
SCW_PROJECT_ID = ""
SCW_ACCESS_KEY = ""
SCW_SECRET_KEY = ""
SCW_SSH_PUB_KEY = ""
SCW_SSH_PRIVATE_KEY = ""
INSTANCES_COUNT = "2"
ENVIRONMENT = "devrust"
```
......
......@@ -9,7 +9,9 @@ packages:
- curl
write_files:
#
# Atrium config file
#
- content: |
hostname: %atrium_hostname%.daag.alpha.grandlyon.com
debug_mode: false
......@@ -31,7 +33,9 @@ write_files:
host: desktop-%atrium_count_index%
target: localhost:8081
path: /root/atrium.yaml
#
# Code-server config file
#
- content: |
bind-addr: 0.0.0.0:8080
auth: password
......@@ -39,6 +43,10 @@ write_files:
cert: false
path: /root/config.yaml
#
# Webtop docker compose file
#
runcmd:
#
# Install Rust
......
############
# Terraform SSH key
############
resource "scaleway_account_ssh_key" "ssh_key" {
name = "FORGE alpha_project_manager"
public_key = var.SCW_SSH_PUB_KEY
}
############
# Public IP
############
......
......@@ -18,18 +18,6 @@ variable "SCW_SECRET_KEY" {
description = "Scaleway secret key"
}
variable "SCW_SSH_PUB_KEY" {
type = string
sensitive = true
description = "SSH public key from Gitlab agent installed on scaleway"
}
variable "SCW_SSH_PRIVATE_KEY" {
type = string
sensitive = true
description = "SSH private key from Gitlab agent for remote-exec"
}
variable "LETSENCRYPT_EMAIL" {
type = string
sensitive = true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment