Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[solr8cloud] add cifs mount #4599

Merged
merged 1 commit into from
Jan 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions roles/solrcloud/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,39 @@
---
- name: solrcloud | Install dependencies
ansible.builtin.apt:
name: ["cifs-utils"]
state: present

- name: solrcloud | create mounts
ansible.builtin.file:
path: "/mnt/{{ item }}"
state: "directory"
mode: 0755
loop:
- solr_backup

- name: solrcloud | Copy smb credentials
ansible.builtin.copy:
src: "files/{{ item }}"
dest: "/etc/{{ item }}"
mode: 0644
when:
- running_on_server
loop:
- solr.smb.credentials

- name: solrcloud | Create mount to diglibdata shares
mount:
path: "/mnt/{{ item.path }}"
src: "//diglibdata1.princeton.edu/{{ item.src }}"
fstype: cifs
opts: "credentials=/etc/{{ item.opts }}.smb.credentials"
state: mounted
when:
- running_on_server
loop:
- {path: "solr_backup", src: "solrbackup", opts: "solr"}

- name: solrcloud | update host file
ansible.builtin.lineinfile:
dest: /etc/hosts
Expand Down