Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

win32-taskscheduler issues with puppet #10

Closed
lc0 opened this issue Dec 23, 2014 · 2 comments
Closed

win32-taskscheduler issues with puppet #10

lc0 opened this issue Dec 23, 2014 · 2 comments

Comments

@lc0
Copy link

lc0 commented Dec 23, 2014

Hi guys,

I'm trying to use puppet for provisioning my Windows VM.
The configuration is prettty simple, i have it as an example from docs:

scheduled_task { 'An every-other-day task':
      ensure    => present,
      enabled   => true,
      command   => 'C:\path\to\command.exe',
      arguments => '/flags /to /pass',
      trigger   => {
        schedule   => daily,
        start_time => '08:00',      # Must be specified
      },
    }

The problem that with gem version 0.2.2 it fails with message. I documentation Puppetlabs say, that should not be the issue if gem is older than 0.2.1, but it doesn't work for me:

Error: /Stage[main]/Main/Node[win-test]/Scheduled_task[A n every-other-day task]: Could not evaluate: The operation completed successfully.

I've tried to updated to 0.3.1 and 0.3.0, but with this version it doesn't look like backward compatible:

Error: Could not set 'present' on ensure: start_year must be set at 17:c:/test.pp
Error: Could not set 'present' on ensure: start_year must be set at 17:c:/test.pp
Wrapped exception:
start_year must be set
Error: /Stage[main]/Main/Node[win-test]/Scheduled_task[An every-other-day task]/ensure: change from absent to present failed: Could not
set 'present' on ensure: start_year must be set at 17:c:/test.pp
Notice: Finished catalog run in 0.34 seconds

also if i try to add start_year it fails in another way:

Error: Parameter trigger failed on Scheduled_task[An every-other-day task]: Unknown trigger option(s): ['start_year'] at c:/test.pp:18
Wrapped exception:
Unknown trigger option(s): ['start_year']

Thanks for the help!

@djberg96
Copy link
Collaborator

@lc0 Sorry for the long delay. Did you ever get this worked out?

@djberg96 djberg96 added the Help label Mar 11, 2017
@lc0
Copy link
Author

lc0 commented Mar 13, 2017

It was quite some time ago, we do not use Windows for that anymore.
On the other hand, we had it fixed, just it's very hard to find out what was the reason.

If anybody still has any issues with that, I might try to find a configuration that I used last time.

Cheers,
Sergii

@lc0 lc0 closed this as completed Mar 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants