Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metadata fetcher #3

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Added missing files
  • Loading branch information
kdimentionaltree committed Oct 21, 2024
commit 1c1371fd1574287a4c2001e3e610537db4686a62
18 changes: 18 additions & 0 deletions ansible/index_api.yaml.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[Unit]
Description = "{{ application_name }} service"
After = network.target

[Service]
Type = simple
Restart = always
RestartSec = 1
ExecStart={{ go_binary_path }}/{{ go_binary }} -bind "{{ bind_addr }}" -pg {{ pg_dsn }}?application_name={{ application_name }} -pg-master "{{ pg_master_dsn }}" {{ additional_args }}
ExecStopPost = /bin/echo "{{ application_name }} service down"
User = {{ service_user }}
Group = {{ service_group }}
LimitNOFILE = infinity
LimitNPROC = infinity
LimitMEMLOCK = infinity

[Install]
WantedBy = multi-user.target
18 changes: 18 additions & 0 deletions ansible/metadata_fetcher.yaml.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[Unit]
Description = "{{ application_name }}-metadata-fetcher service"
After = network.target

[Service]
Type = simple
Restart = always
RestartSec = 1
ExecStart={{ go_binary_path }}/{{ metadata_fetcher_binary }} -pg {{ pg_master_dsn or pg_dsn }}?application_name={{ application_name }}-metadata-fetcher {{ metadata_fetcher_additional_args }}
ExecStopPost = /bin/echo "{{ application_name }}-metadata-fetcher service down"
User = {{ service_user }}
Group = {{ service_group }}
LimitNOFILE = infinity
LimitNPROC = infinity
LimitMEMLOCK = infinity

[Install]
WantedBy = multi-user.target