Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-3020

Add action for deleting settings from puppet config

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: PUP 3.6.2
    • Fix Version/s: PUP 5.4.0
    • Component/s: Modules
    • Labels:
      None
    • Template:
    • Acceptance Criteria:
      Hide
      • It should be possible to delete/unset a setting from puppet.conf, so that the default value defined in code is used.
      • Deleting a setting whose value is not set should not produce an error. It should be like "ensure => absent".
      Show
      It should be possible to delete/unset a setting from puppet.conf, so that the default value defined in code is used. Deleting a setting whose value is not set should not produce an error. It should be like "ensure => absent".
    • Sub-team:
    • Team:
      Platform Core
    • Story Points:
      2
    • Sprint:
      Platform Core KANBAN
    • Release Notes:
      New Feature
    • Release Notes Summary:
      Hide
      Puppet settings can be deleted from the puppet.conf file using 'puppet config delete'

      Example:
      'puppet config delete <setting> --section <section>'
      Show
      Puppet settings can be deleted from the puppet.conf file using 'puppet config delete' Example: 'puppet config delete <setting> --section <section>'

      Description

      Updated

      The puppet config app cannot delete settings it previously set. Propose the following syntax:

      puppet config delete <setting> --section <section>
      

      The setting is removed from the specified section. Specifying a section is required. Trying to delete a setting that hasn't been set should not be an error (exit code should be 0 warning that the setting wasn't there is fine).

      puppet config delete should show information about the setting that was deleted (including the value of the setting, and the section name).

      Adding to and deleting from multivalued settings is being moved to a separate ticket.

      Original Description

      The puppet config face has facility for creating settings, but not removing or updating lists of settings.

      From the PR:

      puppet config add [name] [value] will add to a comma separated list.
        `puppet config add reports store` -- (adds store to the reports list)
      puppet config del [name] [value] will remove from a comma separated list
        `puppet config del reports store`  -- (deletes store from the list)
      puppet config del [name] will remove a setting from puppet.conf
        `puppet config del reporturl` -- (removes reporturl from puppet.conf)
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              melissa Melissa Stone
              Reporter:
              ben.ford Ben Ford
              QA Contact:
              Eric Thompson Eric Thompson
              Votes:
              1 Vote for this issue
              Watchers:
              10 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support