Skip to content

Commit

Permalink
Fixes to the oonidata role setup
Browse files Browse the repository at this point in the history
  • Loading branch information
hellais committed Sep 26, 2024
1 parent 356c820 commit 7e8c5ab
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 18 deletions.
1 change: 1 addition & 0 deletions ansible/inventory
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ openvpn-server1.ooni.io
# This requires manual setup of ~/.ssh/config
#codesign-box
data.ooni.org
oonidatatest.ooni.nu
7 changes: 7 additions & 0 deletions ansible/playbook-bootstrap.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This playbook is to be run on hosts that don't support bootstrapping the base
# OS setup with something other than ansible (eg. cloud-init)
- name: Ensure ssh_users are synched on all hosts
hosts: all
remote_user: root
roles:
- ssh_users
6 changes: 6 additions & 0 deletions ansible/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@
roles:
- ssh_users

- name: Deploy oonidata hosts
hosts: oonidatatest.ooni.nu
become: true
roles:
- oonidata

# commented out due to the fact it requires manual config of ~/.ssh/config
#- name: Setup codesign box
# hosts: codesign-box
Expand Down
2 changes: 1 addition & 1 deletion ansible/requirements.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
- src: willshersystems.sshd
- src: nginxinc.nginx
- src: geerlingguy.nginx
- src: geerlingguy.certbot
File renamed without changes.
1 change: 0 additions & 1 deletion ansible/roles/miniconda/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
mode: "0700"

- name: Run the miniconda installer
become_user: miniconda
ansible.builtin.shell: |
bash {{ miniconda_install_dir }}/miniconda.sh -b -u -p {{ miniconda_install_dir }}
Expand Down
7 changes: 0 additions & 7 deletions ansible/roles/miniconda/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,7 @@
path: "{{ miniconda_install_dir }}/bin/conda"
register: miniconda_bin

- name: Create miniconda user
become: yes
ansible.builtin.user:
name: miniconda
create_home: no

- include_tasks: install.yml
become: yes
when: not miniconda_bin.stat.exists

- name: "install conda packages"
Expand Down
4 changes: 0 additions & 4 deletions ansible/roles/nginx/meta/main.yml

This file was deleted.

File renamed without changes.
2 changes: 0 additions & 2 deletions ansible/roles/oonidata/meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
dependencies:
- role: miniconda
vars:
miniconda_install_dir: "{{ miniconda_install_dir }}"
- role: nginx
6 changes: 3 additions & 3 deletions ansible/roles/oonidata/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
- include_tasks: jupyterhub.yml
become: yes

- include_role: geerlingguy.nginx
- include_role:
name: geerlingguy.certbot
vars:
certbot_admin_email: [email protected]
certbot_create_if_missing: true
certbot_create_standalone_stop_services: []
certbot_certs:
- domains:
- {{ inventory_name }}
- "{{ inventory_name }}"

0 comments on commit 7e8c5ab

Please sign in to comment.