git: Refactor hierarcy and names
git/client is now git and in software submodule git/server is now git-server
This commit is contained in:
parent
e13b87324c
commit
90142649d7
13 changed files with 6 additions and 44 deletions
|
@ -22,8 +22,8 @@
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- base
|
- base
|
||||||
- git/client
|
- git
|
||||||
- git/server
|
- git-server
|
||||||
- sssd
|
- sssd
|
||||||
- nfs-client
|
- nfs-client
|
||||||
- autofs
|
- autofs
|
||||||
|
|
|
@ -67,7 +67,7 @@
|
||||||
with_items:
|
with_items:
|
||||||
- cups-client
|
- cups-client
|
||||||
- firefox
|
- firefox
|
||||||
- git/client
|
- git
|
||||||
- google-chrome
|
- google-chrome
|
||||||
- mutt
|
- mutt
|
||||||
- opencollab
|
- opencollab
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
dependencies:
|
dependencies:
|
||||||
- {role: epel-repo}
|
- {role: epel-repo}
|
||||||
- {role: git/client}
|
- {role: git}
|
||||||
- {role: nginx/server}
|
- {role: nginx/server}
|
||||||
|
|
Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 5.6 KiB |
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- {role: git/client}
|
- {role: git}
|
||||||
- {role: apache}
|
- {role: apache}
|
|
@ -1,22 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
- name: install git packages
|
|
||||||
package:
|
|
||||||
name: git
|
|
||||||
state: installed
|
|
||||||
|
|
||||||
- name: create git config for sh based shells
|
|
||||||
template:
|
|
||||||
dest: /etc/profile.d/git.sh
|
|
||||||
src: git.sh.j2
|
|
||||||
mode: 0644
|
|
||||||
owner: root
|
|
||||||
group: root
|
|
||||||
|
|
||||||
- name: create git config for csh based shells
|
|
||||||
template:
|
|
||||||
dest: /etc/profile.d/git.csh
|
|
||||||
src: git.csh.j2
|
|
||||||
mode: 0644
|
|
||||||
owner: root
|
|
||||||
group: root
|
|
|
@ -1,8 +0,0 @@
|
||||||
if ($uid > 3000 && "`/usr/bin/id -gn`" == "`/usr/bin/id -un`") then
|
|
||||||
if ( "`git config user.name`" == "" ) then
|
|
||||||
git config --global user.name "`getent passwd '${USER}' | cut -d : -f 5`"
|
|
||||||
endif
|
|
||||||
if ( "`git config user.email`" == "" ) then
|
|
||||||
git config --global user.email "${USER}@{{ mail_domain }}"
|
|
||||||
endif
|
|
||||||
endif
|
|
|
@ -1,8 +0,0 @@
|
||||||
if [ $UID -gt 3000 ] && [ "`/usr/bin/id -gn`" = "`/usr/bin/id -un`" ]; then
|
|
||||||
if [ -z "$(git config user.name)" ]; then
|
|
||||||
git config --global user.name "$(getent passwd "$USER" | cut -d : -f 5)"
|
|
||||||
fi
|
|
||||||
if [ -z "$(git config user.email)" ]; then
|
|
||||||
git config --global user.email "${USER}@{{ mail_domain }}"
|
|
||||||
fi
|
|
||||||
fi
|
|
|
@ -1,3 +1,3 @@
|
||||||
---
|
---
|
||||||
dependencies:
|
dependencies:
|
||||||
- {role: git/client}
|
- {role: git}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue