Skip to content

Commit

Permalink
move motley-cue to port 8181
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-luna-valero committed Sep 20, 2024
1 parent 9c6772b commit bd45d01
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deployment/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ resource "openstack_compute_secgroup_v2" "motley" {
description = "Open access via ssh-oidc"

rule {
from_port = 8080
to_port = 8080
from_port = 8181
to_port = 8181
ip_protocol = "tcp"
cidr = "0.0.0.0/0"
}
Expand Down
22 changes: 22 additions & 0 deletions deployment/playbook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,28 @@
become: yes
gather_facts: yes
tasks:
- name: Disable default site in nginx
ansible.builtin.file:
path: /etc/nginx/sites-enabled/default
state: absent

- name: Move motley-cue to a different port (nginx)
ansible.builtin.lineinfile:
path: /etc/nginx/sites-available/nginx.motley_cue
search_string: "8080;"
line: 8181;

- name: Move motley-cue to a different port (pam-ssh-oidc)
ansible.builtin.lineinfile:
path: /etc/pam.d/pam-ssh-oidc-config.ini
search_string: "http://localhost:8080/verify_user"
line: http://localhost:8181/verify_user

- name: Restart nginx
ansible.builtin.service:
name: nginx
state: restarted

- name: Checkout repo at VM
ansible.builtin.git:
repo: "https://github.com/EGI-Federation/fedcloud-dashboard.git"
Expand Down

0 comments on commit bd45d01

Please sign in to comment.