Bug #15326] (Accepted) Scheduled_task does not accept domain user accounts

28 views
Skip to first unread message

Helen Paterson

unread,
Feb 24, 2015, 9:57:03 AM2/24/15
to puppet...@googlegroups.com
Hi,

When i add the user attribute to Scheduled_task, the scheduled task is not created, but if i comment out the user attribute the scheduled task is created running as system.

This doesn't seem to work 

  scheduled_task { 'CopyCF11ReposFromDR':
    ensure         => present,
    enabled        => true,
    command     => 'D:\bin\Schedules\CopyCF11ReposFromDR.bat',
    working_dir   => 'D:\bin\Schedules',
    user             => 'MYDOMAIN\puppet-user',
    arguments    => '> D:\bin\Schedules\CopyCF11ReposFromDR_LOG.txt',
    require         => File['D:\bin\Schedules\CopyCF11ReposFromDR.bat']
    }


I am using puppet master version 3.7.4 and windows agent version 3.7.4 on Windows server 2012 R2.


I see this bug has been reported as fixed https://projects.puppetlabs.com/issues/15326



Josh Cooper

unread,
Feb 24, 2015, 10:06:34 AM2/24/15
to puppet...@googlegroups.com


On Tuesday, February 24, 2015, Helen Paterson <helen.p...@gmail.com> wrote:
Hi,

When i add the user attribute to Scheduled_task, the scheduled task is not created, but if i comment out the user attribute the scheduled task is created running as system.

This doesn't seem to work 

  scheduled_task { 'CopyCF11ReposFromDR':
    ensure         => present,
    enabled        => true,
    command     => 'D:\bin\Schedules\CopyCF11ReposFromDR.bat',
    working_dir   => 'D:\bin\Schedules',
    user             => 'MYDOMAIN\puppet-user',
    arguments    => '> D:\bin\Schedules\CopyCF11ReposFromDR_LOG.txt',
    require         => File['D:\bin\Schedules\CopyCF11ReposFromDR.bat']
    }


You'll need to specify the puppet-user's password if you don't use the LocalSystem account.
 

I am using puppet master version 3.7.4 and windows agent version 3.7.4 on Windows server 2012 R2.


I see this bug has been reported as fixed https://projects.puppetlabs.com/issues/15326



--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/17b6bf14-5a4a-4122-96fa-40703ab7c916%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Josh Cooper
Developer, Puppet Labs

Join us at PuppetConf 2015, October 5-9 in Portland, OR - http://2015.puppetconf.com.  
Register early to save 40%!

Helen Paterson

unread,
Feb 24, 2015, 10:23:04 AM2/24/15
to puppet...@googlegroups.com
thank you, completely missed it.


On Tuesday, February 24, 2015 at 3:06:34 PM UTC, Josh Cooper wrote:


On Tuesday, February 24, 2015, Helen Paterson <helen.p...@gmail.com> wrote:
Hi,

When i add the user attribute to Scheduled_task, the scheduled task is not created, but if i comment out the user attribute the scheduled task is created running as system.

This doesn't seem to work 

  scheduled_task { 'CopyCF11ReposFromDR':
    ensure         => present,
    enabled        => true,
    command     => 'D:\bin\Schedules\CopyCF11ReposFromDR.bat',
    working_dir   => 'D:\bin\Schedules',
    user             => 'MYDOMAIN\puppet-user',
    arguments    => '> D:\bin\Schedules\CopyCF11ReposFromDR_LOG.txt',
    require         => File['D:\bin\Schedules\CopyCF11ReposFromDR.bat']
    }


You'll need to specify the puppet-user's password if you don't use the LocalSystem account.
 

I am using puppet master version 3.7.4 and windows agent version 3.7.4 on Windows server 2012 R2.


I see this bug has been reported as fixed https://projects.puppetlabs.com/issues/15326



--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages