-
Notifications
You must be signed in to change notification settings - Fork 135
Expand file tree
/
Copy pathcloud.cfg
More file actions
16 lines (16 loc) · 1.45 KB
/
cloud.cfg
File metadata and controls
16 lines (16 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#cloud-config
package_update: true
package_upgrade: true
packages:
- httpd
- samba-client
runcmd:
- [ sh, -c, 'wget https://raw.githubusercontent.com/microsoft/MicroHack/main/03-Azure/01-03-Infrastructure/06_Migration_Secure_AI_Ready/resources/demopage/index.html -O /var/www/html/index.html' ]
- [ sh, -c, 'wget https://raw.githubusercontent.com/microsoft/MicroHack/main/03-Azure/01-03-Infrastructure/06_Migration_Secure_AI_Ready/resources/demopage/GitHub_Logo.png -O /var/www/html/GitHub_Logo.png' ]
- [ sh, -c, 'wget https://raw.githubusercontent.com/microsoft/MicroHack/main/03-Azure/01-03-Infrastructure/06_Migration_Secure_AI_Ready/resources/demopage/MSLogo.png -O /var/www/html/MSLogo.png' ]
- [ sh, -c, 'wget https://raw.githubusercontent.com/microsoft/MicroHack/main/03-Azure/01-03-Infrastructure/06_Migration_Secure_AI_Ready/resources/demopage/MSicon.png -O /var/www/html/MSicon.png' ]
- [ sh, -c, 'wget https://raw.githubusercontent.com/microsoft/MicroHack/main/03-Azure/01-03-Infrastructure/06_Migration_Secure_AI_Ready/resources/demopage/github-mark.png -O /var/www/html/github-mark.png' ]
- [ sh, -c, 'wget https://raw.githubusercontent.com/microsoft/MicroHack/main/03-Azure/01-03-Infrastructure/06_Migration_Secure_AI_Ready/resources/demopage/stylesheet.css -O /var/www/html/stylesheet.css' ]
- [ sh, -c, 'sed -i "s/<HOSTNAME>/$(hostname)/g" /var/www/html/index.html']
- [ systemctl, enable, httpd.service ]
- [ systemctl, start, httpd.service ]