Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 858 Bytes

README.md

File metadata and controls

25 lines (16 loc) · 858 Bytes

Custom control node for my infrastructure

This role is only useful with my particular way of managing infrastructure.

It sets up a control node from which all Ansible playbooks will be executed. SSH keys are loaded into ssh-agent on boot. Passpharases for SSH keys and password to Ansible Vault are asked on boot and are stored in RAM until poweroff.

No automatic triggers for playbooks are added at this moment. Any playbook may be executed by calling make $PLAYBOOK_NAME from ~/.common/ansible for node operator.

Components

Systemd units
  • control-secrets.service - queries user for passwords and passphrases at boot
  • control-sshagent.service - stores unencrypted SSH keys in RAM
Scripts
  • control-secrets-fetch.sh - fetches Ansible Vault password from keyring and prints it to stdout. Useful with --vault-password-file