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

Backport sensitive DSL method PUP-8514

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 5.5.17
    • Component/s: None
    • Labels:
      None
    • Template:
      PUP Bug Template
    • Acceptance Criteria:
      Hide

      Should have the same behavior as the 6.0.0+ versions.

      Install 1.0.1 yumrepo_core on the master
      Add yumrepo resource:

      yumrepo { 'puppetrepo-products':
        ensure    => 'present',
        name      => 'puppetrepo-products',
        password => 'password',
        descr     => 'Puppet Labs Products El 7 - $basearch',
        baseurl   => 'http://myownmirror',
        gpgkey    => 'http://myownmirror',
        enabled   => '1',
        gpgcheck  => '1',
        target    => '/etc/yum.repo.d/puppetlabs.repo',
      }
      

      Run redhat/centos agent
      Make sure yumrepo resource is created in /etc/yum
      Make sure password is set correctly in the repo config, and is not written to the console (even at debug level)

      Show
      Should have the same behavior as the 6.0.0+ versions. Install 1.0.1 yumrepo_core on the master Add yumrepo resource: yumrepo { 'puppetrepo-products' : ensure => 'present' , name => 'puppetrepo-products' , password => 'password' , descr => 'Puppet Labs Products El 7 - $basearch' , baseurl => 'http://myownmirror' , gpgkey => 'http://myownmirror' , enabled => '1' , gpgcheck => '1' , target => '/etc/yum.repo.d/puppetlabs.repo' , } Run redhat/centos agent Make sure yumrepo resource is created in /etc/yum Make sure password is set correctly in the repo config, and is not written to the console (even at debug level)
    • Team:
      Coremunity
    • Sprint:
      Platform Core KANBAN
    • Method Found:
      Needs Assessment
    • Release Notes:
      New Feature
    • Release Notes Summary:
      Parameters can now be marked sensitive at the class level rather then just the instance level.
    • QA Risk Assessment:
      Needs Assessment

      Description

      To use the sensitive DSL method introduced in PUP-8514, you need to be on Puppet 6 or later. This is a problem if you're a module author and want to support pre-6 agents. For example the puppet_agent module used to upgrade agents relies on the yumrepo resource type, but the yumrepo_core module cannot be run on pre-6 agents.

      This ticket is to backport the PUP-8514 to 5.5.x.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kris.bosland Kris Bosland
              Reporter:
              josh Josh Cooper
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support