-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcloud_data.txt
22 lines (22 loc) · 859 Bytes
/
cloud_data.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#cloud-config
package_upgrade: false
packages:
- httpd
write_files:
- owner: apache:apache
path: /var/www/html/index.html
content: |
<h1>Welcome to Intro to Terraform in Azure</h1>
- owner: apache:apache
path: /var/www/html/app1/index.html
content: |
<!DOCTYPE html> <html> <body style="background-color:rgb(250, 210, 210);"> <h1>Welcome to Intro to Terraform in Azure</h1> <p>Terraform Demo</p> </body></html>
runcmd:
- sudo dnf --assumeyes update
- sudo dnf --assumeyes upgrade
- sudo systemctl start httpd
- sudo systemctl enable httpd
- sudo systemctl stop firewalld
- sudo mkdir /var/www/html/app1
- [sudo, curl, -H, "Metadata:true", --noproxy, "*", "http://169.254.169.254/metadata/instance?api-version=2020-09-01", -o, /var/www/html/app1/metadata.html]
- sudo chown -R apache:apache /var/www