Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 643 Bytes

README.md

File metadata and controls

36 lines (27 loc) · 643 Bytes

jenkins-tf-demo

Prerequisites

First you need to build the jenkins image. You can run following script:

sh ./packer/build.sh

To get the image name run following command:

export TF_VAR_image=$(linode-cli images list | grep jenkins-tf-demo | awk '{print $2}')

Export the linode API key via a env var:

export TF_VAR_token=<YOUR_KEY_HERE>

Run the Jenkins VM

Confirm that the env vars are set correctly:

echo $TF_VAR_token && echo $TF_VAR_image

Check if terraform finds any errors:

terraform plan

If no errors were found you can apply the configuration:

terraform apply