Add env setup to get the data server information.
This commit is contained in:
@@ -101,22 +101,48 @@
|
|||||||
; Slows down the rate of services such as telegraf and cron.
|
; Slows down the rate of services such as telegraf and cron.
|
||||||
; Default: false
|
; Default: false
|
||||||
;
|
;
|
||||||
;;;;;;;;;;;;;;;;;;;; Server Shortcut ;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;; Server Shortcuts ;;;;;;;;;;;;;;;;;;;;
|
||||||
;
|
;
|
||||||
; For typing `prod` and getting straight to a server, like in env-termux.
|
; 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
|
; Example: myserver.com, mywebhost.net
|
||||||
; Default: hyperling.com
|
; 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
|
; Example: 22, 222, 2222
|
||||||
; Default: 22
|
; 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
|
; Example: jim, bob, jeff, anne
|
||||||
; Default: user
|
; 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]
|
[global]
|
||||||
marker: '; {mark} MANAGED BY ANSIBLE | Generic Config'
|
marker: '; {mark} MANAGED BY ANSIBLE | Generic Config'
|
||||||
state: present
|
state: present
|
||||||
@@ -143,6 +169,10 @@
|
|||||||
prod_host: "{{ lookup('ini', 'prod_host file={{gen_file}} default=hyperling.com') }}"
|
prod_host: "{{ lookup('ini', 'prod_host file={{gen_file}} default=hyperling.com') }}"
|
||||||
prod_port: "{{ lookup('ini', 'prod_port file={{gen_file}} default=22') }}"
|
prod_port: "{{ lookup('ini', 'prod_port file={{gen_file}} default=22') }}"
|
||||||
prod_user: "{{ lookup('ini', 'prod_user file={{gen_file}} default=user') }}"
|
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
|
- name: General | Account Management | Provisioning Configuration | General | Boolean Check | Swap Block
|
||||||
set_fact:
|
set_fact:
|
||||||
@@ -171,6 +201,10 @@
|
|||||||
- { 'prod_host': "{{ prod_host }}" }
|
- { 'prod_host': "{{ prod_host }}" }
|
||||||
- { 'prod_port': "{{ prod_port }}" }
|
- { 'prod_port': "{{ prod_port }}" }
|
||||||
- { 'prod_user': "{{ prod_user }}" }
|
- { '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 ##
|
## Workstation ##
|
||||||
|
|||||||
Reference in New Issue
Block a user