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

I4691 fpul staging2 #4700

Merged
merged 3 commits into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions group_vars/friends_of_pul/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ mysql_root_password: "{{ vault_mysql_root_password }}"

mysql_server: false

nfs_host_server: "lib-fs-prod.princeton.edu"

mysql_databases:
- name: "{{ drupal_db_name }}"
encoding: utf8mb4
Expand Down
2 changes: 2 additions & 0 deletions group_vars/friends_of_pul/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ install_ruby_from_source: true
ruby_version_override: "ruby-3.1.3"
bundler_version: "2.3.18"

nfs_host_server: "lib-fs-staging.princeton.edu"

mysql_server: false

mysql_databases:
Expand Down
1 change: 1 addition & 0 deletions inventory/all_projects/friends_of_pul
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
fpul-prod1.princeton.edu
[friends_of_pul_staging]
fpul-staging1.princeton.edu
fpul-staging2.princeton.edu
2 changes: 1 addition & 1 deletion roles/common/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@

- name: common | install dust
ansible.builtin.apt:
deb: "{{ dust_url }}/v{{ dust_version }}/du-dust_{{ dust_version }}_amd64.deb"
deb: "{{ dust_url }}/v{{ dust_version }}/du-dust_{{ dust_version }}-1_amd64.deb"
when: running_on_server

- name: common | install fdfind
Expand Down
4 changes: 4 additions & 0 deletions roles/friends_of_pul/handlers/main.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
---
# handlers file for roles/friends_of_pul
- name: restart idmapd
ansible.builtin.service:
name: idmapd
state: restart
15 changes: 15 additions & 0 deletions roles/friends_of_pul/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
---
# tasks file for roles/friends_of_pul

- name: friends_of_pul | enable id_mapping
ansible.builtin.lineinfile:
path: /etc/default/nfs-common
regexp: '^NEED_IDMAPD='
line: NEED_IDMAPD=yes
notify: restart idmapd

- name: friends_of_pul | add fqdn for idmapping
ansible.builtin.lineinfile:
path: /etc/idmapd.conf
insertbefore: '# Domain = localdomain'
line: "Domain = {{ nfs_host_server }}"
state: present

- name: friends_of_pul | Create drupal7 directory production
ansible.posix.mount:
src: "{{ nfs_server_production }}:/var/nfs/drupal7"
Expand Down
Loading