-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.tf
More file actions
35 lines (28 loc) · 938 Bytes
/
Copy pathmain.tf
File metadata and controls
35 lines (28 loc) · 938 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
terraform {
required_version = ">= 1.5"
}
# Beispiel: warten bis ein Rechner in ConfigMgr ausgerollt ist, dann
# Folge-Resources darauf aufsetzen.
#
# Tausche `source` und Variablen je nach gewaehltem Weg (siehe README.md).
module "wait_for_pc" {
source = "../../01-adminservice-pwsh-linux"
computer_name = "PC123"
sms_provider = "sccm.corp.local"
site_code = "P01"
timeout_seconds = 7200
poll_interval_seconds = 60
# Nur in Test-Umgebungen ohne CA-Trust:
# skip_certificate_check = true
}
# Beispiel-Folge-Resource — wartet implizit ueber depends_on auf das Modul.
resource "null_resource" "after_rollout" {
depends_on = [module.wait_for_pc]
provisioner "local-exec" {
command = "echo 'PC123 ist deployed — hier koennten weitere Steps laufen.'"
}
}
output "deployed_pc" {
description = "Ausgerollter Rechner."
value = module.wait_for_pc.computer_name
}