Skip to content

Commit a56e669

Browse files
committed
Add a custom page for apache
1 parent 2ad3665 commit a56e669

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

app-install/main.tf

+10
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,14 @@ resource "null_resource" "application-install" {
3030
"apt-get install apache2 -y"
3131
]
3232
}
33+
34+
provisioner "file" {
35+
content = <<EOT
36+
<html>
37+
<img src="https://raw.githubusercontent.com/IBM/infra-to-app-with-landing-zone/main/docs/header.jpg">
38+
<h1> You did it!! </h1>
39+
</html>
40+
EOT
41+
destination = "/var/www/html/index.html"
42+
}
3343
}

lab/step2/apache.tf

+10
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,16 @@ resource "null_resource" "application-install" {
3737
"apt-get install apache2 -y"
3838
]
3939
}
40+
41+
provisioner "file" {
42+
content = <<EOT
43+
<html>
44+
<img src="https://raw.githubusercontent.com/IBM/infra-to-app-with-landing-zone/main/docs/header.jpg">
45+
<h1> You did it!! </h1>
46+
</html>
47+
EOT
48+
destination = "/var/www/html/index.html"
49+
}
4050
}
4151

4252
# Extra variable required to allow to connect to the workload vsis through the management vsi

0 commit comments

Comments
 (0)