Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
max_line_length = 80
trim_trailing_whitespace = true

[*.{tf,tfvars}]
indent_size = 2
indent_style = space

[*.md]
max_line_length = 0
trim_trailing_whitespace = false
insert_final_newline = false

# Tab indentation (no size specified)
[Makefile]
tab_width = 2
indent_style = tab

[COMMIT_EDITMSG]
max_line_length = 0
76 changes: 38 additions & 38 deletions .github/workflows/ansible-ci.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,45 @@
name: Ansible Molecule
# name: Ansible Molecule

on:
push:
branches:
- main
paths:
- '.github/**'
- '_tools/ansible/**'
pull_request:
branches:
- '*'
paths:
- '.github/**'
- '_tools/ansible/**'
# on:
# push:
# branches:
# - main
# paths:
# - '.github/**'
# - '_tools/ansible/**'
# pull_request:
# branches:
# - '*'
# paths:
# - '.github/**'
# - '_tools/ansible/**'

jobs:
aws-cli:
name: AWScli Role
runs-on: ubuntu-latest
# jobs:
# aws-cli:
# name: AWScli Role
# runs-on: ubuntu-latest

strategy:
matrix:
distro:
- centos8
- debian10
# strategy:
# matrix:
# distro:
# - centos8
# - debian10

steps:
- name: Check out the codebase.
uses: actions/checkout@v2
# steps:
# - name: Check out the codebase.
# uses: actions/checkout@v2

- name: Set up Python 3.
uses: actions/setup-python@v2
with:
python-version: '3.x'
# - name: Set up Python 3.
# uses: actions/setup-python@v2
# with:
# python-version: '3.x'

- name: Install test dependencies.
run: pip3 install molecule docker yamllint ansible ansible-lint 'molecule[docker]'
# - name: Install test dependencies.
# run: pip3 install molecule docker yamllint ansible ansible-lint 'molecule[docker]'

- name: Run Molecule tests ansible role
run: cd _tools/ansible/roles/aws-cli && molecule test
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
MOLECULE_DISTRO: ${{ matrix.distro }}
# - name: Run Molecule tests ansible role
# run: cd _tools/ansible/roles/aws-cli && molecule test
# env:
# PY_COLORS: '1'
# ANSIBLE_FORCE_COLOR: '1'
# MOLECULE_DISTRO: ${{ matrix.distro }}
81 changes: 42 additions & 39 deletions .github/workflows/terraform-baseline.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,46 @@
name: Terraform Baseline
# name: Terraform Baseline

on:
push:
branches:
- main
paths:
- '.github/**'
- 'baseline/**'
- '_tools/terraform/modules/**'
pull_request:
branches:
- '*'
paths:
- '.github/**'
- 'baseline/**'
- '_tools/terraform/modules/**'
# on:
# push:
# branches:
# - main
# paths:
# - '.github/**'
# - 'baseline/**'
# - '_tools/terraform/modules/**'
# pull_request:
# branches:
# - '*'
# paths:
# - '.github/**'
# - 'baseline/**'
# - '_tools/terraform/modules/**'

jobs:
# jobs:

terraform-baseline:
name: 'TF Baseline QA'
runs-on: ubuntu-latest
env:
environment: qa
region: eu-west-1
steps:
- name: Setup terraform provider
uses: hashicorp/setup-terraform@v1
with:
terraform_version: 1.0.0
cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }}
- name: Checkout Source
uses: actions/checkout@v2
# terraform-baseline:
# name: 'TF Baseline QA'
# runs-on: ubuntu-latest
# env:
# environment: qa
# region: eu-west-1
# steps:
# - name: Setup go-task
# uses: pnorton5432/setup-task@v1
# with:
# task-version: 3.43.3
# - name: Setup terraform provider
# uses: hashicorp/setup-terraform@v3
# with:
# terraform_version: 1.11.4
# cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }}
# - name: Checkout Source
# uses: actions/checkout@v4

- name: baseline-${{ env.environment }}-${{ env.region }}
shell: bash
run: |
make init
make validate
make version
make plan
working-directory: ./baseline/${{ env.environment }}/${{ env.region }}
# - name: baseline-${{ env.environment }}-${{ env.region }}
# shell: bash
# run: |
# task tf:init
# task tf:validate
# task tf:plan
# working-directory: ./baseline/${{ env.environment }}/${{ env.region }}
83 changes: 42 additions & 41 deletions .github/workflows/terraform-build.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,46 @@
# - https://help.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets
# name: Terraform Build

name: Terraform Build
# on:
# push:
# branches:
# - main
# paths:
# - '.github/**'
# - 'build/**'
# - '_tools/terraform/modules/**'
# pull_request:
# branches:
# - '*'
# paths:
# - '.github/**'
# - 'build/**'
# - '_tools/terraform/modules/**'

on:
push:
branches:
- main
paths:
- '.github/**'
- 'build/**'
- '_tools/terraform/modules/**'
pull_request:
branches:
- '*'
paths:
- '.github/**'
- 'build/**'
- '_tools/terraform/modules/**'
# jobs:

jobs:
# terraform-build:
# name: 'TF Build QA'
# runs-on: ubuntu-latest
# env:
# environment: qa
# region: eu-west-1
# steps:
# - name: Setup go-task
# uses: pnorton5432/setup-task@v1
# with:
# task-version: 3.43.3
# - name: Setup terraform provider
# uses: hashicorp/setup-terraform@v3
# with:
# terraform_version: 1.11.4
# cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }}
# - name: Checkout Source
# uses: actions/checkout@v4

terraform-build:
name: 'TF Build QA'
runs-on: ubuntu-latest
env:
environment: qa
region: eu-west-1
steps:
- name: Setup terraform provider
uses: hashicorp/setup-terraform@v1
with:
terraform_version: 1.0.0
cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }}
- name: Checkout Source
uses: actions/checkout@v2

- name: build-${{ env.environment }}-${{ env.region }}
shell: bash
run: |
make init
make validate
make version
make plan
working-directory: ./build/${{ env.environment }}/${{ env.region }}
# - name: build-${{ env.environment }}-${{ env.region }}
# shell: bash
# run: |
# task tf:init
# task tf:validate
# task tf:plan
# working-directory: ./build/${{ env.environment }}/${{ env.region }}
78 changes: 39 additions & 39 deletions .github/workflows/terraform-myapp.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,43 @@
name: Terraform MyApp
# name: Terraform MyApp

on:
push:
branches:
- main
paths:
- '.github/**'
- 'myapp/**'
- '_tools/terraform/modules/**'
pull_request:
branches:
- '*'
paths:
- '.github/**'
- 'myapp/**'
- '_tools/terraform/modules/**'
# on:
# push:
# branches:
# - main
# paths:
# - '.github/**'
# - 'myapp/**'
# - '_tools/terraform/modules/**'
# pull_request:
# branches:
# - '*'
# paths:
# - '.github/**'
# - 'myapp/**'
# - '_tools/terraform/modules/**'

jobs:
# jobs:

terraform-myapp:
name: 'TF MyApp QA'
runs-on: ubuntu-latest
env:
environment: qa
region: eu-west-1
steps:
- name: Setup terraform provider
uses: hashicorp/setup-terraform@v1
with:
terraform_version: 1.0.0
cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }}
- name: Checkout Source
uses: actions/checkout@v2
# terraform-myapp:
# name: 'TF MyApp QA'
# runs-on: ubuntu-latest
# env:
# environment: qa
# region: eu-west-1
# steps:
# - name: Setup terraform provider
# uses: hashicorp/setup-terraform@v1
# with:
# terraform_version: 1.0.0
# cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }}
# - name: Checkout Source
# uses: actions/checkout@v2

- name: myapp-${{ env.environment }}-${{ env.region }}
shell: bash
run: |
make init
make validate
make version
make plan
working-directory: ./myapp/${{ env.environment }}/${{ env.region }}
# - name: myapp-${{ env.environment }}-${{ env.region }}
# shell: bash
# run: |
# make init
# make validate
# make version
# make plan
# working-directory: ./myapp/${{ env.environment }}/${{ env.region }}
Loading