Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Overview

This article provides a guideline how to handle:

  1. config file rewrites, like for /etc/dhcp/dhcpd.conf
  2. updates, when special actions are required during update process, like: changing config files, changing .env file, run some artisan commands, or update DB schema

 

Addresses Ticket:

Jira Legacy
serverJIRA
columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
serverId5c52f5af-e424-3d08-8ebf-d127b8b2ab90
keyLAR-148

Config File Handling Rules

  1. Never rewrite config files from other packages, like /etc/dhcp/dhcpd.conf
    Instead provide a new config file, like /etc/dhcp/nmsprime/dhcpd.conf
    and document how to include this file, like: "Add following line to /etc/dhcp/dhcpd.conf":

    Code Block
    include "/etc/dhcp/nmsprime/dhcpd.conf";


  2. If possible use the conf.d/* directories from other packages, like /etc/httpd/conf.d
    Do not rewrite other config file packages!
  3. Provide (.env) default config files for each module, in
    /etc/nmsprime/

    TODOPatrick Reichel – Implement & Test & Document
    Create default file for each module in Install folder

 

Note: When RPM updates are provided with newer config file versions, yum will automatically prompt a message and create a *.rpmnew config file. This will advise the user to take care of new configuration stuff.