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

scheduled_task : user attribute not idempotent

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: scheduled_task, windows
    • Labels:
      None
    • Environment:

      PE 2018.1
      Windows 2016
      puppetlabs-scheduled_task --version 0.3.0

    • Template:
      MODULES Bug Template
    • Team:
      Windows
    • Story Points:
      1
    • Sprint:
      Windows 2018-08-22
    • Method Found:
      Customer Feedback
    • QA Risk Assessment:
      Needs Assessment

      Description

      Basic Info
      Module Version: 0.3.0
      Puppet Version: PE 2018.1
      OS Name/Version: Windows 2016

      Describe your issue in as much detail as possible...

      Every time the agent runs we are seeing a corrective action:

      C:\>puppet agent -t
      Info: Using configured environment 'production'
      Info: Retrieving pluginfacts
      Info: Retrieving plugin
      Info: Retrieving locales
      Info: Loading facts
      Info: Caching catalog for pe-2018-agent-win2016                                                                                                                                                                                                
      Info: Applying configuration version '1533683976'                                                                                                                                                                                                
      Notice: /Stage[main]/Main/Node[pe-2018-agent-win2016]/Scheduled_task[test_task]/user: user changed 'SYSTEM' to 'test_user'                                                                                                                     
      Notice: Applied catalog in 1.88 seconds    
      

      Given:

      scheduled_task { 'test_task': 
        ensure => 'present', 
        command => "${::system32}\\WindowsPowerShell\\v1.0\\powershell.exe", 
        enabled => true , 
        trigger => [{'schedule' => 'boot'}], 
        user     => 'test_user',
        password => '!Q@W3e4r',
      }
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              tom.kishel Thomas Kishel
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support