crowbar/crowbar-openstack

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

Summary

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

  .panel-body
    = instance_field :database
    = instance_field :rabbitmq
    = instance_field :keystone
    = instance_field :glance
    = instance_field :cinder
    = instance_field :neutron

    - if defined? InteltxtService
      = instance_field :inteltxt
      = boolean_field :trusted_flavors

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

      = float_field %w(scheduler ram_allocation_ratio)
      = float_field %w(scheduler cpu_allocation_ratio)
      = float_field %w(scheduler disk_allocation_ratio)
      = float_field %w(scheduler reserved_host_memory_mb)

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

      = boolean_field :use_migration
      = boolean_field :use_shared_instance_storage

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

      = boolean_field %w(kvm ksm_enabled)

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

      = string_field %w(vcenter host)
      = string_field %w(vcenter user)
      = password_field %w(vcenter password)
      = array_string_field %w(vcenter clusters), :only_comma => true
      %span.help-block
        = t('.vmware_cluster_hint')
      = string_field %w(vcenter datastore)
      = string_field %w(vcenter interface)
      = string_field %w(vcenter ca_file)
      = boolean_field %w(vcenter insecure)
      = string_field %w(vcenter vnc_keymap)

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

      = boolean_field %w(ssl enabled), :collection => :ssl_protocols_for_nova, "data-sslprefix" => "ssl", "data-sslcert" => "/etc/nova/ssl/certs/signing_cert.pem", "data-sslkey" => "/etc/nova/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)

    %fieldset
      %legend
        = t('.ec2-api_header')

      = boolean_field %w(ec2-api ssl enabled),
        :collection => :ssl_protocols_for_nova,
        'data-sslprefix' => 'ec2-api_ssl',
        'data-sslcert' => '/etc/ec2api/ssl/certs/signing_cert.pem',
        'data-sslkey' => '/etc/ec2api/ssl/private/signing_key.pem'

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

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


      = boolean_field %w(novnc ssl enabled), :collection => :ssl_protocols_for_nova, "data-sslprefix" => "novnc_ssl", "data-sslcert" => "", "data-sslkey" => ""

      #novnc_ssl_container
        .alert.alert-info
          = t(".novnc_ssl_hint")

        = string_field %w(novnc ssl certfile)
        = string_field %w(novnc ssl keyfile)

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

      = boolean_field %w(use_rbd_ephemeral)