Skip to content

terraform project to build and provision a Linode VM with Jenkins

Notifications You must be signed in to change notification settings

max-weis/terraform-jenkins

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

terraform project to build and provision a Linode VM with Jenkins

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published