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

mark configuration files in confluent-kafka RPM SPEC file

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Won't Fix
    • 1.1.0
    • None
    • packaging
    • 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

            Unassigned Unassigned
            Fabisiak Robert Fabisiak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: