Skip to content

Commit

Permalink
refresh apt sources before installing nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
pysysops committed Feb 9, 2020
1 parent 63984bc commit 4e78f11
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion examples/dns/user-data.web
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#cloud-config

runcmd:
- apt-get install -y nginx
- apt-get update
- apt install -y nginx
- 'echo "<html><body><h2>$(hostname)</h2></body></html>" > /var/www/html/index.html'
3 changes: 2 additions & 1 deletion examples/loadbalancer/user-data.web
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#cloud-config

runcmd:
- apt-get install -y nginx
- apt-get update
- apt install -y nginx
- 'echo "<html><body><h2>$(hostname)</h2></body></html>" > /var/www/html/index.html'
3 changes: 2 additions & 1 deletion examples/simple/user-data.web
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#cloud-config

runcmd:
- apt-get install -y nginx
- apt-get update
- apt install -y nginx
- 'echo "<html><body><h2>$(hostname)</h2></body></html>" > /var/www/html/index.html'

0 comments on commit 4e78f11

Please sign in to comment.