aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/openstack_mitaka_xenial/roles/odl_cluster
AgeCommit message (Collapse)AuthorFilesLines
2016-08-04modify odl rest api port because swift use 8080chenshuai@huawei.com1-2/+2
JIRA: COMPASS-462 Change-Id: I82c7a72437d5c64d01391f5cbb3fad6b5a9d7bd6 Signed-off-by: chenshuai@huawei.com <chenshuai@huawei.com>
2016-08-04add moon switch in Compass4nfvchenshuai@huawei.com5-0/+215
JIRA: COMPASS-461 Change-Id: Ic8343249f3ca31aa6c0d3090428dad4936a7f60c Signed-off-by: chenshuai@huawei.com <chenshuai@huawei.com>
2016-07-27Merge "Fix br-int check timeout issues"shuai chen1-0/+5
2016-07-27Fix br-int check timeout issuesQiLiang1-0/+5
JIRA: COMPASS-444 Change-Id: I0bf2de6b3a18e198e00fdde9cee262f2e3c57169 Signed-off-by: QiLiang <liangqi1@huawei.com>
2016-07-27Add opendaylight systemd unit configurationQiLiang3-3/+23
JIRA: COMPASS-444 Signed-off-by: QiLiang <liangqi1@huawei.com>
2016-07-27Workaround for networking-odl pip package installQiLiang2-0/+269
JIRA: COMPASS-444 Change-Id: I0df64759ae71e16ff8aafbe88b72fab74f5dc1b9 Signed-off-by: QiLiang <liangqi1@huawei.com>
2016-07-11Improvement: add xenial into make_repo.shchenshuai@huawei.com2-0/+171
JIRA: COMPASS-431 Change-Id: I010c3df11bd7fe1fec6ad8034a0ae67bb3e84ac7 Signed-off-by: chenshuai@huawei.com <chenshuai@huawei.com>
.highlight .m { color: #0000DD; font-weight: bold } /* Literal.Number */ .highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */ .highlight .na { color: #336699 } /* Name.Attribute */ .highlight .nb { color: #003388 } /* Name.Builtin */ .highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */ .highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ .highlight .nd { color: #555555 } /* Name.Decorator */ .highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */ .highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ }
heat_template_version: pike

description: >
  Openstack Mistral Engine service configured with Puppet

parameters:
  ServiceData:
    default: {}
    description: Dictionary packing service data
    type: json
  ServiceNetMap:
    default: {}
    description: Mapping of service_name -> network name. Typically set
                 via parameter_defaults in the resource registry.  This
                 mapping overrides those in ServiceNetMapDefaults.
    type: json
  DefaultPasswords:
    default: {}
    type: json
  RoleName:
    default: ''
    description: Role name on which the service is applied
    type: string
  RoleParameters:
    default: {}
    description: Parameters specific to the role
    type: json
  EndpointMap:
    default: {}
    description: Mapping of service endpoint -> protocol. Typically set
                 via parameter_defaults in the resource registry.
    type: json

resources:
  MistralBase:
    type: ./mistral-base.yaml
    properties:
      ServiceData: {get_param: ServiceData}
      ServiceNetMap: {get_param: ServiceNetMap}
      DefaultPasswords: {get_param: DefaultPasswords}
      EndpointMap: {get_param: EndpointMap}
      RoleName: {get_param: RoleName}
      RoleParameters: {get_param: RoleParameters}

outputs:
  role_data:
    description: Role data for the Mistral Engine role.
    value:
      service_name: mistral_engine
      config_settings:
        get_attr: [MistralBase, role_data, config_settings]
      step_config: |
        include ::tripleo::profile::base::mistral::engine
      upgrade_tasks:
        - name: Check if mistral engine is deployed
          command: systemctl is-enabled openstack-mistral-engine
          tags: common
          ignore_errors: True
          register: mistral_engine_enabled
        - name: "PreUpgrade step0,validation: Check if openstack-mistral-engine is running"
          shell: >
            /usr/bin/systemctl show 'openstack-mistral-engine' --property ActiveState |
            grep '\bactive\b'
          when: mistral_engine_enabled.rc == 0
          tags: step0,validation
        - name: Stop mistral_engine service
          tags: step1
          service: name=openstack-mistral-engine state=stopped
        - name: Install openstack-mistral-engine package if it was disabled
          tags: step3
          yum: name=openstack-mistral-engine state=latest
          when: mistral_engine_enabled.rc != 0