Skip to content

Commit 3049b2c

Browse files
committed
adding adminapi access to envoy and version bump
1 parent 223298f commit 3049b2c

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

ansible/files/adminapi.sudoers.conf

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ Cmnd_Alias KONG = /bin/systemctl start kong.service, /bin/systemctl stop kong.se
22
Cmnd_Alias POSTGREST = /bin/systemctl start postgrest.service, /bin/systemctl stop postgrest.service, /bin/systemctl restart postgrest.service, /bin/systemctl disable postgrest.service, /bin/systemctl enable postgrest.service
33
Cmnd_Alias GOTRUE = /bin/systemctl start gotrue.service, /bin/systemctl stop gotrue.service, /bin/systemctl restart gotrue.service, /bin/systemctl disable gotrue.service, /bin/systemctl enable gotrue.service
44
Cmnd_Alias PGBOUNCER = /bin/systemctl start pgbouncer.service, /bin/systemctl stop pgbouncer.service, /bin/systemctl restart pgbouncer.service, /bin/systemctl disable pgbouncer.service, /bin/systemctl enable pgbouncer.service, /bin/systemctl reload pgbouncer.service
5+
Cmnd_Alias ENVOY = /bin/systemctl start envoy.service, /bin/systemctl stop envoy.service, /bin/systemctl restart envoy.service, /bin/systemctl disable envoy.service, /bin/systemctl enable envoy.service, /bin/systemctl reload envoy.service
56

67
%adminapi ALL= NOPASSWD: /root/grow_fs.sh
78
%adminapi ALL= NOPASSWD: /root/manage_readonly_mode.sh
@@ -24,3 +25,4 @@ Cmnd_Alias PGBOUNCER = /bin/systemctl start pgbouncer.service, /bin/systemctl st
2425
%adminapi ALL= NOPASSWD: POSTGREST
2526
%adminapi ALL= NOPASSWD: GOTRUE
2627
%adminapi ALL= NOPASSWD: PGBOUNCER
28+
%adminapi ALL= NOPASSWD: ENVOY

ansible/tasks/internal/admin-api.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
- name: adminapi - system user
22
user:
33
name: adminapi
4-
groups: root,admin,kong,pgbouncer,postgres,postgrest,systemd-journal,wal-g
4+
groups: root,admin,kong,envoy,pgbouncer,postgres,postgrest,systemd-journal,wal-g
55
append: yes
66

77
- name: Move shell scripts to /root dir

ansible/tasks/setup-envoy.yml

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
- name: Envoy - system user
22
user: name=envoy
33

4-
- name: Kong - download binary
4+
- name: envoy - create /opt/envoy
5+
file:
6+
path: /opt/envoy
7+
state: directory
8+
owner: envoy
9+
mode: 0775
10+
11+
- name: Envoy - download binary
512
get_url:
613
url: "https://github.com/envoyproxy/envoy/releases/download/v{{ envoy_release }}/envoy-{{ envoy_release }}-linux-aarch_64"
7-
dest: /tmp/envoy.app
14+
dest: /opt/envoy/envoy
815
checksum: "{{ envoy_release_checksum }}"
916

1017
# [warn] ulimit is currently set to "1024". For better performance set it to at least

common.vars.pkr.hcl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
postgres-version = "15.1.0.115-envoy"
1+
postgres-version = "15.1.0.115-envoy-rc2"

0 commit comments

Comments
 (0)