add Final Infrastructure Setup
This commit is contained in:
commit
7733dde658
174 changed files with 204949 additions and 0 deletions
|
|
@ -0,0 +1,49 @@
|
|||
---
|
||||
|
||||
- name: Get Share List
|
||||
uri:
|
||||
url: https://{{ ansible_fqdn }}:{{ configs.mft_services.transfer_job_manager.proxy_port }}/transfer-job-manager/v1/admin/shares
|
||||
status_code: 200
|
||||
user: "{{ configs.mft_services.transfer_job_manager.api_user }}"
|
||||
password: "{{ configs.mft_services.transfer_job_manager.api_pass }}"
|
||||
force_basic_auth: yes
|
||||
client_cert: "{{ cert_cert_path.remote }}"
|
||||
client_key: "{{ cert_key_path.remote }}"
|
||||
validate_certs: false
|
||||
register: shares_response
|
||||
until: shares_response.status == 200
|
||||
retries: 10
|
||||
delay: 2
|
||||
become: true
|
||||
|
||||
- name: Create FTP share for relay
|
||||
uri:
|
||||
url: http://{{ ansible_fqdn }}:{{ configs.mft_services.transfer_job_manager.port }}/transfer-job-manager/v1/admin/shares
|
||||
method: POST
|
||||
status_code: 201
|
||||
user: "{{ configs.mft_services.transfer_job_manager.api_user }}"
|
||||
password: "{{ configs.mft_services.transfer_job_manager.api_pass }}"
|
||||
force_basic_auth: yes
|
||||
validate_certs: false
|
||||
body: { "name": "fxrelay",
|
||||
"protocol": "FTP",
|
||||
"host":"{{ current_host_config.fx_server_hostname }}",
|
||||
"port":"21",
|
||||
"username":"fxftp",
|
||||
"password":"verysecret",
|
||||
"directory":"",
|
||||
"description":"ftp2fx",
|
||||
"permissions":"6",
|
||||
"public_uri": "relay_share",
|
||||
"user_id":"1",
|
||||
"public":"true",
|
||||
"relay_share":"true",
|
||||
"relay_server_url":"https://{{ current_host_config.fx_server_hostname }}:{{ configs.fx_services.tixstream_express_job_manager.port }}/fx",
|
||||
"default_relay_recipient_email":"admin@tixeltec.com",
|
||||
"relay_server_username":"demo@tixeltec.com",
|
||||
"relay_server_password":"secret",
|
||||
"file_io_type":"FTP" }
|
||||
body_format: json
|
||||
vars:
|
||||
existing: "{{ shares_response|json_query('json[*].name') }}"
|
||||
when: '"fxrelay" not in existing'
|
||||
Loading…
Add table
Add a link
Reference in a new issue