Issue #22827 has been updated by Josh Cooper. Status changed from Unreviewed to Accepted Affected Puppet version set to 3.3.0
The scheduled_task type should validate that the password property is required when specifying a user other than System (aka LocalSystem, S-1-5-18). ---------------------------------------- Bug #22827: Lack of error information using scheduled_task on windows https://projects.puppetlabs.com/issues/22827#change-98737 * Author: Gonzalo Foligna * Status: Accepted * Priority: Normal * Assignee: * Category: windows * Target version: * Affected Puppet version: 3.3.0 * Keywords: windows server 2008 scheduled_task password unknown error * Branch: ---------------------------------------- I'm using scheduled_task on Windows Server 2008 R2. Specifying a different user (to avoid using "SYSTEM") but not defining 'password' returns error but without any sign of missing that attribute. Versions: Ruby = 1.9.1 win32_taskscheduler gem = 0.2.2 Puppet = 3.3.1 (couldn't find the stable version on the "Affected Puppet Version" field here) Manifest: scheduled_task { 'script-run': name => 'dll-ver.bat hourly run', ensure => present, enabled => true, command => "C:/Windows/System32/cmd.exe", arguments => "/C \"${dirpath}/dll-ver.bat\"", user => "Administrator", trigger => { schedule => daily, start_time => '10:00', }, Agent run: 2013-10-10 11:35:36 -0300 /Stage[main]/Dllversion/Scheduled_task[script-run]/user (notice): user changed '' to 'Administrator' 2013-10-10 11:35:36 -0300 /Stage[main]/Dllversion/Scheduled_task[script-run] (err): Could not evaluate: The operation completed successfully. C:/Program Files (x86)/Puppet Labs/Puppet/sys/ruby/lib/ruby/gems/1.9.1/gems/win32-taskscheduler-0.2.2/lib/win32/taskscheduler.rb:376:in `save' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/provider/scheduled_task/win32_taskscheduler.rb:234:in `flush' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/type.rb:963:in `flush' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/transaction/resource_harness.rb:144:in `evaluate' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/transaction.rb:161:in `apply' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/transaction.rb:174:in `eval_resource' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/transaction.rb:104:in `call' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/transaction.rb:104:in `block (2 levels) in evaluate' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util.rb:354:in `block in thinmark' C:/Program Files (x86)/Puppet Labs/Puppet/sys/ruby/lib/ruby/1.9.1/benchmark.rb:295:in `realtime' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util.rb:353:in `thinmark' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/transaction.rb:104:in `block in evaluate' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/graph/relationship_graph.rb:118:in `traverse' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/transaction.rb:95:in `evaluate' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/resource/catalog.rb:164:in `block in apply' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util/log.rb:147:in `with_destination' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/transaction/report.rb:108:in `as_logging_destination' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/resource/catalog.rb:163:in `apply' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/configurer.rb:125:in `block in apply_catalog' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util.rb:182:in `block in benchmark' C:/Program Files (x86)/Puppet Labs/Puppet/sys/ruby/lib/ruby/1.9.1/benchmark.rb:295:in `realtime' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util.rb:181:in `benchmark' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/configurer.rb:124:in `apply_catalog' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/configurer.rb:190:in `run' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/agent.rb:45:in `block (5 levels) in run' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/agent/locker.rb:20:in `lock' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/agent.rb:45:in `block (4 levels) in run' C:/Program Files (x86)/Puppet Labs/Puppet/sys/ruby/lib/ruby/1.9.1/sync.rb:227:in `sync_synchronize' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/agent.rb:45:in `block (3 levels) in run' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/agent.rb:119:in `with_client' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/agent.rb:42:in `block (2 levels) in run' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/agent.rb:84:in `run_in_fork' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/agent.rb:41:in `block in run' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/application.rb:179:in `call' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/application.rb:179:in `controlled_run' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/agent.rb:39:in `run' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/application/agent.rb:360:in `onetime' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/application/agent.rb:326:in `run_command' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/application.rb:364:in `block (2 levels) in run' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/application.rb:457:in `plugin_hook' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/application.rb:364:in `block in run' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util.rb:511:in `exit_on_fail' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/application.rb:364:in `run' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util/command_line.rb:132:in `run' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util/command_line.rb:86:in `execute' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/bin/puppet:4:in `<main>' 2013-10-10 11:35:36 -0300 Puppet (debug): file_metadata supports formats: pson b64_zlib_yaml yaml raw 2013-10-10 11:35:36 -0300 Puppet (debug): Finishing transaction 38374536 2013-10-10 11:35:36 -0300 Puppet (debug): Storing state 2013-10-10 11:35:36 -0300 Puppet (debug): Stored state in 0.00 seconds 2013-10-10 11:35:36 -0300 Puppet (notice): Finished catalog run in 0.81 seconds I know that the documentation states to use the attribute 'password' at the time of specifying another user than 'SYSTEM' (http://docs.puppetlabs.com/references/latest/type.html#scheduled_task-attribute-password), but the error message gives no clue about that one missing. -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/groups/opt_out.
