Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-9946

scheduled_task : password does not support sensitive

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Normal
    • Resolution: Unresolved
    • None
    • None
    • scheduled_task, supported
    • None
    • Hide

      Sensitive type working for password in scheduled_task

      Show
      Sensitive type working for password in scheduled_task
    • Needs Assessment
    • Needs Assessment

    Description

      Basic Info
      Module Version: 2.0.0
      Puppet Version: 6.4.2
      OS Name/Version: Windows Server 2016

      Customer would like to use sensitive type for password data which is taken from Hiera with integration including 3rd party password management.

      Desired Behavior:

      Sensitive datatype working for password field on schedule_task.

      Actual Behavior:

      When attempting to use Sensitive type, an error is thrown instead of the expected outcome

      Unable to mark 'password' as sensitive: password is a parameter and not a property, and cannot be automatically redacted.

      Example code used:

      Scheduled_task {
        ensure   => present,
        enabled  => true,
        user     => $scheduledtaskuser,
        password => $scheduledtaskpassword,
        provider => 'win32_taskscheduler',
        trigger  => undef,
      }
       
      $scheduledtasks.each | $key,$values | {
        scheduled_task { $key:
          command     => $values['command'],
          working_dir => $values['working_dir'],
          trigger     => $values['trigger'],
        }
      }

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            paul.reed Paul Reed
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Zendesk Support