Actualizar deploy-containers.yaml
This commit is contained in:
@@ -3,7 +3,7 @@ name: "Deploy Multiple Ubuntu 24.04 Containers"
|
||||
|
||||
agent:
|
||||
machine:
|
||||
type: e2-standard-2
|
||||
type: cloud
|
||||
os_image: "ubuntu2204"
|
||||
|
||||
blocks:
|
||||
@@ -13,14 +13,14 @@ blocks:
|
||||
- name: "Init Terraform"
|
||||
commands:
|
||||
- checkout
|
||||
- sudo apt update && sudo apt install -y terraform incus-client
|
||||
- sudo apt update && sudo apt install -y
|
||||
- terraform init
|
||||
|
||||
- name: "Deploy Multiple Containers"
|
||||
task:
|
||||
env_vars:
|
||||
- name: TF_VAR_containers
|
||||
value: '["web01", "db01", "proxy01"]'
|
||||
value: '["web01", "web02"]'
|
||||
jobs:
|
||||
- name: "Terraform Apply"
|
||||
commands:
|
||||
@@ -33,9 +33,7 @@ blocks:
|
||||
commands:
|
||||
- incus list
|
||||
- incus exec web01 -- hostname
|
||||
- incus exec db01 -- lsb_release -a
|
||||
- incus exec proxy01 -- uptime
|
||||
|
||||
- incus exec web02 -- lsb_release -a
|
||||
- name: "Destroy (Manual)"
|
||||
task:
|
||||
run:
|
||||
|
||||
Reference in New Issue
Block a user