Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ansible/tasks/internal/node-exporter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@
- name: node_exporter - reload systemd
systemd:
daemon_reload: yes
enabled: yes
state: restarted
enabled: no
state: stopped
name: node_exporter
16 changes: 16 additions & 0 deletions ansible/tasks/internal/optimizations.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
- name: ensure services are stopped
community.general.snap:
name: amazon-ssm-agent
state: absent

- name: ensure services are stopped and disabled for first boot
systemd:
enabled: no
name: '{{ item }}'
state: stopped
with_items:
- snapd
- postgresql
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for postgresql, correct me if I'm mistaken but I believe we would need it to have it started since we're running the .sql scripts at boot (then restarting it)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah right, yeah

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Going to leave it stopped per offline discussion; we can start it up once it's been configured, before the init scripts need to be run.

- postgrest
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be pgbouncer instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added pgbouncer; this list is a superset of the things that might be enabled in the image

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(pgbouncer isn't enabled)

- pgbouncer
- fail2ban
6 changes: 3 additions & 3 deletions ansible/tasks/internal/postgres-exporter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@
src: files/queries.yml.j2
dest: /opt/postgres_exporter/queries.yml

- name: exporter enable service
- name: exporter ensure service is present
systemd:
enabled: yes
enabled: no
name: postgres_exporter
daemon_reload: yes
state: restarted
state: stopped
6 changes: 5 additions & 1 deletion ansible/tasks/setup-supabase-internal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
apt:
pkg:
- unzip
- jq
install_recommends: no

- name: AWS CLI (arm)
Expand Down Expand Up @@ -33,4 +34,7 @@
import_tasks: internal/node-exporter.yml

- name: Install supautils
import_tasks: internal/supautils.yml
import_tasks: internal/supautils.yml

- name: Boot time optimizations
import_tasks: internal/optimizations.yml