Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
infrastructure
Commits
df0e9cff
Commit
df0e9cff
authored
May 11, 2021
by
Jelle van der Waa
🚧
Browse files
Merge branch 'remove_tubylaws' into 'master'
Remove tubylaws deployment See merge request
!379
parents
b2098fb9
7df5a24b
Pipeline
#7204
passed with stage
in 51 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
roles/aurweb/defaults/main.yml
View file @
df0e9cff
...
...
@@ -2,14 +2,12 @@
aurweb_domain
:
'
aur.archlinux.org'
aurweb_repository
:
'
https://gitlab.archlinux.org/archlinux/aurweb.git'
tubylaws_repository
:
'
https://gitlab.archlinux.org/archlinux/tu-bylaws.git'
aurweb_dir
:
'
/srv/http/aurweb'
aurweb_conf_dir
:
'
/etc/aurweb'
aurweb_git_dir
:
"
{{
aurweb_dir
}}/aur.git"
aurweb_git_hook
:
'
/usr/local/bin/aurweb-git-update'
aurweb_nginx_conf
:
'
/etc/nginx/nginx.d/aurweb.conf'
aurweb_version
:
'
live'
tubylaws_version
:
'
proposal-117'
aurweb_db
:
'
aur'
aurweb_db_host
:
'
localhost'
...
...
roles/aurweb/tasks/main.yml
View file @
df0e9cff
...
...
@@ -46,22 +46,12 @@
become_user
:
"
{{
aurweb_user
}}"
register
:
release
-
name
:
clone Trusted User documentation repo
git
:
>
repo={{ tubylaws_repository }}
dest="{{ aurweb_dir }}/tu-bylaws"
version={{ tubylaws_version }}
become
:
true
become_user
:
"
{{
aurweb_user
}}"
register
:
tubylaws_release
-
name
:
create necessary directories
file
:
path={{ aurweb_dir }}/{{ item }} state=directory owner={{ aurweb_user }} group={{ aurweb_user }} mode=0755
with_items
:
-
'
aurblup'
-
'
sessions'
-
'
uploads'
-
'
web/html/trusted-user'
-
name
:
create aurweb conf dir
file
:
path={{ aurweb_conf_dir }} state=directory owner=root group=root mode=0755
...
...
@@ -128,21 +118,6 @@
become
:
true
become_user
:
"
{{
aurweb_user
}}"
-
name
:
Generate Trusted User documentation
make
:
chdir
:
"
{{
aurweb_dir
}}/tu-bylaws"
become
:
true
become_user
:
"
{{
aurweb_user
}}"
when
:
tubylaws_release.changed
-
name
:
Install Trusted User documentation
copy
:
src={{ aurweb_dir }}/tu-bylaws/tu-bylaws.html dest={{ aurweb_dir }}/web/html/trusted-user/tu-bylaws.html remote_src=yes owner={{ aurweb_user }} group=http mode=0644
when
:
tubylaws_release.changed
-
name
:
Install Trusted User documentation symlink
file
:
src=tu-bylaws.html dest={{ aurweb_dir }}/web/html/trusted-user/TUbylaws.html state=link owner={{ aurweb_user }} group=http mode=0644
when
:
tubylaws_release.changed
-
name
:
set up nginx
template
:
src=nginx.d.conf.j2 dest={{ aurweb_nginx_conf }} owner=root group=root mode=644
notify
:
reload nginx
...
...
roles/aurweb/templates/nginx.d.conf.j2
View file @
df0e9cff
...
...
@@ -42,8 +42,8 @@ server {
root {{ aurweb_dir }}/web/html;
index index.php;
location
~ ^
/trusted-user/ {
break
;
location
=
/trusted-user/
TUbylaws.html
{
return 301 https://tu-bylaws.aur.archlinux.org
;
}
location ~ "^/([a-z0-9][a-z0-9.+_-]*?)(\.git)?/(git-(receive|upload)-pack|HEAD|info/refs|objects/(info/(http-)?alternates|packs)|[0-9a-f]{2}/[0-9a-f]{38}|pack/pack-[0-9a-f]{40}\.(pack|idx))$" {
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment