Commit Graph

5 Commits

Author SHA1 Message Date
Alexis Pentori c1b14ab9b5
vault: add lookup plugin and certificate file
Signed-off-by: Alexis Pentori <alexis@status.im>
2024-08-06 15:50:58 +02:00
Jakub Sokołowski adde766742
Makefile: add check for CONSUL_HTTP_TOKEN
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2024-07-15 11:33:30 +02:00
Jakub Sokołowski 49df6d5996
roles.py: script to replace Ansible Galaxy
Usage:
```
usage: roles.py [-h] [-f FILTER] [-w WORKERS] [-r REQUIREMENTS] [-s ROLES_SYMLINK] [-l LOG_LEVEL] [-d] [-a] [-i | -c | -u]

This tool managed Ansible roles as Git repositories.
It is both faster and simpler than Ansible Galaxy.

By default ~/.ansible/roles is symlinked to ~/work.
Override it using --roles-symlink or ROLES_SYMLINK.

Installation behavior:
- If no version is specified newest is pulled.
- If version is matching nothing is done.
- If repo is dirty or detached nothing is done.
- If version is newer user is notified.

options:
  -h, --help            show this help message and exit
  -f FILTER, --filter FILTER
                        Filter role repo names.
  -w WORKERS, --workers WORKERS
                        Max workers to run in parallel.
  -r REQUIREMENTS, --requirements REQUIREMENTS
                        Location of requirements.yml file.
  -s ROLES_SYMLINK, --roles-symlink ROLES_SYMLINK
                        Actual location of installed roles.
  -l LOG_LEVEL, --log-level LOG_LEVEL
                        Logging level.
  -d, --fail-dirty      Fail if repo is dirty.
  -a, --fail-detached   Fail if repo has detached head.
  -i, --install         Clone and update required roles.
  -c, --check           Only check roles, no installing.
  -u, --update          Update requirements with current commits.

Examples:
./roles.py --install
./roles.py --check
./roles.py --update
```

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2024-06-13 14:07:14 +02:00
Jakub Sokołowski 0f872c3914
Makefile: drop creating cosul-ca.key file
It's not necessary for Terraform backend.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-05-12 09:51:47 +02:00
Jakub Sokołowski 650171adbe
add makefile
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-05-11 14:25:26 +02:00