Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-7159

mark configuration files in confluent-kafka RPM SPEC file

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Won't Fix
    • Affects Version/s: 1.1.0
    • Fix Version/s: None
    • Component/s: packaging
    • Labels:
    • Environment:
      RHEL7

      Description

      All configuration files in kafka RPM SPEC file should be marked with %config prefix in %files section.

      This would prevent overwrites during install/upgrade and uninstall operations

      https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html-single/rpm_packaging_guide/index#files

      It's especially important to save configuration during package upgrades.

      Section to change in SPEC file:

      %files
      %config(noreplace) %{_sysconfdir}/kafka/*.conf
      %config(noreplace) %{_sysconfdir}/kafka/*.properties
      

      It would also be good to mark documentation files with %doc

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Fabisiak Robert Fabisiak
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: