https://github.com/ecodev/packer-ubuntu
https://github.com/ecodev/packer-ubuntu
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ecodev/packer-ubuntu
- Owner: Ecodev
- Created: 2021-02-20T06:03:10.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-10-31T06:10:59.000Z (over 1 year ago)
- Last Synced: 2024-12-22T17:49:42.367Z (about 1 year ago)
- Language: Shell
- Size: 96.7 KB
- Stars: 0
- Watchers: 8
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Packer template for Ecodev cloud
This is a [packer](https://www.packer.io/) template to build a box for Ecodev cloud and publish it on
https://portal.cloud.hashicorp.com/vagrant/discover/Ecodev. It is based on [chef/bento](https://github.com/chef/bento).
To build locally:
1. Create a new key on for the service principal "Box uploader" on https://portal.cloud.hashicorp.com/ >
`Access control (IAM)` > `Service principals` > `box-uploader` > `Keys` > `Generate key`
2. Set the key as the environment variable `HCP_CLIENT_ID` and `HCP_CLIENT_SECRET`
3. Install packer plugins:
```sh
packer init .
```
4. Build the box and automatically upload to https://portal.cloud.hashicorp.com/vagrant/discover/Ecodev:
```sh
packer build .
```