Guest User

Untitled

a guest
Jan 21st, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.33 KB | None | 0 0
  1. # ╔═════════════════════════════════════════════════════╗
  2. # ║ Create Updated Stash File On Secondary SDS Server ║
  3. # ╚═════════════════════════════════════════════════════╝
  4. # - name: Check To See if Secondary Stash File Has Already Been Created
  5. # stat:
  6. # path: "{{ SDS_INSTANCE_DIR}}/etc/stash.lock"
  7. # register: STASHLOCK
  8. #
  9. # - name: Regenerate Keystash File For Secondary SDS Instance
  10. # block:
  11. # - name: Read {{ SDS_INSTANCE_USER }} Root Password From Vault
  12. # hashivault_read:
  13. # url: "{{ HVAULT_URL }}"
  14. # verify: "{{ HVAULT_VERIFY_CERT }}"
  15. # authtype: "{{ HVAULT_LOGIN_METHOD }}"
  16. # username: "{{ HVAULT_USER }}"
  17. # password: "{{ HVAULT_PASS }}"
  18. # secret: '{{ CUSTOMER_SHORTNAME|upper }}/{{ PRODUCT|upper }}/{{ ENV_TIER|upper }}'
  19. # key: '{{ item }}'
  20. # with_items:
  21. # - 'SDS_PRIMARY_SALT'
  22. # - 'SDS_ENCRYPTION_SEED'
  23. # register: SDS_VAULT_SECRETS
  24. # delegate_to: localhost
  25. # become: false
  26. # no_log: true
  27. # ignore_errors: true
  28. #
  29. # - name: Stop SDS Administration Instance
  30. # command: ./idsdiradm -k
  31. # args:
  32. # chdir: "{{ SDS_SBIN }}"
  33. # register: STOP_SDS_ADMIN
  34. # changed_when: "'GLPADM034I' in STOP_SDS_ADMIN.stderr"
  35. #
  36. # - name: Keystash Keygen on Secondary SDS
  37. # command: ./idsgendirksf -s {{ SDS_VAULT_SECRETS.results[0].value| quote }} -e {{ SDS_VAULT_SECRETS.results[1].value }} -l {{ SDS_INSTANCE_DIR}}/etc -n
  38. # register: SECONDARY_KEYSTASH
  39. # become: yes
  40. # become_user: "{{ SDS_INSTANCE_USER }}"
  41. # args:
  42. # chdir: "{{ SDS_SBIN }}"
  43. #
  44. # - name: Start SDS Instance
  45. # command: ./idsslapd -I {{ SDS_INSTANCE_NAME }}
  46. # args:
  47. # chdir: "{{ SDS_SBIN }}"
  48. # register: START_SDS
  49. # changed_when: "'GLPCOM003I' in START_SDS.stderr"
  50. # failed_when:
  51. # - "'GLPCTL088E' not in START_SDS.stderr"
  52. #
  53. # - name: Create Stashfile Lock
  54. # file:
  55. # path: "{{ SDS_INSTANCE_DIR}}/etc/stash.lock"
  56. # state: touch
  57. # become: yes
  58. # become_user: "{{ SDS_INSTANCE_USER }}"
  59. # when: SECONDARY_KEYSTASH|changed
  60. #
  61. # when:
  62. # - "'TDS_NODE_2' in inventory_hostname"
  63. # - STASHLOCK.stat.exists == false
Add Comment
Please, Sign In to add comment