website: sleep in getting started
This commit is contained in:
parent
7d1f799ced
commit
d179d1ad00
|
@ -42,6 +42,7 @@ block below.
|
||||||
"provisioners": [{
|
"provisioners": [{
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"inline": [
|
"inline": [
|
||||||
|
"sleep 30",
|
||||||
"sudo apt-get update",
|
"sudo apt-get update",
|
||||||
"sudo apt-get install -y redis-server"
|
"sudo apt-get install -y redis-server"
|
||||||
]
|
]
|
||||||
|
@ -49,6 +50,13 @@ block below.
|
||||||
}
|
}
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
|
<div class="alert alert-block alert-info">
|
||||||
|
<strong>Note:</strong> The <code>sleep 30</code> in the example above is
|
||||||
|
very important. Because Packer is able to detect and SSH into the instance
|
||||||
|
as soon as SSH is available, Ubuntu actually doesn't get proper amounts
|
||||||
|
of time to initialize. The sleep makes sure that the OS properly initializes.
|
||||||
|
</div>
|
||||||
|
|
||||||
Hopefully it is obvious, but the `builders` section shouldn't actually
|
Hopefully it is obvious, but the `builders` section shouldn't actually
|
||||||
contain "...", it should be the contents setup in the previous page
|
contain "...", it should be the contents setup in the previous page
|
||||||
of the getting started guide.
|
of the getting started guide.
|
||||||
|
|
Loading…
Reference in New Issue