-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Further progress: the "kive_setup" playbook runs on Octomore, but Kiv…
…e still isn't working.
- Loading branch information
Richard Liang
committed
Oct 26, 2023
1 parent
59aa7f0
commit 401b668
Showing
17 changed files
with
131 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#! /usr/bin/bash | ||
|
||
# Run this as root on a vanilla installation of Jammy on the compute nodes. | ||
|
||
apt update -y | ||
apt upgrade -y | ||
apt install -y python3 | ||
|
||
cat head_node_root_id_ed25519.pub >> /root/.ssh/authorized_keys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# The main Ansible configuration file. Copy this to "ansible.cfg" and | ||
# fill in the appropriate inventory file to use. | ||
# See the following for available sections and keys: | ||
# https://docs.ansible.com/ansible/latest/reference_appendices/config.html | ||
|
||
[defaults] | ||
inventory = ./inventory_dev.ini | ||
interpreter_python = /usr/bin/python3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[defaults] | ||
inventory = ./inventory_octomore.ini | ||
interpreter_python = /usr/bin/python3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,11 +11,11 @@ kive_server_email: [email protected] | |
kive_admins: "[[\"kive\", \"[email protected]\"]]" | ||
kive_subject_prefix: "Kive server" | ||
kive_backup_path: /data/kive_db_backup | ||
kive_python_package: python3.7 | ||
kive_python_executable: python3.7 | ||
|
||
# Settings for network services running on the head node, | ||
# e.g. firewall, NFS, and PostgreSQL. | ||
kive_internal_interface: 192.168.64.9 | ||
kive_external_interface: 192.168.64.9 | ||
nfs_export_to_hosts: 192.168.64.0/255.255.255.0 | ||
kive_db_host: 192.168.64.9 | ||
kive_db_subnet: 192.168.64.0/24 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,11 +11,12 @@ kive_server_email: [email protected] | |
kive_admins: "[[\"kive\", \"[email protected]\"]]" | ||
kive_subject_prefix: "Kive server" | ||
kive_backup_path: /media/backup/ | ||
kive_version: v0.16.2 | ||
kive_python_package: python3.7 | ||
kive_python_executable: python3.7 | ||
|
||
# Settings for network services running on the head node, | ||
# e.g. firewall, NFS, and PostgreSQL. | ||
kive_internal_interface: 192.168.1.1 | ||
kive_external_interface: 192.168.69.86 | ||
nfs_export_to_hosts: 192.168.1.0/255.255.255.0 | ||
kive_db_host: 192.168.1.1 | ||
kive_db_subnet: 192.168.1.0/24 | ||
|
@@ -112,5 +113,7 @@ copied_groups: | |
- kive | ||
- sudo | ||
|
||
default_shell: /usr/bin/bash | ||
|
||
data_physical_volumes: | ||
- /dev/sdb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
|
||
- name: assign a different UID and GID to the bootstrap user | ||
hosts: all | ||
vars: | ||
user_name: ubuntu | ||
group_name: ubuntu | ||
old_gid: 1000 | ||
new_uid: 1020 | ||
new_gid: 1020 | ||
tasks: | ||
- name: change UID | ||
user: | ||
name: "{{ user_name }}" | ||
uid: "{{ new_uid }}" | ||
- name: change GID | ||
group: | ||
name: "{{ group_name }}" | ||
gid: "{{ new_gid }}" | ||
- name: change group perms of the home folders | ||
become: true | ||
command: find /home/{{ user_name }} -group {{ old_gid }} -exec chgrp -h {{ group_name }} {} \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 0 additions & 4 deletions
4
cluster-setup/deployment/roles/import_users_and_groups/defaults/main.yml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,3 +26,4 @@ | |
group: "{{ item.primary_group }}" | ||
groups: "{{ item.groups }}" | ||
append: true | ||
shell: "{{ default_shell }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 0 additions & 15 deletions
15
cluster-setup/deployment/roles/kive_server/files/001-kive.conf
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
cluster-setup/deployment/roles/kive_server/templates/001-kive.conf.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
WSGIScriptAlias / {{ kive_root }}/kive/kive/wsgi.py | ||
WSGIPythonPath {{ kive_root }}/kive:{{ kive_venv }}/lib/{{ kive_python_executable }}/site-packages | ||
|
||
<Directory {{ kive_root }}/kive/kive> | ||
<Files wsgi.py> | ||
Require all granted | ||
</Files> | ||
</Directory> | ||
|
||
Alias /static {{ kive_static_root }} | ||
|
||
<Directory {{ kive_static_root }}> | ||
Order deny,allow | ||
Allow from all | ||
</Directory> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters