Skip to content

Instantly share code, notes, and snippets.

@s3w47m88
Created April 4, 2017 23:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save s3w47m88/88f9a18c146192b6a63e1f9459b9efde to your computer and use it in GitHub Desktop.
Save s3w47m88/88f9a18c146192b6a63e1f9459b9efde to your computer and use it in GitHub Desktop.
trellis/group_vars/all/users.yml
# Documentation: https://roots.io/trellis/docs/ssh-keys/
admin_user: admin
# Also define 'vault_users' (`group_vars/staging/vault.yml`, `group_vars/production/vault.yml`)
users:
- name: "{{ web_user }}"
groups:
- "{{ web_group }}"
keys:
- "{{ lookup('file', '~/.ssh/id_rsa.pub') }}"
# - https://github.com/username.keys
- name: "{{ admin_user }}"
groups:
- sudo
keys:
- "{{ lookup('file', '~/.ssh/id_rsa.pub') }}"
# - https://github.com/username.keys
- http://gitlab.iteratemarketing.com/OMITTED.keys
web_user: web
web_group: www-data
web_sudoers:
- "/usr/sbin/service php7.1-fpm *"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment