Join Chris O'Dell for an in-depth discussion in this video Provision a basic site, part of Learning HashiCorp Packer.
- Using the shell provisioner, we're going to make an image…that has nginex and a simple website baked in.…So, we will add here an extra provisioner,…for uploading the files.…The provisioners are run in order,…so if we add the file upload first,…that means that we'll upload those…before we do anything else.…And we currently have a shell type provisioner,…and what we're adding now is going to be a…file type provisioner, so we need to specify that type.…So we'll type in here, "type" and "file,"…and a file provisioner has two extra properties.…
Those properties are the source, and the destination.…The source is where to find the files on my local machine,…or where Packer is running, and destination is where…to send those files on the machine that Packer has launched,…so the source of these files is right here, which is a…relative location, so we'll just add that in now.…Source..files, slash website.…And the destination will upload them into our home…directory into a new folder called website.…Now, HashiCorp recommends that you upload any files…
- What is Packer?
- Baking a website image for EC2
- Provisioning with a configuration management tool
- Building hardened images
- Building a pipeline for Packer images