ansible-galaxy icon indicating copy to clipboard operation
ansible-galaxy copied to clipboard

Confusion about GRAVITY_STATE_DIR

Open microfuge opened this issue 11 months ago • 0 comments

Hi I am using this role for 23.2 and previously for 22.05 as well.

For some reason I want a custom location for GRAVITY_STATE_DIR set via galaxy_gravity_state_dir and not the default which is mutable_data_dir/gravity . The file handlers/gravity_23.0.yml tasks don't have the GRAVITY_STATE_DIR set as environment which is still there in handlers/gravity_22.05.yml . The GRAVITY_STATE_DIR is also set by the systemd service file. So the task "galaxy gravity restart" actually creates files in mutable_data_dir/gravity (default location). However systemd service creates these files in GRAVITY_STATE_DIR . Resulting in two socket and supervisor files in 2 locations.

Adding the GRAVITY_STATE_DIR to gravity_23.0.yml solves the issue in testing.

I would be grateful for your advice

microfuge avatar Mar 01 '24 17:03 microfuge