Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pagure.io box #54

Merged
merged 1 commit into from
Jul 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ machines = {
},
"fedocal": {},
"src": {},
"pagure": {
"libvirt.memory": 2048,
},
}

Vagrant.configure(2) do |config|
Expand Down
12 changes: 12 additions & 0 deletions ansible/pagure.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
- hosts: pagure
become: true
become_method: sudo
roles:
- common
- ipa-client
- cert
- role: oidc-register
vars:
redirect_path: oidc_callback
- pagure
4 changes: 4 additions & 0 deletions ansible/roles/pagure/files/bash_history
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
pstart
pstatus
pstop
workon python3-pagure
63 changes: 63 additions & 0 deletions ansible/roles/pagure/files/bashrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi

echo "Reminder of the commands:
* pstart: to start all the services
* pstop: to stop all the services
* prestart: to restart all the services
* plog: to access the logs of the 'pagure' service (the web server)"

# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=

# User specific aliases and functions
# If adding new functions to this file, note that you can add help text to the function
# by defining a variable with name _<function>_help containing the help text

pstart (){
sudo systemctl start pagure.service \
pagure-docs.service \
pagure_ci.service \
pagure_ev.service \
pagure_webhook.service \
pagure_worker.service \
pagure_authorized_keys_worker.service
echo 'The application is running on http://localhost:5000/'
}

pstop (){
sudo systemctl stop pagure.service \
pagure-docs.service \
pagure_ci.service \
pagure_ev.service \
pagure_webhook.service \
pagure_worker.service \
pagure_authorized_keys_worker.service
}

prestart (){
sudo systemctl restart pagure.service \
pagure-docs.service \
pagure_ci.service \
pagure_ev.service \
pagure_webhook.service \
pagure_worker.service \
pagure_authorized_keys_worker.service
echo 'The application is running on http://localhost:5000/'
}

pstatus (){
sudo systemctl status pagure.service \
pagure-docs.service \
pagure_ci.service \
pagure_ev.service \
pagure_webhook.service \
pagure_worker.service \
pagure_authorized_keys_worker.service
}

alias plog="sudo journalctl -lu pagure.service"