Skip to content
This repository has been archived by the owner on Dec 9, 2020. It is now read-only.

Git server role #9

Merged
merged 1 commit into from
Aug 24, 2016
Merged

Git server role #9

merged 1 commit into from
Aug 24, 2016

Conversation

sabre1041
Copy link
Contributor

What does this PR do?

Adds a role to create a httpd backed git server

How should this be manually tested?

Create a git host group containing target machines and a playbook with the following contents

- name: Creates Git Server
  hosts: git
  roles:
  - role: git-server

Is there a relevant Issue open for this?

None

Who would you like to review this?

/cc @detiber @etsauer @oybed

@detiber
Copy link
Contributor

detiber commented Aug 19, 2016

Only comment I have is that the README should probably mention that this role should be deployed on a system that is not part of the OpenShift cluster, since it requires firewalld.

@sabre1041
Copy link
Contributor Author

@detiber added content to README as requested

@oybed
Copy link
Member

oybed commented Aug 20, 2016

@sabre1041 LGTM

@sabre1041
Copy link
Contributor Author

@oybed @detiber After a few more validations with ansible 2.0, added additional filter to prevent errors with undefined authorized keys

@@ -0,0 +1,45 @@
---
- name: Install Packages
action: "{{ ansible_pkg_mgr }} name={{ item }} state=present"
Copy link
Contributor

Choose a reason for hiding this comment

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

Unless 1.9 support is needed here, I would suggest using the package module here.

If 1.9 support is needed, should probably define ansible_pkg_mgr in vars/main.yaml for the role.

Otherwise, lgtm.

@oybed
Copy link
Member

oybed commented Aug 21, 2016

@detiber @sabre1041 good point about which versions are supported. Maybe we should just note that in the README for which version of Ansible the implementation has been tested with and/or intended for use with. Hence leaving it up to the author for what they'd like to support. Thoughts?

@sabre1041
Copy link
Contributor Author

@detiber @oybed I added a compatibility section describing the ansible version the role was tested against

@detiber
Copy link
Contributor

detiber commented Aug 24, 2016

@sabre1041 lgtm unless @oybed has any outstanding items, I'm ready to merge.

@oybed
Copy link
Member

oybed commented Aug 24, 2016

@sabre1041 thank you for adding the compatibility section - LGTM. I'll go ahead and merge.

@oybed oybed merged commit a0d592a into openshift:master Aug 24, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants