123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245 |
- groups:
- - name: Rsync Configuration
- description: Configure Rsync
- - name: Network Configuration
- description: Configure Network for Rsync
- - name: Module Configuration
- description: Configure Modules for Rsync
- - name: Resources Configuration
- description: Configure Resources for Rsync
- questions:
- - variable: rsyncConfig
- label: ""
- group: Rsync Configuration
- schema:
- type: dict
- attrs:
- - variable: auxParams
- label: Auxillary Parameters
- description: Configure auxillary parameters for Rsync.
- schema:
- type: list
- default: []
- items:
- - variable: auxEntry
- label: Auxillary Parameter Entry
- schema:
- type: dict
- attrs:
- - variable: param
- label: Parameter
- schema:
- type: string
- required: true
- - variable: value
- label: Value
- schema:
- type: string
- required: true
- - variable: rsyncNetwork
- label: ""
- group: Network Configuration
- schema:
- type: dict
- attrs:
- - variable: hostNetwork
- label: Host Network
- description: |
- Bind to the host network. It's recommended to keep this disabled.</br>
- schema:
- type: boolean
- default: false
- - variable: rsyncPort
- label: Rsync Port
- description: The port for Rsync.
- schema:
- type: int
- default: 30026
- min: 9000
- max: 65535
- required: true
- - variable: rsyncModules
- label: ""
- group: Module Configuration
- schema:
- type: list
- default: []
- empty: false
- required: true
- items:
- - variable: module
- label: Rsync Module
- schema:
- type: dict
- attrs:
- - variable: name
- label: Module Name
- description: |
- Module name that matches the name requested by the rsync client.
- schema:
- type: string
- valid_chars: '^[a-zA-Z0-9]+([_-]*[a-zA-Z0-9]+)+$'
- valid_chars_error: |
- Module Name, can include [Letters (a-z, A-Z), Numbers (0,9), Underscore (_), Dash (-)],</br>
- but cannot start or end with [Underscore (_), Dash (-), Dot (.)]
- required: true
- - variable: enabled
- label: Enable Module
- schema:
- type: boolean
- default: true
- show_subquestions_if: true
- subquestions:
- - variable: comment
- label: Comment
- description: Describe the module.
- schema:
- type: string
- - variable: hostPath
- label: Host Path
- description: |
- The path on the host to be shared with the client.</br>
- This path must exist on the host.
- schema:
- type: hostpath
- required: true
- - variable: accessMode
- label: Access Mode
- description: |
- Choose permissions for this rsync module.
- schema:
- type: string
- required: true
- default: RO
- enum:
- - value: RO
- description: Read Only
- - value: RW
- description: Read Write
- - value: WO
- description: Write Only
- - variable: maxConnections
- label: Max Connections
- description: |
- Maximum number of simultaneous connections to this module.</br>
- 0 means unlimited.
- schema:
- type: int
- min: 0
- max: 1000
- default: 0
- required: true
- - variable: uid
- label: UID
- description: |
- The UID to use for this module.</br>
- schema:
- type: int
- min: 0
- max: 65535
- default: 568
- required: true
- - variable: gid
- label: GID
- description: |
- The GID to use for this module.</br>
- schema:
- type: int
- min: 0
- max: 65535
- default: 568
- required: true
- - variable: hostsAllow
- label: Hosts Allow
- description: |
- List of hosts allowed to connect to this module.</br>
- Leave empty to allow all hosts.
- schema:
- type: list
- default: []
- items:
- - variable: host
- label: Host to allow
- schema:
- type: string
- required: true
- - variable: hostsDeny
- label: Hosts Deny
- description: |
- List of hosts denied to connect to this module.</br>
- Leave empty to deny no hosts.
- schema:
- type: list
- default: []
- items:
- - variable: host
- label: Host to deny
- schema:
- type: string
- required: true
- - variable: auxParams
- label: Auxillary Parameters
- description: Configure auxillary parameters for this module.
- schema:
- type: list
- default: []
- items:
- - variable: auxEntry
- label: Auxillary Parameter Entry
- schema:
- type: dict
- attrs:
- - variable: param
- label: Parameter
- schema:
- type: string
- required: true
- - variable: value
- label: Value
- schema:
- type: string
- required: true
- - variable: resources
- group: Resources Configuration
- label: ""
- schema:
- type: dict
- attrs:
- - variable: limits
- label: Limits
- schema:
- type: dict
- attrs:
- - variable: cpu
- label: CPU
- description: CPU limit for Rsync.
- schema:
- type: string
- max_length: 6
- valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
- valid_chars_error: |
- Valid CPU limit formats are</br>
- - Plain Integer - eg. 1</br>
- - Float - eg. 0.5</br>
- - Milicpu - eg. 500m
- default: "4000m"
- required: true
- - variable: memory
- label: Memory
- description: Memory limit for Rsync.
- schema:
- type: string
- max_length: 12
- valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
- valid_chars_error: |
- Valid Memory limit formats are</br>
- - Suffixed with E/P/T/G/M/K - eg. 1G</br>
- - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
- - Plain Integer in bytes - eg. 1024</br>
- - Exponent - eg. 134e6
- default: "8Gi"
- required: true
|