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

Add etckeeper hooks #81

Closed
wants to merge 3 commits into from

Conversation

kytomaki
Copy link
Contributor

@kytomaki kytomaki commented Oct 3, 2014

Another try. Sorry. It's been one head-desk of a day.

So the puppet's ubuntu packages create etc-keeper hooks which might come handy.

@ghoneycutt
Copy link
Owner

Hi @kytomaki,

I could accept this code, but it needs to be disabled by default and have spec tests.

Best regards,
-g

@kytomaki
Copy link
Contributor Author

kytomaki commented Oct 6, 2014

Hello @ghoneycutt

The hooks are now disabled by default and have spec tests. Please let me know if they're sufficient.

Cheers,
-samppa

@@ -177,6 +185,24 @@
mode => $config_mode,
}

if ($etckeeper_hooks_bool) {
file { 'etckeeper_pre':
path => '/etc/puppet/etckeeper-commit-pre',
Copy link
Owner

Choose a reason for hiding this comment

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

These paths for the pre & post commits should also be a variable with the defaults set to the path you are using now. You can validate those with validate_absolute_path().

@ghoneycutt
Copy link
Owner

This looks good! I'm going to merge after merging the master port code in PR #82

@ghoneycutt
Copy link
Owner

Hi @kytomaki

Rebased your commits into one commit and then rebased against master in PR #83

@ghoneycutt ghoneycutt closed this Oct 6, 2014
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

Successfully merging this pull request may close these issues.

2 participants