Details
-
Bug
-
Status: Open
-
Normal
-
Resolution: Unresolved
-
None
-
None
-
None
-
-
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'],
|
}
|
}
|