Skip to content
This repository has been archived by the owner on Mar 16, 2021. It is now read-only.

Latest commit

 

History

History
51 lines (32 loc) · 1.61 KB

README.md

File metadata and controls

51 lines (32 loc) · 1.61 KB

This repository is no longer maintained and has been merged into https://github.com/GSA/datagov-infrastructure-live.

CircleCI

datagov-infrastructure-modules

Data.gov infrastructure terraform modules. This repo contains the source modules used in datagov-infrastructure-live. See datagov-infrastructure-live for development instructions.

Modules

Modules in modules/ are true Terraform modules. Top-level modules like catalog/ are terragrunt modules. The Terraform modules are building blocks and consumed by the top-level terragrunt modules. The terragrunt modules encapsulate a full configuration for a Data.gov component.

Working with ansible

We use AWS dynamic inventory for ansible in our test environments. The dynamic inventory works by using the group tag on any instances to organize the hosts into groups. You may create multiple groups by using a comma-separated list. e.g. group=harvester,solr.

In your hosts file, this would look like:

[solr:children]
tag_group_solr

[harvester:children]
tag_group_harvester

Note: even though you may specify the ansible_group as a comma-separated list, the best practice is to use a single, unique tag that can then be mapped to multiple Ansible groups in the inventory file.

Tests

Tests include light terraform syntax validation. Don't forget to run the tests.

$ make test

You might also want to standardize the syntax in your files.

$ terraform fmt