I've searched the previous issues and can't see anything in relation to this.
At present there is a master.conf and a worker.conf and each statefulset references one or the other. Is there a reason that something similar to "to_be_replaced_by_hostname" hasn't been implemented to allow an environment variable to be set and update the value for role?
I was thinking of a token "to_be_replaced_by_role" and have the script replace the value based on an environment variable. This would then allow the use of a single shared ossec.conf file and remove the need to keep them in sync.
Is this a bad idea or something to be avoided. Happy to look at put in a pull request if it would be considered.
I've searched the previous issues and can't see anything in relation to this. At present there is a master.conf and a worker.conf and each statefulset references one or the other. Is there a reason that something similar to "to_be_replaced_by_hostname" hasn't been implemented to allow an environment variable to be set and update the value for role? I was thinking of a token "to_be_replaced_by_role" and have the script replace the value based on an environment variable. This would then allow the use of a single shared ossec.conf file and remove the need to keep them in sync.
Is this a bad idea or something to be avoided. Happy to look at put in a pull request if it would be considered.