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

Add a new `alias` setting type(AliasSetting?)

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 6.20.0, PUP 7.3.0
    • Component/s: None
    • Labels:
    • Template:
    • Team:
      Night's Watch
    • Story Points:
      5
    • Sprint:
      NW - 2020-12-09, NW - 2020-12-23, NW - 2021-01-20
    • Release Notes:
      Enhancement
    • Release Notes Summary:
      Hide
      Added a new setting type(`alias`) to ease the addition of new settings that will eventually replace other settings.
      `serverport` setting was made as an alias for `masterport`
      Show
      Added a new setting type(`alias`) to ease the addition of new settings that will eventually replace other settings. `serverport` setting was made as an alias for `masterport`
    • QA Risk Assessment:
      Needs Assessment

      Description

      For cases when a setting name is changed (and possible other cases) it would be useful to have an `alias` setting type(AliasSetting?) which should redirect all methods to the `aliased` setting.
      It could look like bellow:

          :serverport => {
            :default    => 8140,
            :desc       => "The default port puppet subcommands use to communicate
            with Puppet Server. (eg `puppet facts upload`, `puppet agent`). May be
            overridden by more specific settings (see `ca_port`, `report_port`).",
            end
          },
          :masterport => {
            :type     => :alias
            :value     => :serverport 
            end
          },
      
      

        Attachments

          Activity

            People

            Assignee:
            gheorghe.popescu Gheorghe Popescu
            Reporter:
            ciprian.badescu Ciprian Badescu
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support