Skip to content

Commit

Permalink
ansiable: add sftp config
Browse files Browse the repository at this point in the history
    - we support sftp configuration when installation.

    make default that could be easier to transmit file

Signed-off-by: Vicente Cheng <[email protected]>
  • Loading branch information
Vicente-Cheng committed Mar 3, 2024
1 parent 19bdb41 commit 49548fb
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ os:
{% for ntp_server in settings['harvester_config']['ntp_servers'] %}
- {{ ntp_server }}
{% endfor %}
{% if settings['harvester_network_config']['sftp'] %}
sshd:
sftp: {{ settings['harvester_network_config']['sftp'] }}
{% endif %}
install:
mode: create
networks:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ os:
{% for ntp_server in settings['harvester_config']['ntp_servers'] %}
- {{ ntp_server }}
{% endfor %}
{% if settings['harvester_network_config']['sftp'] %}
sshd:
sftp: {{ settings['harvester_network_config']['sftp'] }}
{% endif %}
install:
mode: join
{% if settings['harvester_network_config']['cluster'][node_number |int]['etcd_only'] %}
Expand Down
1 change: 1 addition & 0 deletions vagrant-pxe-airgap-harvester/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ harvester_network_config:
ip: 192.168.2.131
mode: DHCP
mac: 02:00:00:03:3D:61
sftp: true
cluster:
- ip: 192.168.2.30
mac: 02:00:00:0D:62:E2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ os:
{% for ntp_server in settings['harvester_config']['ntp_servers'] %}
- {{ ntp_server }}
{% endfor %}
{% if settings['harvester_network_config']['sftp'] %}
sshd:
sftp: {{ settings['harvester_network_config']['sftp'] }}
{% endif %}
install:
mode: create
management_interface:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ os:
{% for ntp_server in settings['harvester_config']['ntp_servers'] %}
- {{ ntp_server }}
{% endfor %}
{% if settings['harvester_network_config']['sftp'] %}
sshd:
sftp: {{ settings['harvester_network_config']['sftp'] }}
{% endif %}
install:
mode: join
{% if settings['harvester_network_config']['cluster'][node_number |int]['etcd_only'] %}
Expand Down
1 change: 1 addition & 0 deletions vagrant-pxe-harvester/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ harvester_network_config:
ip: 192.168.0.131
mode: DHCP
mac: 02:00:00:03:3D:61
sftp: true
cluster:
- ip: 192.168.0.30
mac: 02:00:00:0D:62:E2
Expand Down

0 comments on commit 49548fb

Please sign in to comment.