summaryrefslogtreecommitdiffstats
path: root/tosca2heat/tosca-parser-0.3.0/toscaparser/tests/artifacts/mongodb/config.sh
blob: 78f484e7a17a00d409f445577295be0580128cfd (plain)
1
2
3
4
5
6
7
#!/bin/bash
# Edit the file /etc/mongod.conf, update with real IP of Mongo server
# This script configures the mongodb server to export its service on
# the server IP
# bind_ip = 127.0.0.1     -> bind_ip = <IP for Mongo server>
# The environment variable mongodb_ip is expected to be set up
sed -i "s/= 127.0.0.1/= $mongodb_ip,127.0.0.1/" /etc/mongod.conf
an> {{ ubuntu.release }}-{{ os.release }}-nodes: inherits: openstack-phase1 overrides: {% include 'phase2-overrides.yaml' %} {{ ubuntu.release }}-{{ os.release }}: inherits: openstack-phase2 openstack-phase1: services: {% if os.hyperconverged %} nodes: charm: "cs:{{ ubuntu.release }}/ubuntu" num_units: {{ opnfv.units }} {% else %} nodes: charm: "cs:{{ ubuntu.release }}/ubuntu" {% if os.ha.mode == 'ha' %} num_units: 3 {% else %} num_units: 1 {% endif %} constraints: tags=control nodes-compute: charm: "cs:{{ ubuntu.release }}/ubuntu" {% if os.ha.mode == 'ha' %} num_units: {{ opnfv.units - 3 }} {% else %} num_units: {{ opnfv.units - 1 }} {% endif %} {% endif %} ntp: charm: "local:{{ ubuntu.release }}/ntp" {% if os.network.controller == 'ocl' %} options: source: "0.ubuntu.pool.ntp.org 1.ubuntu.pool.ntp.org 2.ubuntu.pool.ntp.org 3.ubuntu.pool.ntp.org" auto_peers: false {% endif %} {% include 'mysql.yaml' %} {% include 'ceilometer.yaml' %} {% if opnfv.storage_dict.scaleio is defined %} {% include 'scaleio.yaml' %} {% else %} {% include 'ceph.yaml' %} {% endif %} {% include 'cinder.yaml' %} {% include 'glance.yaml' %} {% if opnfv.storage_dict.ceph is defined %} {% if os.service.promise %} {% include 'opnfv-promise.yaml' %} {% endif %} {% if os.service.congress %} {% include 'congress.yaml' %} {% endif %} {% endif %} {% include 'keystone.yaml' %} {% include 'nova-cloud-controller.yaml' %} {% include 'nova-compute.yaml' %} {% include 'openstack-dashboard.yaml' %} {% include 'rabbitmq.yaml' %} {% include 'heat.yaml' %} {% include 'neutron-api.yaml' %} {% include 'neutron-gateway.yaml' %} {% include 'aodh.yaml' %} {% if os.network.controller == 'odl' %} {% include 'odl.yaml' %} {% elif os.network.controller == 'onos' %} {% include 'onos.yaml' %} {% elif os.network.controller == 'ocl' %} {% include 'oclphase1.yaml' %} {% endif %} {% if os.ha.mode == 'ha' %} {% include 'haclusters.yaml' %} {% endif %} {% if os.hyperconverged %} relations: - [ 'ntp:juju-info', 'nodes:juju-info' ] {% else %} relations: - [ 'ntp:juju-info', 'nodes:juju-info' ] - [ 'ntp:juju-info', 'nodes-compute:juju-info' ] {% endif %} {% if os.ha.mode == 'ha' %} {% include 'harelations.yaml' %} {% endif %} openstack-phase2: inherits: openstack-phase1 relations: {% include 'relations.yaml' %} services: {% include 'subordinate.yaml' %}