-
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.
Added a preliminary setup script for Bulbasaur (which we will wind up…
… not using probably).
- Loading branch information
Richard Liang
committed
Jan 11, 2024
1 parent
be66f48
commit 43c8744
Showing
1 changed file
with
46 additions
and
0 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,46 @@ | ||
--- | ||
|
||
- name: preliminary setup to run on the Octomore head node | ||
hosts: head | ||
become: true | ||
roles: | ||
- head_node_internal_interface | ||
tasks: | ||
- name: create /opt | ||
file: | ||
path: /opt | ||
owner: root | ||
group: root | ||
mode: '0755' | ||
state: directory | ||
|
||
- name: create the /data mount point | ||
file: | ||
path: /data | ||
owner: root | ||
group: root | ||
mode: '0755' | ||
state: directory | ||
|
||
- name: mount the already-existing filesystem | ||
mount: | ||
path: /data | ||
src: /dev/data-vg/data-lv | ||
fstype: ext4 | ||
state: mounted | ||
|
||
- name: move the existing home folder to the side | ||
command: mv /data/home /data/home_old | ||
args: | ||
creates: /data/home_old | ||
removes: /data/home | ||
|
||
- name: move the existing Kive folder to the side | ||
command: mv /data/kive /data/kive_old | ||
args: | ||
creates: /data/kive_old | ||
removes: /data/kive | ||
|
||
- name: set up head node networking | ||
include_role: | ||
name: head_node_networking |