45 lines
1.8 KiB
YAML
45 lines
1.8 KiB
YAML
---
|
|
- name: Verify rendered Notarius configuration
|
|
hosts: localhost
|
|
gather_facts: false
|
|
tasks:
|
|
- name: Read rendered configuration
|
|
become: true
|
|
ansible.builtin.slurp:
|
|
src: /usr/local/etc/notarius/config.yml
|
|
register: notarius_rendered_config_file
|
|
|
|
- name: Check representative rendered configuration
|
|
ansible.builtin.assert:
|
|
that:
|
|
- notarius_rendered_config.version == 4
|
|
- notarius_rendered_config.promptkit.local_backend.endpoint == "http://localhost:8000/v1"
|
|
- notarius_rendered_config.promptkit.local_backend.concurrency_limit == 0
|
|
- notarius_rendered_config.cache.checkpoints.enabled is false
|
|
- notarius_rendered_config.cache.chunk_plans.directory == ""
|
|
- notarius_rendered_config.output.directory == "/tmp/notarius-output"
|
|
- notarius_rendered_config.pipelines["dnd-session"] == notarius_expected_pipeline
|
|
- notarius_rendered_config.pipelines["dnd-archive"] == notarius_expected_pipeline
|
|
- notarius_rendered_config.promptkit.profile_dir is not defined
|
|
- notarius_rendered_config.promptkit.profile_file is not defined
|
|
- notarius_rendered_config.debug is not defined
|
|
vars:
|
|
notarius_rendered_config: "{{ notarius_rendered_config_file.content | b64decode | from_yaml }}"
|
|
notarius_expected_pipeline:
|
|
llm_profile: dnd-extraction
|
|
input: seriatim
|
|
artifacts:
|
|
spells:
|
|
extract: dnd/spells
|
|
normalize: dnd/spells
|
|
|
|
- name: Validate rendered configuration
|
|
ansible.builtin.command:
|
|
argv:
|
|
- /usr/local/bin/notarius
|
|
- config
|
|
- validate
|
|
- --config
|
|
- /usr/local/etc/notarius/config.yml
|
|
changed_when: false
|