Skip to content

GarlicLabs/ansible_role_ensure_argocd_state

Repository files navigation

ansible_role_ensure_argocd_state

Validate infrastructure as code

Installs an Argocd on K8s

Requirements

Needs an existing k8s cluster, helm locally installed and configured kube configuration

Role Variables

argocd_kubeconfig: kube config file argocd_namespace: namespace where the argocd should be installed argocd_chart_version: helm chart version to be used argocd_host_name: the FQDN for argocd argocd_state: whether argocd should be installed or uninstalled (absent/present) argocd_value_path: the path to your own helm values file

Testing

  • Create venv: python3 -m venv ./venv
  • Install pip requirements: venv/bin/pip install -r pip_requirements.txt
  • Execute tests venv/bin/molecule test

Linting & static security analyser

Both the linter and the static security analyser are running on each push on the github actions pipeline.

  • As linter ansible-lint is used. For installation documentation see ansible lint installing

    • Just run ansible-lint
  • To check if there are any passwords, tokens... hardcoded, kics is used to ensure a secure IaC repository.

    • Run it locally docker run -t -v $PWD:/path checkmarx/kics:latest scan -p /path -o "/path/"

Dependencies

None.

License

GNU General Public License version 3

About

Manage argocd deployment and config

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages