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

Backport sensitive DSL method PUP-8514

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • None
    • PUP 5.5.17
    • None
    • None
    • 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)
    • Coremunity
    • Platform Core KANBAN
    • Needs Assessment
    • New Feature
    • Parameters can now be marked sensitive at the class level rather then just the instance level.
    • 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

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

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support