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

Update job mapping #39

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

mterzo
Copy link

@mterzo mterzo commented Jan 16, 2018

On MR #27 Hiera lookup started using cron::job::XXX which also turned around and used create_resrouces('cron::job::XXX'.

These resources were not in the job directory. I've moved them there. I can only assume that these were lookups were changed due to puppet4's new parameters and having hourly, month, etc were giving warnings as parameters to the cron class.

@alexjfisher
Copy link
Member

Maybe the changes in #27 were unintentional?

Copy link
Member

@alexjfisher alexjfisher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the changes in #27 were unintentional and have opened #40 to fix this.

# minute => '1',
# hour => '3',
# environment => [ 'PATH="/usr/sbin:/usr/bin:/sbin:/bin"' ],
# command => 'mysqldump -u root my_db >/backups/my_db.sql',
# }
#
define cron::daily (
define cron::job::daily (
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would be a breaking change for users who aren't using hiera but defining cron::daily resources directly in their manifests.

@alexjfisher
Copy link
Member

@mterzo Thanks for finding and reporting this though!

@mterzo
Copy link
Author

mterzo commented Jan 17, 2018

May very well have been. The commit message mentioned puppet4 compliance, which was why I made the assumption they were moved under job.

Yeah, I was aware if someone was using the define cron::daily directly this change would break them. I was expecting travis to execute to let me know If i was breaking old functionality. I don't understand why multiple was put under job and not like the others.

@vox-pupuli-tasks
Copy link

Dear @mterzo, thanks for the PR!

This is pccibot, your friendly Vox Pupuli GitHub Bot. I noticed that your pull request contains merge conflict. Can you please rebase?

You can find my sourcecode at voxpupuli/vox-pupuli-tasks

@vox-pupuli-tasks
Copy link

Dear @mterzo, thanks for the PR!

This is pccibot, your friendly Vox Pupuli GitHub Bot. I noticed that your pull request contains merge conflict. Can you please rebase?

You can find my sourcecode at voxpupuli/vox-pupuli-tasks

@vox-pupuli-tasks
Copy link

Dear @mterzo, thanks for the PR!

This is pccibot, your friendly Vox Pupuli GitHub Bot. I noticed that your pull request contains merge conflict. Can you please rebase?

You can find my sourcecode at voxpupuli/vox-pupuli-tasks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants