diff --git a/vagrant-pxe-airgap-harvester/ansible/roles/harvester/templates/config-create.yaml.j2 b/vagrant-pxe-airgap-harvester/ansible/roles/harvester/templates/config-create.yaml.j2 index 54455e3..6bf4da3 100644 --- a/vagrant-pxe-airgap-harvester/ansible/roles/harvester/templates/config-create.yaml.j2 +++ b/vagrant-pxe-airgap-harvester/ansible/roles/harvester/templates/config-create.yaml.j2 @@ -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 {% if settings['harvester_network_config']['cluster'][0]['role'] != 'default' %} diff --git a/vagrant-pxe-airgap-harvester/ansible/roles/harvester/templates/config-join.yaml.j2 b/vagrant-pxe-airgap-harvester/ansible/roles/harvester/templates/config-join.yaml.j2 index 135a654..f5b7747 100644 --- a/vagrant-pxe-airgap-harvester/ansible/roles/harvester/templates/config-join.yaml.j2 +++ b/vagrant-pxe-airgap-harvester/ansible/roles/harvester/templates/config-join.yaml.j2 @@ -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]['role'] != 'default' %} diff --git a/vagrant-pxe-airgap-harvester/settings.yml b/vagrant-pxe-airgap-harvester/settings.yml index d168e99..d81100a 100644 --- a/vagrant-pxe-airgap-harvester/settings.yml +++ b/vagrant-pxe-airgap-harvester/settings.yml @@ -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 diff --git a/vagrant-pxe-harvester/ansible/roles/harvester/templates/config-create.yaml.j2 b/vagrant-pxe-harvester/ansible/roles/harvester/templates/config-create.yaml.j2 index 7c59226..13b8ab0 100644 --- a/vagrant-pxe-harvester/ansible/roles/harvester/templates/config-create.yaml.j2 +++ b/vagrant-pxe-harvester/ansible/roles/harvester/templates/config-create.yaml.j2 @@ -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 {% if settings['harvester_network_config']['cluster'][0]['role'] != 'default' %} diff --git a/vagrant-pxe-harvester/ansible/roles/harvester/templates/config-join.yaml.j2 b/vagrant-pxe-harvester/ansible/roles/harvester/templates/config-join.yaml.j2 index dddc300..a81e33f 100644 --- a/vagrant-pxe-harvester/ansible/roles/harvester/templates/config-join.yaml.j2 +++ b/vagrant-pxe-harvester/ansible/roles/harvester/templates/config-join.yaml.j2 @@ -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]['role'] != 'default' %} diff --git a/vagrant-pxe-harvester/settings.yml b/vagrant-pxe-harvester/settings.yml index d55bbae..62f137c 100644 --- a/vagrant-pxe-harvester/settings.yml +++ b/vagrant-pxe-harvester/settings.yml @@ -63,6 +63,7 @@ harvester_network_config: ip: 192.168.0.131 mode: DHCP mac: 02:00:00:03:3D:61 + sftp: true cluster: # role: default, management, witness or worker - ip: 192.168.0.30