Skip to content

Commit

Permalink
Show a clear notice on files that are managed with ansible
Browse files Browse the repository at this point in the history
  • Loading branch information
dacook committed Oct 28, 2024
1 parent 778a013 commit 53a93cd
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 1 deletion.
4 changes: 4 additions & 0 deletions inventory/group_vars/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -425,3 +425,7 @@ rbenv_plugins:
- { name: "rbenv-update", repo: "https://github.com/rkh/rbenv-update.git", version: "master" }
- { name: "rbenv-whatis", repo: "https://github.com/rkh/rbenv-whatis.git", version: "master" }
- { name: "rbenv-use", repo: "https://github.com/rkh/rbenv-use.git", version: "master" }

template_notice: |
# Managed via ofn-install, any changes will be overwritten.
# Please notify @devs of any changes in [#devops](https://openfoodnetwork.slack.com/archives/CEBMTRCNS) (But do not share secrets in public channel!)
2 changes: 1 addition & 1 deletion roles/app/templates/env.j2
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Managed via ofn-install
{{ template_notice }}

SECRET_TOKEN="{{ secret_token }}"

Expand Down
2 changes: 2 additions & 0 deletions roles/app/templates/postgresql.yml.j2
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{{ template_notice }}

development:
adapter: postgresql
encoding: unicode
Expand Down
2 changes: 2 additions & 0 deletions roles/app_user/templates/bash_profile.j2
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{{ template_notice }}

set -o allexport
. /etc/default/openfoodnetwork
set +o allexport
2 changes: 2 additions & 0 deletions roles/app_user/templates/defaults.j2
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{{ template_notice }}

RAILS_ENV={{ rails_env }}

{% if db_user is defined %}
Expand Down
2 changes: 2 additions & 0 deletions roles/app_user/templates/sudoers.j2
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
{{ template_notice }}

# app user needs passwordless sudo for concrete commands
{{ app_user }} ALL=(ALL) NOPASSWD: /bin/systemctl start puma.service, /bin/systemctl stop puma.service, /bin/systemctl restart puma.service, /bin/systemctl reload puma.service, /bin/systemctl start sidekiq.service, /bin/systemctl stop sidekiq.service, /bin/systemctl restart sidekiq.service

0 comments on commit 53a93cd

Please sign in to comment.