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

Added git support #4

Merged
merged 1 commit into from
Jan 1, 2017

Conversation

james-powis
Copy link
Member

Unfortunately utilizing the forge is not always an option, either due to the forge being out of sync with code out on github, or security requirements not permitting the releasing of internal code into the public sphere.

As such it is quite common to have an extensive deployment of private code spanning multiple puppet environments internally. As such this change allows for querying refs via git ls-remote and attempting to resolve out of date status. Authentication if needed is done via environmental variables (such as ssh keys or git global config).

When a module is pinned to an SHA ref HEAD on the remote repository is compared to determine outdated status.

Special note on tags... I could not figure out a less opinionated way to evaluate tagging other than to only function if the tag matches /^v\d/ or in human readable v1.2.3 or v1 or v1.2 so I am open to suggestions if this seems too opinionated

Additionally I have added the usage of an .r10kignore file which effectively is a list of modules (one per line) of which we do not want to be notified about outdated status.

Thanks!

@james-powis james-powis force-pushed the add_git_and_ignore_support branch from 3a432c9 to 781bf55 Compare October 4, 2016 23:43
@tampakrap
Copy link
Contributor

Thanks a lot for this! jfyi I will review/test next week

@james-powis
Copy link
Member Author

@tampakrap is there anything I can do to help expedite this PR?

Also added ability to exclude specific modules from version checking
@james-powis james-powis force-pushed the add_git_and_ignore_support branch from 781bf55 to cf31564 Compare December 22, 2016 22:14
@tampakrap
Copy link
Contributor

Sorry for the delay and thanks again for it

@tampakrap tampakrap merged commit 113b811 into voxpupuli:master Jan 1, 2017
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