<%= _("All of the necessary network information has been collected, now run the Foreman installer again with the necessary arguments to configure provisioning.") %>
foreman-installer \ --enable-foreman-proxy \ --foreman-proxy-tftp=true \ --foreman-proxy-tftp-servername=<%= provisioner.provision_interface_data[:ip] %> \ --foreman-proxy-dhcp=true \ --foreman-proxy-dhcp-interface=<%= provisioner.provision_interface %> \ --foreman-proxy-dhcp-gateway=<%= provisioner.subnet.gateway %> \ <% if provisioner.subnet.from.present? && provisioner.subnet.to.present? %> --foreman-proxy-dhcp-range="<%= provisioner.subnet.from %> <%= provisioner.subnet.to %>" \ <% end %> --foreman-proxy-dhcp-nameservers="<%= provisioner.subnet.dns_primary %><%= ("," + provisioner.subnet.dns_secondary) unless provisioner.subnet.dns_secondary.blank? %>" \ --foreman-proxy-dns=true \ --foreman-proxy-dns-interface=<%= provisioner.provision_interface %> \ --foreman-proxy-dns-zone=<%= provisioner.domain.name %> \ --foreman-proxy-dns-reverse=<%= provisioner.rdns_zone %> \ <%= provisioner.dns_forwarders.map { |f| " --foreman-proxy-dns-forwarders=#{f} \\" }.join("\n") %> <% if defined? Katello %> --foreman-proxy-parent-fqdn=<%= Setting[:foreman_url] %> \ --foreman-proxy-foreman-oauth-key=<%= Setting[:oauth_consumer_key] %> \ --foreman-proxy-foreman-oauth-secret=<%= Setting[:oauth_consumer_secret] %> <% else %> --foreman-proxy-foreman-base-url=<%= Setting[:foreman_url] %> \ --foreman-proxy-oauth-consumer-key=<%= Setting[:oauth_consumer_key] %> \ --foreman-proxy-oauth-consumer-secret=<%= Setting[:oauth_consumer_secret] %> <% end %>
foreman-installer \ --enable-foreman-proxy \ --foreman-proxy-tftp=true \ --foreman-proxy-tftp-servername=<%= provisioner.provision_interface_data[:ip] %> \ --foreman-proxy-dns=true \ --foreman-proxy-dns-interface=<%= provisioner.provision_interface %> \ --foreman-proxy-dns-zone=<%= provisioner.domain.name %> \ --foreman-proxy-dns-reverse=<%= provisioner.rdns_zone %> \ <%= provisioner.dns_forwarders.map { |f| " --foreman-proxy-dns-forwarders=#{f} \\" }.join("\n") %> <% if defined? Katello %> --foreman-proxy-parent-fqdn=<%= Setting[:foreman_url] %> \ --foreman-proxy-foreman-oauth-key=<%= Setting[:oauth_consumer_key] %> \ --foreman-proxy-foreman-oauth-secret=<%= Setting[:oauth_consumer_secret] %> <% else %> --foreman-proxy-foreman-base-url=<%= Setting[:foreman_url] %> \ --foreman-proxy-oauth-consumer-key=<%= Setting[:oauth_consumer_key] %> \ --foreman-proxy-oauth-consumer-secret=<%= Setting[:oauth_consumer_secret] %> <% end %>