crowbar/crowbar-openstack

View on GitHub
crowbar_framework/app/views/barclamp/octavia/_edit_attributes.html.haml

Summary

Maintainability
Test Coverage
= attributes_for @proposal do
  .panel-sub
    = header show_raw_deployment?, true

  .panel-body

    %fieldset
      %legend
        = t(".certs_header")

      = string_field %w(certs server_ca_cert_path)
      = string_field %w(certs server_ca_key_path)
      = string_field %w(certs client_ca_cert_path)
      = string_field %w(certs client_cert_and_key_path)
      = string_field %w(certs passphrase)

    %fieldset
      %legend
        = t(".amphora_header")

      = string_field %w(amphora ssh_access keyname)
      = select_field %w(amphora loadbalancer_topology),
        :collection => :loadbalancer_topology_for_octavia
      = integer_field %w(amphora spare_amphora_pool_size)

    %fieldset
      %legend
        = t(".ssl_header")

      = select_field %w(api protocol),
        :collection => :api_protocols_for_octavia,
        "data-sslprefix" => "ssl",
        "data-sslcert" => "/etc/octavia/ssl/certs/signing_cert.pem",
        "data-sslkey" => "/etc/octavia/ssl/private/signing_key.pem"

      #ssl_container
        = boolean_field %w(ssl generate_certs)
        = string_field %w(ssl certfile)
        = string_field %w(ssl keyfile)
        = boolean_field %w(ssl insecure)
        = boolean_field %w(ssl cert_required),
          "data-enabler" => "true",
          "data-enabler-target" => "#ssl_ca_certs"
        = string_field %w(ssl ca_certs)