Skip to content

Ansible playbooks and Terraform code for my environment and infrastructure.

Notifications You must be signed in to change notification settings

BeryJu/infrastructure

Repository files navigation

Ansible playbooks/Puppet stuff for my infrastructure

See also https://github.com/BeryJu/k8s, repository for GitOps with flux.

Requirements

  • Ansible latest
  • Puppet latest
  • HashiCorp Vault (for credentials)
  • VMware vSphere (for provisioning)

Installation

poetry shell
poetry install # (--dev if you want to lint)
export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES # Seems to workaround a bug with hvac on macOS

Non-puppet files

  • packer/:

    Contains a packer project used to create a custom base image with the VMware Cloud-init datasource.

  • tf/:

    Terraform stuff

  • images/:

    Various docker images for things.

    Docker image that I use for day-to-day tasks, has all required utilities installed.

Playbooks

  • actions/cleanup.yaml:

    Remove unused docker images (executed on a schedule by AWX)

  • actions/sentry-cleanup.yaml:

    Cleanup sentry data and vacuum the database (run once a day by AWX).

  • actions/update.yaml:

    Update all systems