prole/infrastructure/roles/rsyslog/tasks/server.yml
chrisfu f2c9012cce Refactor installation and initialization logic, and expand test coverage
- install.py: Major update including configuration variable expansion, improved k3s/k3d handling, and enhanced installation logic.

- etc/ scripts: Significant refactoring of initialization scripts (Kerberos, Port Forwards, Garage Store, etc.).

- Port Forwards: Transitioned from XML to port-mappings.conf for managing kubectl port-forwards.

- Status Reporting: Improved status checking for common services.

- Infrastructure: Updated Ansible inventory and rsyslog role configurations.

- Tests: Added a comprehensive suite of tests for 'etc' initialization scripts in prole/tests/etc/.

- Documentation: Added prole-db-documentation-mcp-architecture.md.

- General: Updated Dockerfiles and various helper scripts.
2026-02-13 21:36:39 -08:00

36 lines
809 B
YAML

- name: Ensure syslog system user exists (Debian sometimes doesn't create it in minimal images)
user:
name: syslog
system: true
shell: /usr/sbin/nologin
create_home: false
ignore_errors: false
- name: Ensure syslog is in prole group (so it can write to {{ prole_logs_dir }} on NFS)
user:
name: syslog
groups: prole
append: true
- name: Install rsyslog
apt:
name: rsyslog
state: present
- name: Enable rsyslog server config
template:
src: 10-server.conf.j2
dest: /etc/rsyslog.d/10-server.conf
owner: root
group: root
mode: '0644'
notify: restart rsyslog
- name: Ensure log root exists and is group-writable via prole (setgid)
file:
path: "{{ prole_logs_dir }}"
state: directory
owner: root
group: prole
mode: '2775'