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

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

    XMLWordPrintable

Details

    • Task
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • None
    • PUP 6.20.0, PUP 7.3.0
    • None
    • Night's Watch
    • 5
    • NW - 2020-12-09, NW - 2020-12-23, NW - 2021-01-20
    • Enhancement
    • 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`
    • 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

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

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support