diff --git a/tasks/general/acct_mgmt/provision_config.yml b/tasks/general/acct_mgmt/provision_config.yml index 2703b63..4f28e99 100644 --- a/tasks/general/acct_mgmt/provision_config.yml +++ b/tasks/general/acct_mgmt/provision_config.yml @@ -101,22 +101,48 @@ ; Slows down the rate of services such as telegraf and cron. ; Default: false ; - ;;;;;;;;;;;;;;;;;;;; Server Shortcut ;;;;;;;;;;;;;;;;;;;; + ;;;;;;;;;;;;;;;;;;;; Server Shortcuts ;;;;;;;;;;;;;;;;;;;; ; ; For typing `prod` and getting straight to a server, like in env-termux. ; - ; prod_host : Branch to use on this machine. + ; Imagine the command: + ; `ssh prod_user@prod_host:prod_port` + ; + ; prod_host : Hostname for the production server. ; Example: myserver.com, mywebhost.net ; Default: hyperling.com ; - ; prod_port : Provide the git host that the machine should poll. + ; prod_port : Port for the production server. ; Example: 22, 222, 2222 ; Default: 22 ; - ; prod_user : Port of the server host to use for SSH requests. + ; prod_user : Username for accessing the production server. ; Example: jim, bob, jeff, anne ; Default: user ; + ; For pushing MASTER directories to an SFTP server with `send-master`. + ; + ; Imagine the command: + ; `rsync -auPhz --delete -e 'ssh -p prod_data_port' ./mydata-MASTER/ \ + ; prod_data_user@prod_data_host:/prod_data_dir/mydata-clone + ; ` + ; + ; prod_data_host : Branch to use on this machine. + ; Example: sftp.myserver.com, sftp.mywebhost.net + ; Default: hyperling.com + ; + ; prod_data_port : Provide the git host that the machine should poll. + ; Example: 22, 222, 2222 + ; Default: 22 + ; + ; prod_data_user : Port of the server host to use for SSH requests. + ; Example: jim, bob, jeff, anne + ; Default: user + ; + ; prod_data_dir : Port of the server host to use for SSH requests. + ; Example: /srv/sftp/ + ; Default: /srv/sftp/ + ; [global] marker: '; {mark} MANAGED BY ANSIBLE | Generic Config' state: present @@ -143,6 +169,10 @@ prod_host: "{{ lookup('ini', 'prod_host file={{gen_file}} default=hyperling.com') }}" prod_port: "{{ lookup('ini', 'prod_port file={{gen_file}} default=22') }}" prod_user: "{{ lookup('ini', 'prod_user file={{gen_file}} default=user') }}" + prod_data_host: "{{ lookup('ini', 'prod_data_host file={{gen_file}} default=hyperling.com') }}" + prod_data_port: "{{ lookup('ini', 'prod_data_port file={{gen_file}} default=22') }}" + prod_data_user: "{{ lookup('ini', 'prod_data_user file={{gen_file}} default=user') }}" + prod_data_dir: "{{ lookup('ini', 'prod_data_dir file={{gen_file}} default=/srv/sftp') }}" - name: General | Account Management | Provisioning Configuration | General | Boolean Check | Swap Block set_fact: @@ -171,6 +201,10 @@ - { 'prod_host': "{{ prod_host }}" } - { 'prod_port': "{{ prod_port }}" } - { 'prod_user': "{{ prod_user }}" } + - { 'prod_data_host': "{{ prod_data_host }}" } + - { 'prod_data_port': "{{ prod_data_port }}" } + - { 'prod_data_user': "{{ prod_data_user }}" } + - { 'prod_data_dir': "{{ prod_data_dir }}" } ## Workstation ##