Skip to content

Commit

Permalink
disable motley for now
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-luna-valero committed Sep 20, 2024
1 parent f47fc40 commit 360c304
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 52 deletions.
41 changes: 21 additions & 20 deletions deployment/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ resource "openstack_compute_instance_v2" "dashboard" {
network {
uuid = var.net_id
}
security_groups = ["HTTP", "motley-cue"]
security_groups = ["HTTP"]
//security_groups = ["HTTP", "motley-cue"]
}

resource "openstack_compute_secgroup_v2" "secgroup" {
Expand All @@ -28,25 +29,25 @@ resource "openstack_compute_secgroup_v2" "secgroup" {
}
}

resource "openstack_compute_secgroup_v2" "motley" {
name = "motley-cue"
description = "Open access via ssh-oidc"

rule {
from_port = 22
to_port = 22
ip_protocol = "tcp"
cidr = "0.0.0.0/0"
}

rule {
from_port = 8181
to_port = 8181
ip_protocol = "tcp"
cidr = "0.0.0.0/0"
}

}
//resource "openstack_compute_secgroup_v2" "motley" {
// name = "motley-cue"
// description = "Open access via ssh-oidc"
//
// rule {
// from_port = 22
// to_port = 22
// ip_protocol = "tcp"
// cidr = "0.0.0.0/0"
// }
//
// rule {
// from_port = 8181
// to_port = 8181
// ip_protocol = "tcp"
// cidr = "0.0.0.0/0"
// }
//
//}

resource "openstack_networking_floatingip_v2" "fip" {
pool = var.ip_pool
Expand Down
64 changes: 32 additions & 32 deletions deployment/playbook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,43 +14,43 @@
roles:
- role: "grycap.docker"
docker_config_values: { "mtu": 1400 }
- role: "grycap.motley_cue"
ssh_oidc_other_vos_name: cloud.egi.eu
ssh_oidc_other_vos_role: auditor
# - role: "grycap.motley_cue"
# ssh_oidc_other_vos_name: cloud.egi.eu
# ssh_oidc_other_vos_role: auditor

- hosts: all
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
enabled: yes

- name: Restart motley-cue
ansible.builtin.service:
name: motley-cue
state: restarted
enabled: yes

# - 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
# regexp: ".*listen 8080;$"
# line: " listen 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
# enabled: yes
#
# - name: Restart motley-cue
# ansible.builtin.service:
# name: motley-cue
# state: restarted
# enabled: yes
#
- name: Checkout repo at VM
ansible.builtin.git:
repo: "https://github.com/EGI-Federation/fedcloud-dashboard.git"
Expand Down

0 comments on commit 360c304

Please sign in to comment.