All Projects → hashicorp → terraform-provider-nomad

hashicorp / terraform-provider-nomad

Licence: MPL-2.0 license
Terraform Nomad provider

Programming Languages

go
31211 projects - #10 most used programming language
HTML
75241 projects
shell
77523 projects

Projects that are alternatives of or similar to terraform-provider-nomad

terraform-provider-algolia
Terraform Provider for Algolia
Stars: ✭ 27 (-70.33%)
Mutual labels:  terraform-provider
terraform-provider-carvel
Carvel Terraform provider with resources for ytt and kapp to template and deploy to Kubernetes
Stars: ✭ 40 (-56.04%)
Mutual labels:  terraform-provider
terraform-provider-sumologic
This project is done. It has been integrated into https://github.com/SumoLogic/sumologic-terraform-provider
Stars: ✭ 13 (-85.71%)
Mutual labels:  terraform-provider
damon
Supervisor program to constrain Windows executables running under Nomad's raw_exec driver
Stars: ✭ 83 (-8.79%)
Mutual labels:  nomad
terraform-provider-nsx
A Terraform provider for VMware NSX.
Stars: ✭ 20 (-78.02%)
Mutual labels:  terraform-provider
100 Days Of Go
100 days of Go learning
Stars: ✭ 24 (-73.63%)
Mutual labels:  nomad
terraform-provider-ddcloud
Terraform provider for Dimension Data cloud compute.
Stars: ✭ 17 (-81.32%)
Mutual labels:  terraform-provider
terraform-provider-icinga2
Terraform Icinga2 provider
Stars: ✭ 13 (-85.71%)
Mutual labels:  terraform-provider
terraform-provider-ad
Automates the Active Directory resource creation during Infrastructure build using Terraform Provider.
Stars: ✭ 64 (-29.67%)
Mutual labels:  terraform-provider
nomad-demo
Vagrant based demo setup for running Hashicorp Nomad
Stars: ✭ 88 (-3.3%)
Mutual labels:  nomad
terraform-provider-sonarqube
Terraform provider for managing Sonarqube configuration
Stars: ✭ 26 (-71.43%)
Mutual labels:  terraform-provider
deadman-check
Monitoring companion for Nomad periodic jobs and Cron
Stars: ✭ 49 (-46.15%)
Mutual labels:  nomad
TerraformPluginDotNet
Write Terraform providers in C#.
Stars: ✭ 17 (-81.32%)
Mutual labels:  terraform-provider
terraform-provider-proxmox
terraform provider for proxmox
Stars: ✭ 28 (-69.23%)
Mutual labels:  terraform-provider
terraform-provider-vagrant
A Vagrant provider for terraform.
Stars: ✭ 43 (-52.75%)
Mutual labels:  terraform-provider
terraform-provider-ansiblevault
Read ansible vault from Terraform
Stars: ✭ 70 (-23.08%)
Mutual labels:  terraform-provider
datadog-to-terraform
Converts Datadog resource JSON into Terraform alarm code.
Stars: ✭ 191 (+109.89%)
Mutual labels:  terraform-provider
nomad
Dockerized Nomad
Stars: ✭ 33 (-63.74%)
Mutual labels:  nomad
terraform-provider-mssql
Terraform provider for Microsoft SQL Server
Stars: ✭ 18 (-80.22%)
Mutual labels:  terraform-provider
NOMAD.jl
Julia interface to the NOMAD blackbox optimization software
Stars: ✭ 38 (-58.24%)
Mutual labels:  nomad

Terraform Provider

Maintainers

This provider plugin is maintained by the Nomad team at HashiCorp.

Requirements

  • Terraform 0.10.x
  • Go 1.16 (to build the provider plugin)

Building The Provider

Clone repository to: $GOPATH/src/github.com/hashicorp/terraform-provider-nomad

$ mkdir -p $GOPATH/src/github.com/hashicorp; cd $GOPATH/src/github.com/hashicorp
$ git clone [email protected]:hashicorp/terraform-provider-nomad

Enter the provider directory and build the provider

$ cd $GOPATH/src/github.com/hashicorp/terraform-provider-nomad
$ make build

Using the provider

To use a released provider in your Terraform environment, run terraform init and Terraform will automatically install the provider. To specify a particular provider version when installing released providers, see the Terraform documentation on provider versioning.

To instead use a custom-built provider in your Terraform environment (e.g. the provider binary from the build instructions above), follow the instructions to install it as a plugin. After placing the custom-built provider into your plugins directory, run terraform init to initialize it.

For either installation method, documentation about the provider specific configuration options can be found on the provider's website.

Developing the Provider

If you wish to work on the provider, you'll first need Go installed on your machine (version 1.16+ is required). You'll also need to correctly setup a GOPATH, as well as adding $GOPATH/bin to your $PATH.

To compile the provider, run make build. This will build the provider and put the provider binary in the $GOPATH/bin directory.

$ make build
...
$ $GOPATH/bin/terraform-provider-nomad
...

In order to test the provider, you can simply run make test.

$ make test

In order to run the full suite of Acceptance tests:

  1. setup test environment
nomad agent -dev -acl-enabled
  1. obtain a management token
nomad acl bootstrap
  1. set nomad agent address (if differs from http://localhost:4646) and token secret ID and run tests
NOMAD_TOKEN=<output of nomad acl bootstrap's Secret ID> NOMAD_ADDR=http://<host>:<port> make testacc

Acceptance tests expect fresh instance of nomad agent, so all steps must be performed every time tests are executed.

Note: Acceptance tests create real resources, and may cost money to run.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].