Skip to content

Commit 15e3e60

Browse files
committed
Merge branch 'deployment/test' of https://github.com/stackhpc/reductionist-rs into deployment/test
2 parents 07e5e60 + 4b34f33 commit 15e3e60

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

deployment/group_vars/all

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ reductionist_build_image: true
55
reductionist_src_url: "http://github.com/stackhpc/reductionist-rs"
66
# Source version.
77
reductionist_src_version: "deployment/test"
8+
# Location for the repo
9+
reductionist_repo_location: "{{ ansible_facts.env.HOME }}/reductionist-rs"
10+
# Whether to clone and checkout,
11+
# use this to disable the checkout and use an existing repo with local modifications.
12+
reductionist_clone_repo: "true"
813
# Container name.
914
reductionist_name: "reductionist"
1015
# Container image name.
@@ -19,10 +24,10 @@ reductionist_networks:
1924
reductionist_env:
2025
OTEL_EXPORTER_JAEGER_AGENT_HOST: "{{ hostvars[(groups['jaeger'] | default([]) + [inventory_hostname])[0]].ansible_facts.default_ipv4.address }}"
2126
REDUCTIONIST_ENABLE_JAEGER: "{{ (groups['jaeger'] | default([]) | length > 0) | string | lower }}"
22-
REDUCTIONIST_HTTPS: "true"
23-
REDUCTIONIST_PORT: "8081"
27+
REDUCTIONIST_HTTPS: "false"
28+
REDUCTIONIST_PORT: "8080"
2429
REDUCTIONIST_USE_CHUNK_CACHE: "true"
25-
REDUCTIONIST_CHUNK_CACHE_PATH: "/mnt/localdisk/mnorton/"
30+
REDUCTIONIST_CHUNK_CACHE_PATH: "/cache"
2631
REDUCTIONIST_CHUNK_CACHE_AGE: "86400"
2732
REDUCTIONIST_CHUNK_CACHE_PRUNE_INTERVAL: "3600"
2833
REDUCTIONIST_CHUNK_CACHE_SIZE_LIMIT: "10GB"
@@ -31,9 +36,14 @@ reductionist_env:
3136
reductionist_remote_certs_path: "{{ ansible_facts.env.HOME }}/certs"
3237
# Path to certificates directory in container.
3338
reductionist_container_certs_path: "/root/.config/reductionist/certs"
39+
# Path to cache directory on remote host.
40+
reductionist_remote_cache_path: "{{ ansible_facts.env.HOME }}/cache"
41+
# Path to certificates directory in container.
42+
reductionist_container_cache_path: "/cache"
3443
# List of container volume mounts.
3544
reductionist_volumes:
3645
- "{{ reductionist_remote_certs_path }}:{{ reductionist_container_certs_path }}"
46+
- "{{ reductionist_remote_cache_path }}:{{ reductionist_container_cache_path }}"
3747
# Host on which HAProxy frontend is exposed.
3848
reductionist_host: "{{ hostvars[groups['haproxy'][0]].ansible_facts.default_ipv4.address }}"
3949
# Certificate validity.

deployment/site.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -373,15 +373,15 @@
373373
- name: Clone reductionist repo
374374
ansible.builtin.git:
375375
repo: "{{ reductionist_src_url }}"
376-
dest: "{{ ansible_env.HOME }}/reductionist-rs"
376+
dest: "{{ reductionist_repo_location }}"
377377
version: "{{ reductionist_src_version }}"
378-
when: reductionist_build_image | bool
378+
when: reductionist_build_image | bool and reductionist_clone_repo | bool
379379

380380
- name: Ensure reductionist image is built
381381
containers.podman.podman_image:
382382
name: "{{ reductionist_image }}"
383383
tag: "{{ reductionist_tag }}"
384-
path: "{{ ansible_env.HOME }}/reductionist-rs"
384+
path: "{{ reductionist_repo_location }}"
385385
when: reductionist_build_image | bool
386386

387387
- name: Ensure reductionist container is running

0 commit comments

Comments
 (0)