Merge "Add edit-secrets script to bridge.o.o"

This commit is contained in:
Zuul 2019-03-02 21:11:23 +00:00 committed by Gerrit Code Review
commit abee79164b
4 changed files with 11 additions and 0 deletions

View File

@ -23,6 +23,7 @@
- root-keys
- ansible-cron
- cloud-launcher-cron
- edit-secrets-script
tasks:
- name: Allow Zuul to trigger Ansible
authorized_key:

View File

@ -0,0 +1,3 @@
This role installs a script called `edit-secrets` to /usr/local/bin
that allows you to safely edit the secrets file without needing to
manage gpg-agent yourself.

View File

@ -0,0 +1,2 @@
#!/bin/sh
gpg-agent --daemon emacs /root/passwords/passwords.gpg

View File

@ -0,0 +1,5 @@
- name: Copy edit-secrets script
copy:
mode: 0750
src: edit-secrets
dest: /usr/local/bin/edit-secrets