use devel dist-git upstream

This commit is contained in:
clime 2017-02-14 07:25:54 +01:00
parent f1c98124cd
commit b09633d23c
2 changed files with 34 additions and 2 deletions

View file

@ -0,0 +1,10 @@
[clime-dist-git]
name=Copr repo for dist-git owned by clime
baseurl=https://copr-be.cloud.fedoraproject.org/results/clime/dist-git/epel-7-$basearch/
type=rpm-md
skip_if_unavailable=True
gpgcheck=1
gpgkey=https://copr-be.cloud.fedoraproject.org/results/clime/dist-git/pubkey.gpg
repo_gpgcheck=0
enabled=1
enabled_metadata=1

View file

@ -66,8 +66,21 @@
# -- Dist Git --------------------------------------------
# This is the Git setup itself: group, root directory, scripts,...
- name: install the Dist Git-related httpd config
copy: src=clime-dist-git-epel-7.repo dest=/etc/yum.repos.d/clime-dist-git-epel-7.repo
when: env == "staging"
tags:
- distgit
- name: install dist-git
yum: pkg=dist-git state=present
when: env == "staging"
tags:
- distgit
- name: create the distgit root directory (/srv/git)
file: dest=/srv/git state=directory mode=0755
when: env != "staging"
tags:
- distgit
@ -83,7 +96,7 @@
- name: set the SELinux policy for the distgit root directory
command: semanage fcontext -a -t git_content_t "/srv/git(/.*)?"
when: distgitcontext.stdout.find('git_content_t') == -1
when: distgitcontext.stdout.find('git_content_t') == -1 and env != "staging"
tags:
- config
- distgit
@ -91,6 +104,7 @@
- name: create the distgit root directory (/srv/git/repositories)
file: dest=/srv/git/repositories state=directory mode=2775 group=packager
when: env != "staging"
tags:
- distgit
@ -109,13 +123,21 @@
tags:
- distgit
- name: install the distgit scripts
copy: src={{item}} dest=/usr/local/bin/{{item}} owner=root group=root mode=0755
with_items:
- pkgdb2-clone
tags:
- config
- distgit
- name: install the distgit scripts
copy: src={{item}} dest=/usr/local/bin/{{item}} owner=root group=root mode=0755
with_items:
- setup_git_package
- mkbranch
- mkbranch_branching
- pkgdb2-clone
when: env != "staging"
tags:
- config
- distgit