ProxShift

OpenShift clusters on Proxmox made simple


Project maintained by randyoyarzabal Hosted on GitHub Pages — Theme by mattgraham

🔐 ProxShift Vault Password Guide

Automatic Vault Decryption

ProxShift provides flexible vault password handling:

# 1. Create your vault password file
echo "your-secure-password" > config/.vault_pass

# 2. Encrypt your credentials
ansible-vault encrypt config/vault-credentials.yml --vault-password-file config/.vault_pass

# 3. Run ProxShift - automatic decryption!
ocp.provision my-cluster

Result: ✓ Seamless automatic decryption

Without Vault Password File

If config/.vault_pass is missing:

ocp.provision my-cluster

Output:

⚠  Vault password file not found: /path/to/config/.vault_pass
   Ansible will prompt for vault password interactively
Vault password: [user types password]

Result: ✓ Interactive password prompt

Behavior Summary

Scenario ProxShift Behavior User Experience
Vault file exists Automatic decryption Seamless operation
Vault file missing Interactive prompt Manual password entry
File unreadable Interactive prompt Manual password entry

Technical Details

ProxShift implements smart vault detection:

  1. Check if $PROXSHIFT_VAULT_PASS file exists
  2. If exists: Set ANSIBLE_VAULT_PASSWORD_FILE for automatic decryption
  3. If missing: Let Ansible prompt user for password
  4. Result: Always works, whether automated or interactive

Best Practices

This ensures ProxShift works for both automated CI/CD and interactive development!