use devel dist-git upstream
This commit is contained in:
parent
f1c98124cd
commit
b09633d23c
2 changed files with 34 additions and 2 deletions
10
roles/distgit/files/clime-dist-git-epel-7.repo
Normal file
10
roles/distgit/files/clime-dist-git-epel-7.repo
Normal 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
|
|
@ -66,8 +66,21 @@
|
||||||
|
|
||||||
# -- Dist Git --------------------------------------------
|
# -- Dist Git --------------------------------------------
|
||||||
# This is the Git setup itself: group, root directory, scripts,...
|
# 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)
|
- name: create the distgit root directory (/srv/git)
|
||||||
file: dest=/srv/git state=directory mode=0755
|
file: dest=/srv/git state=directory mode=0755
|
||||||
|
when: env != "staging"
|
||||||
tags:
|
tags:
|
||||||
- distgit
|
- distgit
|
||||||
|
|
||||||
|
@ -83,7 +96,7 @@
|
||||||
|
|
||||||
- name: set the SELinux policy for the distgit root directory
|
- name: set the SELinux policy for the distgit root directory
|
||||||
command: semanage fcontext -a -t git_content_t "/srv/git(/.*)?"
|
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:
|
tags:
|
||||||
- config
|
- config
|
||||||
- distgit
|
- distgit
|
||||||
|
@ -91,6 +104,7 @@
|
||||||
|
|
||||||
- name: create the distgit root directory (/srv/git/repositories)
|
- name: create the distgit root directory (/srv/git/repositories)
|
||||||
file: dest=/srv/git/repositories state=directory mode=2775 group=packager
|
file: dest=/srv/git/repositories state=directory mode=2775 group=packager
|
||||||
|
when: env != "staging"
|
||||||
tags:
|
tags:
|
||||||
- distgit
|
- distgit
|
||||||
|
|
||||||
|
@ -109,13 +123,21 @@
|
||||||
tags:
|
tags:
|
||||||
- distgit
|
- 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
|
- name: install the distgit scripts
|
||||||
copy: src={{item}} dest=/usr/local/bin/{{item}} owner=root group=root mode=0755
|
copy: src={{item}} dest=/usr/local/bin/{{item}} owner=root group=root mode=0755
|
||||||
with_items:
|
with_items:
|
||||||
- setup_git_package
|
- setup_git_package
|
||||||
- mkbranch
|
- mkbranch
|
||||||
- mkbranch_branching
|
- mkbranch_branching
|
||||||
- pkgdb2-clone
|
when: env != "staging"
|
||||||
tags:
|
tags:
|
||||||
- config
|
- config
|
||||||
- distgit
|
- distgit
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue