Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add configuration file with the default values #147

Closed
mwperina opened this issue Feb 14, 2023 · 0 comments · Fixed by #177
Closed

Add configuration file with the default values #147

mwperina opened this issue Feb 14, 2023 · 0 comments · Fixed by #177
Assignees
Labels
jira Issues that are synced to Jira

Comments

@mwperina
Copy link
Member

mwperina commented Feb 14, 2023

We need to provide 2 different level of configuration files for hirte and hirte-agent:

  • The configuration file providing the options' default values, which should not be editable by users and which should be overwritten on each package installation
  • The configuration file provider the custom values, which is editable by users and which should be preserved during package installation

Here is suggested solution for hirte manager:

  • /usr/share/hirte/config/hirte-default.conf
    • This file should enlist all existing configuration options along with descriptions and allowed values
    • It should provide default values for all options, where it makes sense and it should also mention options, which don't have a default value (for example ManagerHost)
    • This file should not be modified by users
    • This file will be overwritten on each package installation
  • /etc/hirte/hirte.conf
    • This file should by default contain only options, which don't have default value and which should be modified by users
    • Users could add there any options from /usr/share/hirte/config/hirte-default.conf to modify their value
    • Users' customization of this file should be preserved during package installation

Solution for hirte-agent is very similar, just configuration file paths are different:

  • /usr/share/hirte-agent/config/hirte-default.conf
    • The configuration file for the default values
  • /etc/hirte/agent.conf
    • The configuration file to custom values modified by users

Using above configuration files should also change the order of loading configurations files during hirte/hirte-agent startup:

  1. Load the default configuration values from /usr/share and store them to the configuration hash map
  2. Load user customizations from /etc and overwrite updated values in the configuration hash map
  3. Check if all required options have a valid value
@mwperina mwperina added the jira Issues that are synced to Jira label Feb 14, 2023
@mwperina mwperina added jira Issues that are synced to Jira and removed jira Issues that are synced to Jira labels Mar 1, 2023
ArtiomDivak added a commit to ArtiomDivak/BlueChi that referenced this issue Mar 6, 2023
For a full description please read here
eclipse-bluechi#147.
For each of the node types [hirte, agent] hirte
will get the default config from the default
files located in /usr/shar/hirte/{hirte|agent}
into the hashmap and only after that it will
get the custome config that the usr changed

Signed-off-by: ArtiomDivak <adivak@redhat.com>
ArtiomDivak added a commit to ArtiomDivak/BlueChi that referenced this issue Mar 6, 2023
For a full description please read here
eclipse-bluechi#147.
For each of the node types [hirte, agent] hirte
will get the default config from the default
files located in /usr/shar/hirte/{hirte|agent}
into the hashmap and only after that it will
get the custome config that the usr changed

Signed-off-by: Artiom Divak <adivak@redhat.com>
ArtiomDivak added a commit to ArtiomDivak/BlueChi that referenced this issue Mar 7, 2023
For a full description please read here
eclipse-bluechi#147.
For each of the node types [hirte, agent] hirte
will get the default config from the default
files located in /usr/shar/hirte/{hirte|agent}
into the hashmap and only after that it will
get the custome config that the usr changed

Signed-off-by: Artiom Divak <adivak@redhat.com>
ArtiomDivak added a commit to ArtiomDivak/BlueChi that referenced this issue Mar 7, 2023
This is a follow-up of eclipse-bluechi#147 where it's suggested to use /etc/hirte/hirte.conf and /etc/hirte/agent.conf as configuration files, which could be modified by users to specify custom options.

But for automation it's not easy to parse current configuration file and save a new one with modified values, it would be much easier to use conf.d directory with custom user configuration files.

Here is the suggestion for the whole configuration files lineup for hirte manager:

    /usr/share/hirte/config/hirte-default.conf
        The base configuration file provided project defaults, which should not be modified by users
    /etc/hirte/hirte.conf
        The configurations file, where users can modified default values
    /etc/hirte/hirte.conf.d/
        Configuration directory where users might insert a configuration file (for example 99-custom-logging.conf)
        Only files with .conf suffix are used to load configuration changes
        Files in this directory are loaded in alphabetical order, so it's suggested to use number prefix to ease understanding of loading (for example 95-my-manager.conf and 99-custom-logging.conf)

Similar structure should be used also for hirte-agent:

    /usr/share/hirte-agent/config/hirte-default.conf
    /etc/hirte/agent.conf
    /etc/hirte/agent.conf.d/

Using above configuration files structure should also change the order of loading configurations files during hirte/hirte-agent startup:

    1)Load the default configuration values from /usr/share and store them to the configuration hash map
    2)Load user customizations from /etc/hirte/{hirte|agent}.conf and overwrite updated values in the configuration hash map
    3)Load user customizations files from /etc/hirte/{hirte|agent}.conf.d/ by alphabetical order and overwrite updated values in the configuration hash map
    4)Check if all required options have a valid value

Fixes: eclipse-bluechi#148
Signed-off-by: ArtiomDivak adivak@redhat.com
ArtiomDivak added a commit to ArtiomDivak/BlueChi that referenced this issue Mar 7, 2023
For a full description please read here
eclipse-bluechi#147.
For each of the node types [hirte, agent] hirte
will get the default config from the default
files located in /usr/shar/hirte/{hirte|agent}
into the hashmap and only after that it will
get the custome config that the usr changed

Fixes: eclipse-bluechi#147
Signed-off-by: Artiom Divak <adivak@redhat.com>
ArtiomDivak added a commit to ArtiomDivak/BlueChi that referenced this issue Mar 8, 2023
For a full description please read here
eclipse-bluechi#147.
For each of the node types [hirte, agent] hirte
will get the default config from the default
files located in /usr/shar/hirte/{hirte|agent}
into the hashmap and only after that it will
get the custome config that the usr changed

Fixes: eclipse-bluechi#147
Signed-off-by: Artiom Divak <adivak@redhat.com>
mwperina pushed a commit to ArtiomDivak/BlueChi that referenced this issue Mar 10, 2023
For a full description please read here
eclipse-bluechi#147.
For each of the node types [hirte, agent] hirte
will get the default config from the default
files located in /usr/shar/hirte/{hirte|agent}
into the hashmap and only after that it will
get the custome config that the usr changed

Fixes: eclipse-bluechi#147
Signed-off-by: Artiom Divak <adivak@redhat.com>
mwperina pushed a commit to ArtiomDivak/BlueChi that referenced this issue Mar 10, 2023
For a full description please read here
eclipse-bluechi#147.
For each of the node types [hirte, agent] hirte
will get the default config from the default
files located in /usr/shar/hirte/{hirte|agent}
into the hashmap and only after that it will
get the custome config that the usr changed

Fixes: eclipse-bluechi#147
Signed-off-by: Artiom Divak <adivak@redhat.com>
mwperina pushed a commit to ArtiomDivak/BlueChi that referenced this issue Mar 10, 2023
For a full description please read here
eclipse-bluechi#147.
For each of the node types [hirte, agent] hirte
will get the default config from the default
files located in /usr/shar/hirte/{hirte|agent}
into the hashmap and only after that it will
get the custome config that the usr changed

Fixes: eclipse-bluechi#147
Signed-off-by: Artiom Divak <adivak@redhat.com>
@engelmi engelmi added the v0.1 label Mar 10, 2023
ArtiomDivak added a commit to ArtiomDivak/BlueChi that referenced this issue Mar 13, 2023
For a full description please read here
eclipse-bluechi#147.
For each of the node types [hirte, agent] hirte
will get the default config from the default
files located in /usr/shar/hirte/{hirte|agent}
into the hashmap and only after that it will
get the custome config that the usr changed

Fixes: eclipse-bluechi#147
Signed-off-by: Artiom Divak <adivak@redhat.com>
ArtiomDivak added a commit to ArtiomDivak/BlueChi that referenced this issue Mar 13, 2023
For a full description please read here
eclipse-bluechi#147.
For each of the node types [hirte, agent] hirte
will get the default config from the default
files located in /usr/shar/hirte/{hirte|agent}
into the hashmap and only after that it will
get the custome config that the usr changed

Fixes: eclipse-bluechi#147
Signed-off-by: Artiom Divak <adivak@redhat.com>
ArtiomDivak added a commit that referenced this issue Mar 13, 2023
For a full description please read here
#147.
For each of the node types [hirte, agent] hirte
will get the default config from the default
files located in /usr/shar/hirte/{hirte|agent}
into the hashmap and only after that it will
get the custome config that the usr changed

Fixes: #147
Signed-off-by: Artiom Divak <adivak@redhat.com>
ArtiomDivak added a commit to ArtiomDivak/BlueChi that referenced this issue Mar 13, 2023
For a full description please read here
eclipse-bluechi#147.
For each of the node types [hirte, agent] hirte
will get the default config from the default
files located in /usr/shar/hirte/{hirte|agent}
into the hashmap and only after that it will
get the custome config that the usr changed

Fixes: eclipse-bluechi#147
Signed-off-by: Artiom Divak <adivak@redhat.com>
ArtiomDivak added a commit to ArtiomDivak/BlueChi that referenced this issue Mar 13, 2023
For a full description please read here
eclipse-bluechi#147.
For each of the node types [hirte, agent] hirte
will get the default config from the default
files located in /usr/shar/hirte/{hirte|agent}
into the hashmap and only after that it will
get the custome config that the usr changed

Fixes: eclipse-bluechi#147
Signed-off-by: Artiom Divak <adivak@redhat.com>
ArtiomDivak added a commit to ArtiomDivak/BlueChi that referenced this issue Mar 13, 2023
For a full description please read here
eclipse-bluechi#147.
For each of the node types [hirte, agent] hirte
will get the default config from the default
files located in /usr/shar/hirte/{hirte|agent}
into the hashmap and only after that it will
get the custome config that the usr changed

Fixes: eclipse-bluechi#147
Signed-off-by: Artiom Divak <adivak@redhat.com>
ArtiomDivak added a commit to ArtiomDivak/BlueChi that referenced this issue Mar 13, 2023
For a full description please read here
eclipse-bluechi#147.
For each of the node types [hirte, agent] hirte
will get the default config from the default
files located in /usr/shar/hirte/{hirte|agent}
into the hashmap and only after that it will
get the custome config that the usr changed

Fixes: eclipse-bluechi#147
Signed-off-by: Artiom Divak <adivak@redhat.com>
ArtiomDivak added a commit to ArtiomDivak/BlueChi that referenced this issue Mar 13, 2023
For a full description please read here
eclipse-bluechi#147.
For each of the node types [hirte, agent] hirte
will get the default config from the default
files located in /usr/shar/hirte/{hirte|agent}
into the hashmap and only after that it will
get the custome config that the usr changed

Fixes: eclipse-bluechi#147
Signed-off-by: Artiom Divak <adivak@redhat.com>
ArtiomDivak added a commit to ArtiomDivak/BlueChi that referenced this issue Mar 13, 2023
For a full description please read here
eclipse-bluechi#147.
For each of the node types [hirte, agent] hirte
will get the default config from the default
files located in /usr/shar/hirte/{hirte|agent}
into the hashmap and only after that it will
get the custome config that the usr changed

Fixes: eclipse-bluechi#147
Signed-off-by: Artiom Divak <adivak@redhat.com>
ArtiomDivak added a commit to ArtiomDivak/BlueChi that referenced this issue Mar 13, 2023
For a full description please read here
eclipse-bluechi#147.
For each of the node types [hirte, agent] hirte
will get the default config from the default
files located in /usr/shar/hirte/{hirte|agent}
into the hashmap and only after that it will
get the custome config that the usr changed

Fixes: eclipse-bluechi#147
Signed-off-by: Artiom Divak <adivak@redhat.com>
ArtiomDivak added a commit to ArtiomDivak/BlueChi that referenced this issue Mar 20, 2023
This is a follow-up of eclipse-bluechi#147 where it's suggested to use /etc/hirte/hirte.conf and /etc/hirte/agent.conf as configuration files, which could be modified by users to specify custom options.

But for automation it's not easy to parse current configuration file and save a new one with modified values, it would be much easier to use conf.d directory with custom user configuration files.

Here is the suggestion for the whole configuration files lineup for hirte manager:

    /usr/share/hirte/config/hirte-default.conf
        The base configuration file provided project defaults, which should not be modified by users
    /etc/hirte/hirte.conf
        The configurations file, where users can modified default values
    /etc/hirte/hirte.conf.d/
        Configuration directory where users might insert a configuration file (for example 99-custom-logging.conf)
        Only files with .conf suffix are used to load configuration changes
        Files in this directory are loaded in alphabetical order, so it's suggested to use number prefix to ease understanding of loading (for example 95-my-manager.conf and 99-custom-logging.conf)

Similar structure should be used also for hirte-agent:

    /usr/share/hirte-agent/config/hirte-default.conf
    /etc/hirte/agent.conf
    /etc/hirte/agent.conf.d/

Using above configuration files structure should also change the order of loading configurations files during hirte/hirte-agent startup:

    1)Load the default configuration values from /usr/share and store them to the configuration hash map
    2)Load user customizations from /etc/hirte/{hirte|agent}.conf and overwrite updated values in the configuration hash map
    3)Load user customizations files from /etc/hirte/{hirte|agent}.conf.d/ by alphabetical order and overwrite updated values in the configuration hash map
    4)Check if all required options have a valid value

Fixes: eclipse-bluechi#148
Signed-off-by: Artiom Divak adivak@redhat.com
ArtiomDivak added a commit to ArtiomDivak/BlueChi that referenced this issue Mar 20, 2023
This is a follow-up of eclipse-bluechi#147 where it's suggested to use /etc/hirte/hirte.conf and /etc/hirte/agent.conf as configuration files, which could be modified by users to specify custom options.

But for automation it's not easy to parse current configuration file and save a new one with modified values, it would be much easier to use conf.d directory with custom user configuration files.

Here is the suggestion for the whole configuration files lineup for hirte manager:

    /usr/share/hirte/config/hirte-default.conf
        The base configuration file provided project defaults, which should not be modified by users
    /etc/hirte/hirte.conf
        The configurations file, where users can modified default values
    /etc/hirte/hirte.conf.d/
        Configuration directory where users might insert a configuration file (for example 99-custom-logging.conf)
        Only files with .conf suffix are used to load configuration changes
        Files in this directory are loaded in alphabetical order, so it's suggested to use number prefix to ease understanding of loading (for example 95-my-manager.conf and 99-custom-logging.conf)

Similar structure should be used also for hirte-agent:

    /usr/share/hirte-agent/config/hirte-default.conf
    /etc/hirte/agent.conf
    /etc/hirte/agent.conf.d/

Using above configuration files structure should also change the order of loading configurations files during hirte/hirte-agent startup:

    1)Load the default configuration values from /usr/share and store them to the configuration hash map
    2)Load user customizations from /etc/hirte/{hirte|agent}.conf and overwrite updated values in the configuration hash map
    3)Load user customizations files from /etc/hirte/{hirte|agent}.conf.d/ by alphabetical order and overwrite updated values in the configuration hash map
    4)Check if all required options have a valid value

Fixes: eclipse-bluechi#148
Signed-off-by: Artiom Divak adivak@redhat.com
ArtiomDivak added a commit to ArtiomDivak/BlueChi that referenced this issue Mar 27, 2023
This is a follow-up of eclipse-bluechi#147 where it's suggested to use /etc/hirte/hirte.conf and /etc/hirte/agent.conf as configuration files, which could be modified by users to specify custom options.

But for automation it's not easy to parse current configuration file and save a new one with modified values, it would be much easier to use conf.d directory with custom user configuration files.

Here is the suggestion for the whole configuration files lineup for hirte manager:

    /usr/share/hirte/config/hirte-default.conf
        The base configuration file provided project defaults, which should not be modified by users
    /etc/hirte/hirte.conf
        The configurations file, where users can modified default values
    /etc/hirte/hirte.conf.d/
        Configuration directory where users might insert a configuration file (for example 99-custom-logging.conf)
        Only files with .conf suffix are used to load configuration changes
        Files in this directory are loaded in alphabetical order, so it's suggested to use number prefix to ease understanding of loading (for example 95-my-manager.conf and 99-custom-logging.conf)

Similar structure should be used also for hirte-agent:

    /usr/share/hirte-agent/config/hirte-default.conf
    /etc/hirte/agent.conf
    /etc/hirte/agent.conf.d/

Using above configuration files structure should also change the order of loading configurations files during hirte/hirte-agent startup:

    1)Load the default configuration values from /usr/share and store them to the configuration hash map
    2)Load user customizations from /etc/hirte/{hirte|agent}.conf and overwrite updated values in the configuration hash map
    3)Load user customizations files from /etc/hirte/{hirte|agent}.conf.d/ by alphabetical order and overwrite updated values in the configuration hash map
    4)Check if all required options have a valid value

Fixes: eclipse-bluechi#148
Signed-off-by: Artiom Divak adivak@redhat.com
ArtiomDivak added a commit to ArtiomDivak/BlueChi that referenced this issue Mar 27, 2023
This is a follow-up of eclipse-bluechi#147 where it's suggested to use /etc/hirte/hirte.conf and /etc/hirte/agent.conf as configuration files, which could be modified by users to specify custom options.

But for automation it's not easy to parse current configuration file and save a new one with modified values, it would be much easier to use conf.d directory with custom user configuration files.

Here is the suggestion for the whole configuration files lineup for hirte manager:

    /usr/share/hirte/config/hirte-default.conf
        The base configuration file provided project defaults, which should not be modified by users
    /etc/hirte/hirte.conf
        The configurations file, where users can modified default values
    /etc/hirte/hirte.conf.d/
        Configuration directory where users might insert a configuration file (for example 99-custom-logging.conf)
        Only files with .conf suffix are used to load configuration changes
        Files in this directory are loaded in alphabetical order, so it's suggested to use number prefix to ease understanding of loading (for example 95-my-manager.conf and 99-custom-logging.conf)

Similar structure should be used also for hirte-agent:

    /usr/share/hirte-agent/config/hirte-default.conf
    /etc/hirte/agent.conf
    /etc/hirte/agent.conf.d/

Using above configuration files structure should also change the order of loading configurations files during hirte/hirte-agent startup:

    1)Load the default configuration values from /usr/share and store them to the configuration hash map
    2)Load user customizations from /etc/hirte/{hirte|agent}.conf and overwrite updated values in the configuration hash map
    3)Load user customizations files from /etc/hirte/{hirte|agent}.conf.d/ by alphabetical order and overwrite updated values in the configuration hash map
    4)Check if all required options have a valid value

Fixes: eclipse-bluechi#148
Signed-off-by: Artiom Divak adivak@redhat.com
ArtiomDivak added a commit to ArtiomDivak/BlueChi that referenced this issue Mar 27, 2023
This is a follow-up of eclipse-bluechi#147 where it's suggested to use /etc/hirte/hirte.conf and /etc/hirte/agent.conf as configuration files, which could be modified by users to specify custom options.

But for automation it's not easy to parse current configuration file and save a new one with modified values, it would be much easier to use conf.d directory with custom user configuration files.

Here is the suggestion for the whole configuration files lineup for hirte manager:

    /usr/share/hirte/config/hirte-default.conf
        The base configuration file provided project defaults, which should not be modified by users
    /etc/hirte/hirte.conf
        The configurations file, where users can modified default values
    /etc/hirte/hirte.conf.d/
        Configuration directory where users might insert a configuration file (for example 99-custom-logging.conf)
        Only files with .conf suffix are used to load configuration changes
        Files in this directory are loaded in alphabetical order, so it's suggested to use number prefix to ease understanding of loading (for example 95-my-manager.conf and 99-custom-logging.conf)

Similar structure should be used also for hirte-agent:

    /usr/share/hirte-agent/config/hirte-default.conf
    /etc/hirte/agent.conf
    /etc/hirte/agent.conf.d/

Using above configuration files structure should also change the order of loading configurations files during hirte/hirte-agent startup:

    1)Load the default configuration values from /usr/share and store them to the configuration hash map
    2)Load user customizations from /etc/hirte/{hirte|agent}.conf and overwrite updated values in the configuration hash map
    3)Load user customizations files from /etc/hirte/{hirte|agent}.conf.d/ by alphabetical order and overwrite updated values in the configuration hash map
    4)Check if all required options have a valid value

Fixes: eclipse-bluechi#148
Signed-off-by: Artiom Divak adivak@redhat.com
ArtiomDivak added a commit to ArtiomDivak/BlueChi that referenced this issue Mar 27, 2023
This is a follow-up of eclipse-bluechi#147 where it's suggested to use /etc/hirte/hirte.conf and /etc/hirte/agent.conf as configuration files, which could be modified by users to specify custom options.

But for automation it's not easy to parse current configuration file and save a new one with modified values, it would be much easier to use conf.d directory with custom user configuration files.

Here is the suggestion for the whole configuration files lineup for hirte manager:

    /usr/share/hirte/config/hirte-default.conf
        The base configuration file provided project defaults, which should not be modified by users
    /etc/hirte/hirte.conf
        The configurations file, where users can modified default values
    /etc/hirte/hirte.conf.d/
        Configuration directory where users might insert a configuration file (for example 99-custom-logging.conf)
        Only files with .conf suffix are used to load configuration changes
        Files in this directory are loaded in alphabetical order, so it's suggested to use number prefix to ease understanding of loading (for example 95-my-manager.conf and 99-custom-logging.conf)

Similar structure should be used also for hirte-agent:

    /usr/share/hirte-agent/config/hirte-default.conf
    /etc/hirte/agent.conf
    /etc/hirte/agent.conf.d/

Using above configuration files structure should also change the order of loading configurations files during hirte/hirte-agent startup:

    1)Load the default configuration values from /usr/share and store them to the configuration hash map
    2)Load user customizations from /etc/hirte/{hirte|agent}.conf and overwrite updated values in the configuration hash map
    3)Load user customizations files from /etc/hirte/{hirte|agent}.conf.d/ by alphabetical order and overwrite updated values in the configuration hash map
    4)Check if all required options have a valid value

Fixes: eclipse-bluechi#148
Signed-off-by: Artiom Divak adivak@redhat.com
ArtiomDivak added a commit to ArtiomDivak/BlueChi that referenced this issue Mar 27, 2023
This is a follow-up of eclipse-bluechi#147 where it's suggested to use /etc/hirte/hirte.conf and /etc/hirte/agent.conf as configuration files, which could be modified by users to specify custom options.

But for automation it's not easy to parse current configuration file and save a new one with modified values, it would be much easier to use conf.d directory with custom user configuration files.

Here is the suggestion for the whole configuration files lineup for hirte manager:

    /usr/share/hirte/config/hirte-default.conf
        The base configuration file provided project defaults, which should not be modified by users
    /etc/hirte/hirte.conf
        The configurations file, where users can modified default values
    /etc/hirte/hirte.conf.d/
        Configuration directory where users might insert a configuration file (for example 99-custom-logging.conf)
        Only files with .conf suffix are used to load configuration changes
        Files in this directory are loaded in alphabetical order, so it's suggested to use number prefix to ease understanding of loading (for example 95-my-manager.conf and 99-custom-logging.conf)

Similar structure should be used also for hirte-agent:

    /usr/share/hirte-agent/config/hirte-default.conf
    /etc/hirte/agent.conf
    /etc/hirte/agent.conf.d/

Using above configuration files structure should also change the order of loading configurations files during hirte/hirte-agent startup:

    1)Load the default configuration values from /usr/share and store them to the configuration hash map
    2)Load user customizations from /etc/hirte/{hirte|agent}.conf and overwrite updated values in the configuration hash map
    3)Load user customizations files from /etc/hirte/{hirte|agent}.conf.d/ by alphabetical order and overwrite updated values in the configuration hash map
    4)Check if all required options have a valid value

Fixes: eclipse-bluechi#148
Signed-off-by: Artiom Divak adivak@redhat.com
ArtiomDivak added a commit to ArtiomDivak/BlueChi that referenced this issue Mar 27, 2023
This is a follow-up of eclipse-bluechi#147 where it's suggested to use /etc/hirte/hirte.conf and /etc/hirte/agent.conf as configuration files, which could be modified by users to specify custom options.

But for automation it's not easy to parse current configuration file and save a new one with modified values, it would be much easier to use conf.d directory with custom user configuration files.

Here is the suggestion for the whole configuration files lineup for hirte manager:

    /usr/share/hirte/config/hirte-default.conf
        The base configuration file provided project defaults, which should not be modified by users
    /etc/hirte/hirte.conf
        The configurations file, where users can modified default values
    /etc/hirte/hirte.conf.d/
        Configuration directory where users might insert a configuration file (for example 99-custom-logging.conf)
        Only files with .conf suffix are used to load configuration changes
        Files in this directory are loaded in alphabetical order, so it's suggested to use number prefix to ease understanding of loading (for example 95-my-manager.conf and 99-custom-logging.conf)

Similar structure should be used also for hirte-agent:

    /usr/share/hirte-agent/config/hirte-default.conf
    /etc/hirte/agent.conf
    /etc/hirte/agent.conf.d/

Using above configuration files structure should also change the order of loading configurations files during hirte/hirte-agent startup:

    1)Load the default configuration values from /usr/share and store them to the configuration hash map
    2)Load user customizations from /etc/hirte/{hirte|agent}.conf and overwrite updated values in the configuration hash map
    3)Load user customizations files from /etc/hirte/{hirte|agent}.conf.d/ by alphabetical order and overwrite updated values in the configuration hash map
    4)Check if all required options have a valid value

Fixes: eclipse-bluechi#148
Signed-off-by: Artiom Divak adivak@redhat.com
ArtiomDivak added a commit to ArtiomDivak/BlueChi that referenced this issue Mar 27, 2023
This is a follow-up of eclipse-bluechi#147 where it's suggested to use /etc/hirte/hirte.conf and /etc/hirte/agent.conf as configuration files, which could be modified by users to specify custom options.

But for automation it's not easy to parse current configuration file and save a new one with modified values, it would be much easier to use conf.d directory with custom user configuration files.

Here is the suggestion for the whole configuration files lineup for hirte manager:

    /usr/share/hirte/config/hirte-default.conf
        The base configuration file provided project defaults, which should not be modified by users
    /etc/hirte/hirte.conf
        The configurations file, where users can modified default values
    /etc/hirte/hirte.conf.d/
        Configuration directory where users might insert a configuration file (for example 99-custom-logging.conf)
        Only files with .conf suffix are used to load configuration changes
        Files in this directory are loaded in alphabetical order, so it's suggested to use number prefix to ease understanding of loading (for example 95-my-manager.conf and 99-custom-logging.conf)

Similar structure should be used also for hirte-agent:

    /usr/share/hirte-agent/config/hirte-default.conf
    /etc/hirte/agent.conf
    /etc/hirte/agent.conf.d/

Using above configuration files structure should also change the order of loading configurations files during hirte/hirte-agent startup:

    1)Load the default configuration values from /usr/share and store them to the configuration hash map
    2)Load user customizations from /etc/hirte/{hirte|agent}.conf and overwrite updated values in the configuration hash map
    3)Load user customizations files from /etc/hirte/{hirte|agent}.conf.d/ by alphabetical order and overwrite updated values in the configuration hash map
    4)Check if all required options have a valid value

Fixes: eclipse-bluechi#148
Signed-off-by: Artiom Divak adivak@redhat.com
ArtiomDivak added a commit to ArtiomDivak/BlueChi that referenced this issue Mar 27, 2023
This is a follow-up of eclipse-bluechi#147 where it's suggested to use /etc/hirte/hirte.conf and /etc/hirte/agent.conf as configuration files, which could be modified by users to specify custom options.

But for automation it's not easy to parse current configuration file and save a new one with modified values, it would be much easier to use conf.d directory with custom user configuration files.

Here is the suggestion for the whole configuration files lineup for hirte manager:

    /usr/share/hirte/config/hirte-default.conf
        The base configuration file provided project defaults, which should not be modified by users
    /etc/hirte/hirte.conf
        The configurations file, where users can modified default values
    /etc/hirte/hirte.conf.d/
        Configuration directory where users might insert a configuration file (for example 99-custom-logging.conf)
        Only files with .conf suffix are used to load configuration changes
        Files in this directory are loaded in alphabetical order, so it's suggested to use number prefix to ease understanding of loading (for example 95-my-manager.conf and 99-custom-logging.conf)

Similar structure should be used also for hirte-agent:

    /usr/share/hirte-agent/config/hirte-default.conf
    /etc/hirte/agent.conf
    /etc/hirte/agent.conf.d/

Using above configuration files structure should also change the order of loading configurations files during hirte/hirte-agent startup:

    1)Load the default configuration values from /usr/share and store them to the configuration hash map
    2)Load user customizations from /etc/hirte/{hirte|agent}.conf and overwrite updated values in the configuration hash map
    3)Load user customizations files from /etc/hirte/{hirte|agent}.conf.d/ by alphabetical order and overwrite updated values in the configuration hash map
    4)Check if all required options have a valid value

Fixes: eclipse-bluechi#148
Signed-off-by: Artiom Divak adivak@redhat.com
ArtiomDivak added a commit to ArtiomDivak/BlueChi that referenced this issue Mar 27, 2023
This is a follow-up of eclipse-bluechi#147 where it's suggested to use /etc/hirte/hirte.conf and /etc/hirte/agent.conf as configuration files, which could be modified by users to specify custom options.

But for automation it's not easy to parse current configuration file and save a new one with modified values, it would be much easier to use conf.d directory with custom user configuration files.

Here is the suggestion for the whole configuration files lineup for hirte manager:

    /usr/share/hirte/config/hirte-default.conf
        The base configuration file provided project defaults, which should not be modified by users
    /etc/hirte/hirte.conf
        The configurations file, where users can modified default values
    /etc/hirte/hirte.conf.d/
        Configuration directory where users might insert a configuration file (for example 99-custom-logging.conf)
        Only files with .conf suffix are used to load configuration changes
        Files in this directory are loaded in alphabetical order, so it's suggested to use number prefix to ease understanding of loading (for example 95-my-manager.conf and 99-custom-logging.conf)

Similar structure should be used also for hirte-agent:

    /usr/share/hirte-agent/config/hirte-default.conf
    /etc/hirte/agent.conf
    /etc/hirte/agent.conf.d/

Using above configuration files structure should also change the order of loading configurations files during hirte/hirte-agent startup:

    1)Load the default configuration values from /usr/share and store them to the configuration hash map
    2)Load user customizations from /etc/hirte/{hirte|agent}.conf and overwrite updated values in the configuration hash map
    3)Load user customizations files from /etc/hirte/{hirte|agent}.conf.d/ by alphabetical order and overwrite updated values in the configuration hash map
    4)Check if all required options have a valid value

Fixes: eclipse-bluechi#148
Signed-off-by: Artiom Divak adivak@redhat.com
ArtiomDivak added a commit to ArtiomDivak/BlueChi that referenced this issue Mar 27, 2023
This is a follow-up of eclipse-bluechi#147 where it's suggested to use /etc/hirte/hirte.conf and /etc/hirte/agent.conf as configuration files, which could be modified by users to specify custom options.

But for automation it's not easy to parse current configuration file and save a new one with modified values, it would be much easier to use conf.d directory with custom user configuration files.

Here is the suggestion for the whole configuration files lineup for hirte manager:

    /usr/share/hirte/config/hirte-default.conf
        The base configuration file provided project defaults, which should not be modified by users
    /etc/hirte/hirte.conf
        The configurations file, where users can modified default values
    /etc/hirte/hirte.conf.d/
        Configuration directory where users might insert a configuration file (for example 99-custom-logging.conf)
        Only files with .conf suffix are used to load configuration changes
        Files in this directory are loaded in alphabetical order, so it's suggested to use number prefix to ease understanding of loading (for example 95-my-manager.conf and 99-custom-logging.conf)

Similar structure should be used also for hirte-agent:

    /usr/share/hirte-agent/config/hirte-default.conf
    /etc/hirte/agent.conf
    /etc/hirte/agent.conf.d/

Using above configuration files structure should also change the order of loading configurations files during hirte/hirte-agent startup:

    1)Load the default configuration values from /usr/share and store them to the configuration hash map
    2)Load user customizations from /etc/hirte/{hirte|agent}.conf and overwrite updated values in the configuration hash map
    3)Load user customizations files from /etc/hirte/{hirte|agent}.conf.d/ by alphabetical order and overwrite updated values in the configuration hash map
    4)Check if all required options have a valid value

Fixes: eclipse-bluechi#148
Signed-off-by: Artiom Divak adivak@redhat.com
ArtiomDivak added a commit to ArtiomDivak/BlueChi that referenced this issue Mar 27, 2023
This is a follow-up of eclipse-bluechi#147 where it's suggested to use /etc/hirte/hirte.conf and /etc/hirte/agent.conf as configuration files, which could be modified by users to specify custom options.

But for automation it's not easy to parse current configuration file and save a new one with modified values, it would be much easier to use conf.d directory with custom user configuration files.

Here is the suggestion for the whole configuration files lineup for hirte manager:

    /usr/share/hirte/config/hirte-default.conf
        The base configuration file provided project defaults, which should not be modified by users
    /etc/hirte/hirte.conf
        The configurations file, where users can modified default values
    /etc/hirte/hirte.conf.d/
        Configuration directory where users might insert a configuration file (for example 99-custom-logging.conf)
        Only files with .conf suffix are used to load configuration changes
        Files in this directory are loaded in alphabetical order, so it's suggested to use number prefix to ease understanding of loading (for example 95-my-manager.conf and 99-custom-logging.conf)

Similar structure should be used also for hirte-agent:

    /usr/share/hirte-agent/config/hirte-default.conf
    /etc/hirte/agent.conf
    /etc/hirte/agent.conf.d/

Using above configuration files structure should also change the order of loading configurations files during hirte/hirte-agent startup:

    1)Load the default configuration values from /usr/share and store them to the configuration hash map
    2)Load user customizations from /etc/hirte/{hirte|agent}.conf and overwrite updated values in the configuration hash map
    3)Load user customizations files from /etc/hirte/{hirte|agent}.conf.d/ by alphabetical order and overwrite updated values in the configuration hash map
    4)Check if all required options have a valid value

Fixes: eclipse-bluechi#148
Signed-off-by: Artiom Divak adivak@redhat.com
ArtiomDivak added a commit to ArtiomDivak/BlueChi that referenced this issue Mar 27, 2023
This is a follow-up of eclipse-bluechi#147 where it's suggested to use /etc/hirte/hirte.conf and /etc/hirte/agent.conf as configuration files, which could be modified by users to specify custom options.

But for automation it's not easy to parse current configuration file and save a new one with modified values, it would be much easier to use conf.d directory with custom user configuration files.

Here is the suggestion for the whole configuration files lineup for hirte manager:

    /usr/share/hirte/config/hirte-default.conf
        The base configuration file provided project defaults, which should not be modified by users
    /etc/hirte/hirte.conf
        The configurations file, where users can modified default values
    /etc/hirte/hirte.conf.d/
        Configuration directory where users might insert a configuration file (for example 99-custom-logging.conf)
        Only files with .conf suffix are used to load configuration changes
        Files in this directory are loaded in alphabetical order, so it's suggested to use number prefix to ease understanding of loading (for example 95-my-manager.conf and 99-custom-logging.conf)

Similar structure should be used also for hirte-agent:

    /usr/share/hirte-agent/config/hirte-default.conf
    /etc/hirte/agent.conf
    /etc/hirte/agent.conf.d/

Using above configuration files structure should also change the order of loading configurations files during hirte/hirte-agent startup:

    1)Load the default configuration values from /usr/share and store them to the configuration hash map
    2)Load user customizations from /etc/hirte/{hirte|agent}.conf and overwrite updated values in the configuration hash map
    3)Load user customizations files from /etc/hirte/{hirte|agent}.conf.d/ by alphabetical order and overwrite updated values in the configuration hash map
    4)Check if all required options have a valid value

Fixes: eclipse-bluechi#148
Signed-off-by: Artiom Divak adivak@redhat.com
ArtiomDivak added a commit to ArtiomDivak/BlueChi that referenced this issue Mar 27, 2023
This is a follow-up of eclipse-bluechi#147 where it's suggested to use /etc/hirte/hirte.conf and /etc/hirte/agent.conf as configuration files, which could be modified by users to specify custom options.

But for automation it's not easy to parse current configuration file and save a new one with modified values, it would be much easier to use conf.d directory with custom user configuration files.

Here is the suggestion for the whole configuration files lineup for hirte manager:

    /usr/share/hirte/config/hirte-default.conf
        The base configuration file provided project defaults, which should not be modified by users
    /etc/hirte/hirte.conf
        The configurations file, where users can modified default values
    /etc/hirte/hirte.conf.d/
        Configuration directory where users might insert a configuration file (for example 99-custom-logging.conf)
        Only files with .conf suffix are used to load configuration changes
        Files in this directory are loaded in alphabetical order, so it's suggested to use number prefix to ease understanding of loading (for example 95-my-manager.conf and 99-custom-logging.conf)

Similar structure should be used also for hirte-agent:

    /usr/share/hirte-agent/config/hirte-default.conf
    /etc/hirte/agent.conf
    /etc/hirte/agent.conf.d/

Using above configuration files structure should also change the order of loading configurations files during hirte/hirte-agent startup:

    1)Load the default configuration values from /usr/share and store them to the configuration hash map
    2)Load user customizations from /etc/hirte/{hirte|agent}.conf and overwrite updated values in the configuration hash map
    3)Load user customizations files from /etc/hirte/{hirte|agent}.conf.d/ by alphabetical order and overwrite updated values in the configuration hash map
    4)Check if all required options have a valid value

Fixes: eclipse-bluechi#148
Signed-off-by: Artiom Divak adivak@redhat.com
ArtiomDivak added a commit to ArtiomDivak/BlueChi that referenced this issue Mar 27, 2023
This is a follow-up of eclipse-bluechi#147 where it's suggested to use /etc/hirte/hirte.conf and /etc/hirte/agent.conf as configuration files, which could be modified by users to specify custom options.

But for automation it's not easy to parse current configuration file and save a new one with modified values, it would be much easier to use conf.d directory with custom user configuration files.

Here is the suggestion for the whole configuration files lineup for hirte manager:

    /usr/share/hirte/config/hirte-default.conf
        The base configuration file provided project defaults, which should not be modified by users
    /etc/hirte/hirte.conf
        The configurations file, where users can modified default values
    /etc/hirte/hirte.conf.d/
        Configuration directory where users might insert a configuration file (for example 99-custom-logging.conf)
        Only files with .conf suffix are used to load configuration changes
        Files in this directory are loaded in alphabetical order, so it's suggested to use number prefix to ease understanding of loading (for example 95-my-manager.conf and 99-custom-logging.conf)

Similar structure should be used also for hirte-agent:

    /usr/share/hirte-agent/config/hirte-default.conf
    /etc/hirte/agent.conf
    /etc/hirte/agent.conf.d/

Using above configuration files structure should also change the order of loading configurations files during hirte/hirte-agent startup:

    1)Load the default configuration values from /usr/share and store them to the configuration hash map
    2)Load user customizations from /etc/hirte/{hirte|agent}.conf and overwrite updated values in the configuration hash map
    3)Load user customizations files from /etc/hirte/{hirte|agent}.conf.d/ by alphabetical order and overwrite updated values in the configuration hash map
    4)Check if all required options have a valid value

Fixes: eclipse-bluechi#148
Signed-off-by: Artiom Divak adivak@redhat.com
ArtiomDivak added a commit to ArtiomDivak/BlueChi that referenced this issue Mar 27, 2023
This is a follow-up of eclipse-bluechi#147 where it's suggested to use /etc/hirte/hirte.conf and /etc/hirte/agent.conf as configuration files, which could be modified by users to specify custom options.

But for automation it's not easy to parse current configuration file and save a new one with modified values, it would be much easier to use conf.d directory with custom user configuration files.

Here is the suggestion for the whole configuration files lineup for hirte manager:

    /usr/share/hirte/config/hirte-default.conf
        The base configuration file provided project defaults, which should not be modified by users
    /etc/hirte/hirte.conf
        The configurations file, where users can modified default values
    /etc/hirte/hirte.conf.d/
        Configuration directory where users might insert a configuration file (for example 99-custom-logging.conf)
        Only files with .conf suffix are used to load configuration changes
        Files in this directory are loaded in alphabetical order, so it's suggested to use number prefix to ease understanding of loading (for example 95-my-manager.conf and 99-custom-logging.conf)

Similar structure should be used also for hirte-agent:

    /usr/share/hirte-agent/config/hirte-default.conf
    /etc/hirte/agent.conf
    /etc/hirte/agent.conf.d/

Using above configuration files structure should also change the order of loading configurations files during hirte/hirte-agent startup:

    1)Load the default configuration values from /usr/share and store them to the configuration hash map
    2)Load user customizations from /etc/hirte/{hirte|agent}.conf and overwrite updated values in the configuration hash map
    3)Load user customizations files from /etc/hirte/{hirte|agent}.conf.d/ by alphabetical order and overwrite updated values in the configuration hash map
    4)Check if all required options have a valid value

Fixes: eclipse-bluechi#148
Signed-off-by: Artiom Divak adivak@redhat.com
ArtiomDivak added a commit to ArtiomDivak/BlueChi that referenced this issue Mar 27, 2023
This is a follow-up of eclipse-bluechi#147 where it's suggested to use /etc/hirte/hirte.conf and /etc/hirte/agent.conf as configuration files, which could be modified by users to specify custom options.

But for automation it's not easy to parse current configuration file and save a new one with modified values, it would be much easier to use conf.d directory with custom user configuration files.

Here is the suggestion for the whole configuration files lineup for hirte manager:

    /usr/share/hirte/config/hirte-default.conf
        The base configuration file provided project defaults, which should not be modified by users
    /etc/hirte/hirte.conf
        The configurations file, where users can modified default values
    /etc/hirte/hirte.conf.d/
        Configuration directory where users might insert a configuration file (for example 99-custom-logging.conf)
        Only files with .conf suffix are used to load configuration changes
        Files in this directory are loaded in alphabetical order, so it's suggested to use number prefix to ease understanding of loading (for example 95-my-manager.conf and 99-custom-logging.conf)

Similar structure should be used also for hirte-agent:

    /usr/share/hirte-agent/config/hirte-default.conf
    /etc/hirte/agent.conf
    /etc/hirte/agent.conf.d/

Using above configuration files structure should also change the order of loading configurations files during hirte/hirte-agent startup:

    1)Load the default configuration values from /usr/share and store them to the configuration hash map
    2)Load user customizations from /etc/hirte/{hirte|agent}.conf and overwrite updated values in the configuration hash map
    3)Load user customizations files from /etc/hirte/{hirte|agent}.conf.d/ by alphabetical order and overwrite updated values in the configuration hash map
    4)Check if all required options have a valid value

Fixes: eclipse-bluechi#148
Signed-off-by: Artiom Divak adivak@redhat.com
ArtiomDivak added a commit to ArtiomDivak/BlueChi that referenced this issue Mar 27, 2023
This is a follow-up of eclipse-bluechi#147 where it's suggested to use /etc/hirte/hirte.conf and /etc/hirte/agent.conf as configuration files, which could be modified by users to specify custom options.

But for automation it's not easy to parse current configuration file and save a new one with modified values, it would be much easier to use conf.d directory with custom user configuration files.

Here is the suggestion for the whole configuration files lineup for hirte manager:

    /usr/share/hirte/config/hirte-default.conf
        The base configuration file provided project defaults, which should not be modified by users
    /etc/hirte/hirte.conf
        The configurations file, where users can modified default values
    /etc/hirte/hirte.conf.d/
        Configuration directory where users might insert a configuration file (for example 99-custom-logging.conf)
        Only files with .conf suffix are used to load configuration changes
        Files in this directory are loaded in alphabetical order, so it's suggested to use number prefix to ease understanding of loading (for example 95-my-manager.conf and 99-custom-logging.conf)

Similar structure should be used also for hirte-agent:

    /usr/share/hirte-agent/config/hirte-default.conf
    /etc/hirte/agent.conf
    /etc/hirte/agent.conf.d/

Using above configuration files structure should also change the order of loading configurations files during hirte/hirte-agent startup:

    1)Load the default configuration values from /usr/share and store them to the configuration hash map
    2)Load user customizations from /etc/hirte/{hirte|agent}.conf and overwrite updated values in the configuration hash map
    3)Load user customizations files from /etc/hirte/{hirte|agent}.conf.d/ by alphabetical order and overwrite updated values in the configuration hash map
    4)Check if all required options have a valid value

Fixes: eclipse-bluechi#148
Signed-off-by: Artiom Divak adivak@redhat.com
Signed-off-by: Artiom Divak <adivak@redhat.com>
ArtiomDivak added a commit to ArtiomDivak/BlueChi that referenced this issue Mar 27, 2023
This is a follow-up of eclipse-bluechi#147 where it's suggested to use /etc/hirte/hirte.conf and /etc/hirte/agent.conf as configuration files, which could be modified by users to specify custom options.

But for automation it's not easy to parse current configuration file and save a new one with modified values, it would be much easier to use conf.d directory with custom user configuration files.

Here is the suggestion for the whole configuration files lineup for hirte manager:

    /usr/share/hirte/config/hirte-default.conf
        The base configuration file provided project defaults, which should not be modified by users
    /etc/hirte/hirte.conf
        The configurations file, where users can modified default values
    /etc/hirte/hirte.conf.d/
        Configuration directory where users might insert a configuration file (for example 99-custom-logging.conf)
        Only files with .conf suffix are used to load configuration changes
        Files in this directory are loaded in alphabetical order, so it's suggested to use number prefix to ease understanding of loading (for example 95-my-manager.conf and 99-custom-logging.conf)

Similar structure should be used also for hirte-agent:

    /usr/share/hirte-agent/config/hirte-default.conf
    /etc/hirte/agent.conf
    /etc/hirte/agent.conf.d/

Using above configuration files structure should also change the order of loading configurations files during hirte/hirte-agent startup:

    1)Load the default configuration values from /usr/share and store them to the configuration hash map
    2)Load user customizations from /etc/hirte/{hirte|agent}.conf and overwrite updated values in the configuration hash map
    3)Load user customizations files from /etc/hirte/{hirte|agent}.conf.d/ by alphabetical order and overwrite updated values in the configuration hash map
    4)Check if all required options have a valid value

Fixes: eclipse-bluechi#148
Signed-off-by: Artiom Divak adivak@redhat.com
Signed-off-by: Artiom Divak <adivak@redhat.com>
ArtiomDivak added a commit to ArtiomDivak/BlueChi that referenced this issue Mar 27, 2023
This is a follow-up of eclipse-bluechi#147 where it's suggested to use /etc/hirte/hirte.conf and /etc/hirte/agent.conf as configuration files, which could be modified by users to specify custom options.

But for automation it's not easy to parse current configuration file and save a new one with modified values, it would be much easier to use conf.d directory with custom user configuration files.

Here is the suggestion for the whole configuration files lineup for hirte manager:

    /usr/share/hirte/config/hirte-default.conf
        The base configuration file provided project defaults, which should not be modified by users
    /etc/hirte/hirte.conf
        The configurations file, where users can modified default values
    /etc/hirte/hirte.conf.d/
        Configuration directory where users might insert a configuration file (for example 99-custom-logging.conf)
        Only files with .conf suffix are used to load configuration changes
        Files in this directory are loaded in alphabetical order, so it's suggested to use number prefix to ease understanding of loading (for example 95-my-manager.conf and 99-custom-logging.conf)

Similar structure should be used also for hirte-agent:

    /usr/share/hirte-agent/config/hirte-default.conf
    /etc/hirte/agent.conf
    /etc/hirte/agent.conf.d/

Using above configuration files structure should also change the order of loading configurations files during hirte/hirte-agent startup:

    1)Load the default configuration values from /usr/share and store them to the configuration hash map
    2)Load user customizations from /etc/hirte/{hirte|agent}.conf and overwrite updated values in the configuration hash map
    3)Load user customizations files from /etc/hirte/{hirte|agent}.conf.d/ by alphabetical order and overwrite updated values in the configuration hash map
    4)Check if all required options have a valid value

Fixes: eclipse-bluechi#148
Signed-off-by: Artiom Divak adivak@redhat.com
Signed-off-by: Artiom Divak <adivak@redhat.com>
ArtiomDivak added a commit to ArtiomDivak/BlueChi that referenced this issue Mar 28, 2023
This is a follow-up of eclipse-bluechi#147 where it's suggested to use /etc/hirte/hirte.conf and /etc/hirte/agent.conf as configuration files, which could be modified by users to specify custom options.

But for automation it's not easy to parse current configuration file and save a new one with modified values, it would be much easier to use conf.d directory with custom user configuration files.

Here is the suggestion for the whole configuration files lineup for hirte manager:

    /usr/share/hirte/config/hirte-default.conf
        The base configuration file provided project defaults, which should not be modified by users
    /etc/hirte/hirte.conf
        The configurations file, where users can modified default values
    /etc/hirte/hirte.conf.d/
        Configuration directory where users might insert a configuration file (for example 99-custom-logging.conf)
        Only files with .conf suffix are used to load configuration changes
        Files in this directory are loaded in alphabetical order, so it's suggested to use number prefix to ease understanding of loading (for example 95-my-manager.conf and 99-custom-logging.conf)

Similar structure should be used also for hirte-agent:

    /usr/share/hirte-agent/config/hirte-default.conf
    /etc/hirte/agent.conf
    /etc/hirte/agent.conf.d/

Using above configuration files structure should also change the order of loading configurations files during hirte/hirte-agent startup:

    1)Load the default configuration values from /usr/share and store them to the configuration hash map
    2)Load user customizations from /etc/hirte/{hirte|agent}.conf and overwrite updated values in the configuration hash map
    3)Load user customizations files from /etc/hirte/{hirte|agent}.conf.d/ by alphabetical order and overwrite updated values in the configuration hash map
    4)Check if all required options have a valid value

Fixes: eclipse-bluechi#148
Signed-off-by: Artiom Divak adivak@redhat.com
Signed-off-by: Artiom Divak <adivak@redhat.com>
ArtiomDivak added a commit to ArtiomDivak/BlueChi that referenced this issue Mar 28, 2023
This is a follow-up of eclipse-bluechi#147 where it's suggested to use /etc/hirte/hirte.conf and /etc/hirte/agent.conf as configuration files, which could be modified by users to specify custom options.

But for automation it's not easy to parse current configuration file and save a new one with modified values, it would be much easier to use conf.d directory with custom user configuration files.

Here is the suggestion for the whole configuration files lineup for hirte manager:

    /usr/share/hirte/config/hirte-default.conf
        The base configuration file provided project defaults, which should not be modified by users
    /etc/hirte/hirte.conf
        The configurations file, where users can modified default values
    /etc/hirte/hirte.conf.d/
        Configuration directory where users might insert a configuration file (for example 99-custom-logging.conf)
        Only files with .conf suffix are used to load configuration changes
        Files in this directory are loaded in alphabetical order, so it's suggested to use number prefix to ease understanding of loading (for example 95-my-manager.conf and 99-custom-logging.conf)

Similar structure should be used also for hirte-agent:

    /usr/share/hirte-agent/config/hirte-default.conf
    /etc/hirte/agent.conf
    /etc/hirte/agent.conf.d/

Using above configuration files structure should also change the order of loading configurations files during hirte/hirte-agent startup:

    1)Load the default configuration values from /usr/share and store them to the configuration hash map
    2)Load user customizations from /etc/hirte/{hirte|agent}.conf and overwrite updated values in the configuration hash map
    3)Load user customizations files from /etc/hirte/{hirte|agent}.conf.d/ by alphabetical order and overwrite updated values in the configuration hash map
    4)Check if all required options have a valid value

Fixes: eclipse-bluechi#148
Signed-off-by: Artiom Divak adivak@redhat.com
Signed-off-by: Artiom Divak <adivak@redhat.com>
ArtiomDivak added a commit to ArtiomDivak/BlueChi that referenced this issue Mar 28, 2023
This is a follow-up of eclipse-bluechi#147 where it's suggested to use /etc/hirte/hirte.conf and /etc/hirte/agent.conf as configuration files, which could be modified by users to specify custom options.

But for automation it's not easy to parse current configuration file and save a new one with modified values, it would be much easier to use conf.d directory with custom user configuration files.

Here is the suggestion for the whole configuration files lineup for hirte manager:

    /usr/share/hirte/config/hirte-default.conf
        The base configuration file provided project defaults, which should not be modified by users
    /etc/hirte/hirte.conf
        The configurations file, where users can modified default values
    /etc/hirte/hirte.conf.d/
        Configuration directory where users might insert a configuration file (for example 99-custom-logging.conf)
        Only files with .conf suffix are used to load configuration changes
        Files in this directory are loaded in alphabetical order, so it's suggested to use number prefix to ease understanding of loading (for example 95-my-manager.conf and 99-custom-logging.conf)

Similar structure should be used also for hirte-agent:

    /usr/share/hirte-agent/config/hirte-default.conf
    /etc/hirte/agent.conf
    /etc/hirte/agent.conf.d/

Using above configuration files structure should also change the order of loading configurations files during hirte/hirte-agent startup:

    1)Load the default configuration values from /usr/share and store them to the configuration hash map
    2)Load user customizations from /etc/hirte/{hirte|agent}.conf and overwrite updated values in the configuration hash map
    3)Load user customizations files from /etc/hirte/{hirte|agent}.conf.d/ by alphabetical order and overwrite updated values in the configuration hash map
    4)Check if all required options have a valid value

Fixes: eclipse-bluechi#148
Signed-off-by: Artiom Divak adivak@redhat.com
Signed-off-by: Artiom Divak <adivak@redhat.com>
ArtiomDivak added a commit to ArtiomDivak/BlueChi that referenced this issue Mar 28, 2023
This is a follow-up of eclipse-bluechi#147 where it's suggested to use /etc/hirte/hirte.conf and /etc/hirte/agent.conf as configuration files, which could be modified by users to specify custom options.

But for automation it's not easy to parse current configuration file and save a new one with modified values, it would be much easier to use conf.d directory with custom user configuration files.

Here is the suggestion for the whole configuration files lineup for hirte manager:

    /usr/share/hirte/config/hirte-default.conf
        The base configuration file provided project defaults, which should not be modified by users
    /etc/hirte/hirte.conf
        The configurations file, where users can modified default values
    /etc/hirte/hirte.conf.d/
        Configuration directory where users might insert a configuration file (for example 99-custom-logging.conf)
        Only files with .conf suffix are used to load configuration changes
        Files in this directory are loaded in alphabetical order, so it's suggested to use number prefix to ease understanding of loading (for example 95-my-manager.conf and 99-custom-logging.conf)

Similar structure should be used also for hirte-agent:

    /usr/share/hirte-agent/config/hirte-default.conf
    /etc/hirte/agent.conf
    /etc/hirte/agent.conf.d/

Using above configuration files structure should also change the order of loading configurations files during hirte/hirte-agent startup:

    1)Load the default configuration values from /usr/share and store them to the configuration hash map
    2)Load user customizations from /etc/hirte/{hirte|agent}.conf and overwrite updated values in the configuration hash map
    3)Load user customizations files from /etc/hirte/{hirte|agent}.conf.d/ by alphabetical order and overwrite updated values in the configuration hash map
    4)Check if all required options have a valid value

Fixes: eclipse-bluechi#148
Signed-off-by: Artiom Divak adivak@redhat.com
Signed-off-by: Artiom Divak <adivak@redhat.com>
mwperina pushed a commit to ArtiomDivak/BlueChi that referenced this issue Mar 29, 2023
This is a follow-up of eclipse-bluechi#147 where it's suggested to use /etc/hirte/hirte.conf and /etc/hirte/agent.conf as configuration files, which could be modified by users to specify custom options.

But for automation it's not easy to parse current configuration file and save a new one with modified values, it would be much easier to use conf.d directory with custom user configuration files.

Here is the suggestion for the whole configuration files lineup for hirte manager:

    /usr/share/hirte/config/hirte-default.conf
        The base configuration file provided project defaults, which should not be modified by users
    /etc/hirte/hirte.conf
        The configurations file, where users can modified default values
    /etc/hirte/hirte.conf.d/
        Configuration directory where users might insert a configuration file (for example 99-custom-logging.conf)
        Only files with .conf suffix are used to load configuration changes
        Files in this directory are loaded in alphabetical order, so it's suggested to use number prefix to ease understanding of loading (for example 95-my-manager.conf and 99-custom-logging.conf)

Similar structure should be used also for hirte-agent:

    /usr/share/hirte-agent/config/hirte-default.conf
    /etc/hirte/agent.conf
    /etc/hirte/agent.conf.d/

Using above configuration files structure should also change the order of loading configurations files during hirte/hirte-agent startup:

    1)Load the default configuration values from /usr/share and store them to the configuration hash map
    2)Load user customizations from /etc/hirte/{hirte|agent}.conf and overwrite updated values in the configuration hash map
    3)Load user customizations files from /etc/hirte/{hirte|agent}.conf.d/ by alphabetical order and overwrite updated values in the configuration hash map
    4)Check if all required options have a valid value

Fixes: eclipse-bluechi#148
Signed-off-by: Artiom Divak adivak@redhat.com
Signed-off-by: Artiom Divak <adivak@redhat.com>
ArtiomDivak added a commit that referenced this issue Mar 30, 2023
This is a follow-up of #147 where it's suggested to use /etc/hirte/hirte.conf and /etc/hirte/agent.conf as configuration files, which could be modified by users to specify custom options.

But for automation it's not easy to parse current configuration file and save a new one with modified values, it would be much easier to use conf.d directory with custom user configuration files.

Here is the suggestion for the whole configuration files lineup for hirte manager:

    /usr/share/hirte/config/hirte-default.conf
        The base configuration file provided project defaults, which should not be modified by users
    /etc/hirte/hirte.conf
        The configurations file, where users can modified default values
    /etc/hirte/hirte.conf.d/
        Configuration directory where users might insert a configuration file (for example 99-custom-logging.conf)
        Only files with .conf suffix are used to load configuration changes
        Files in this directory are loaded in alphabetical order, so it's suggested to use number prefix to ease understanding of loading (for example 95-my-manager.conf and 99-custom-logging.conf)

Similar structure should be used also for hirte-agent:

    /usr/share/hirte-agent/config/hirte-default.conf
    /etc/hirte/agent.conf
    /etc/hirte/agent.conf.d/

Using above configuration files structure should also change the order of loading configurations files during hirte/hirte-agent startup:

    1)Load the default configuration values from /usr/share and store them to the configuration hash map
    2)Load user customizations from /etc/hirte/{hirte|agent}.conf and overwrite updated values in the configuration hash map
    3)Load user customizations files from /etc/hirte/{hirte|agent}.conf.d/ by alphabetical order and overwrite updated values in the configuration hash map
    4)Check if all required options have a valid value

Fixes: #148 

Signed-off-by: Artiom Divak <adivak@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
jira Issues that are synced to Jira
Projects
None yet
3 participants