DeepSea
DeepSea copied to clipboard
Hardcoded paths in deepsea
Problem:
Deepsea salt module contains complete paths to access files, e.g. policy.cfg: https://github.com/SUSE/DeepSea/blob/v0.7.32/srv/modules/runners/validate.py#L729
With this it is not possible to use salts 'ROOT_DIR' option.
We could replace the first slash with __opts__['root_dir']
which would address this.
Is there a need to replace '/srv/pillar' and '/srv/salt' with __opts__['pillar_roots']['base'][0]
and __opts__['file_roots']['base'][0]
?
Just for reference: https://github.com/saltstack/salt/issues/699
I like that approach @swiftgist . I vote for yes to both your questions.