summaryrefslogtreecommitdiffstats
path: root/ci/config_tpl/juju2/bundle_tpl/ceph.yaml
blob: eda8496066b4bf964e8e62476b9530817e2a008e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

@media only all and (prefers-color-scheme: dark) {
.highlight .hll { background-color: #49483e }
.highlight .c { color: #75715e } /* Comment */
.highlight .err { color: #960050; background-color: #1e0010 } /* Error */
.highlight .k { color: #66d9ef } /* Keyword */
.highlight .l { color: #ae81ff } /* Literal */
.highlight .n { color: #f8f8f2 } /* Name */
.highlight .o { color: #f92672 } /* Operator */
.highlight .p { color: #f8f8f2 } /* Punctuation */
.highlight .ch { color: #75715e } /* Comment.Hashbang */
.highlight .cm { color: #75715e } /* Comment.Multiline */
.highlight .cp { color: #75715e } /* Comment.Preproc */
.highlight .cpf { color: #75715e } /* Comment.PreprocFile */
.highlight .c1 { color: #75715e } /* Comment.Single */
.highlight .cs { color: #75715e } /* Comment.Special */
.highlight .gd { color: #f92672 } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gi { color: #a6e22e } /* Generic.Inserted */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #75715e } /* Generic.Subheading */
.highlight .kc { color: #66d9ef } /* Keyword.Constant */
.highlight .kd { color: #66d9ef } /* Keyword.Declaration */
.highlight .kn { color: #f92672 } /* Keyword.Namespace */
.highlight .kp { color: #66d9ef } /* Keyword.Pseudo */
.highlight .kr { color: #66d9ef } /* Keyword.Reserved */
.highlight .kt { color: #66d9ef } /* Keyword.Type */
.highlight .ld { color: #e6db74 } /* Literal.Date */
.highlight .m { color: #ae81ff } /* Literal.Number */
.highlight .s { color: #e6db74 } /* Literal.String */
.highlight .na { color: #a6e22e } /* Name.Attribute */
.highlight .nb { color: #f8f8f2 } /* Name.Builtin */
.highlight .nc { color: #a6e22e } /* Name.Class */
.highlight .no { color: #66d9ef } /* Name.Constant */
.highlight .nd { color: #a6e22e } /* Name.Decorator */
.highlight .ni { color: #f8f8f2 } /* Name.Entity */
.highlight .ne { color: #a6e22e } /* Name.Exception */
.highlight .nf { color: #a6e22e } /* Name.Function */
.highlight .nl { color: #f8f8f2 } /* Name.Label */
.highlight .nn { color: #f8f8f2 } /* Name.Namespace */
.highlight .nx { color: #a6e22e } /* Name.Other */
.highlight .py { color: #f8f8f2 } /* Name.Property */
.highlight .nt { color: #f92672 } /* Name.Tag */
.highlight .nv { color: #f8f8f2 } /* Name.Variable */
.highlight .ow { color: #f92672 } /* Operator.Word */
.highlight .w { color: #f8f8f2 } /* Text.Whitespace */
.highlight .mb { color: #ae81ff } /* Literal.Number.Bin */
.highlight .mf { color: #ae81ff } /* Literal.Number.Float */
.highlight .mh { color: #ae81ff } /* Literal.Number.Hex */
.highlight .mi { color: #ae81ff } /* Literal.Number.Integer */
.highlight .mo { color: #ae81ff } /* Literal.Number.Oct */
.highlight .sa { color: #e6db74 } /* Literal.String.Affix */
.highlight .sb { color: #e6db74 } /* Literal.String.Backtick */
.highlight .sc { color: #e6db74 } /* Literal.String.Char */
.highlight .dl { color: #e6db74 } /* Literal.String.Delimiter */
.highlight .sd { color: #e6db74 } /* Literal.String.Doc */
.highlight .s2 { color: #e6db74 } /* Literal.String.Double */
.highlight .se { color: #ae81ff } /* Literal.String.Escape */
.highlight .sh { color: #e6db74 } /* Literal.String.Heredoc */
.highlight .si { color: #e6db74 } /* Literal.String.Interpol */
.highlight .sx { color: #e6db74 } /* Literal.String.Other */
.highlight .sr { color: #e6db74 } /* Literal.String.Regex */
.highlight .s1 { color: #e6db74 } /* Literal.String.Single */
.highlight .ss { color: #e6db74 } /* Literal.String.Symbol */
.highlight .bp { color: #f8f8f2 } /* Name.Builtin.Pseudo */
.highlight .fm { color: #a6e22e } /* Name.Function.Magic */
.highlight .vc { color: #f8f8f2 } /* Name.Variable.Class */
.highlight .vg { color: #f8f8f2 } /* Name.Variable.Global */
.highlight .vi { color: #f8f8f2 } /* Name.V
{% if opnfv.storage_dict.ceph is defined %}
    ceph-mon:
      charm: "./{{ ubuntu.release }}/ceph-mon"
      num_units: {{ unit_ceph_qty() }}
{% if os.service.bindings %}
      bindings:
        "": internal-api
{% if opnfv.spaces_dict.storage is defined %}
        public: storage-cluster
{% else %}
        public: internal-api
{% endif %}
{% endif %}
      options:
        monitor-count: {{ unit_ceph_qty() }}
        fsid: ecbb8960-0e21-11e2-b495-83a88f44db01
        monitor-secret: AQD1P2xQiKglDhAA4NGUF5j38Mhq56qwz+45wg==
{% if ubuntu.release == 'trusty' and os.release < 'newton' %}
        source: "cloud:{{ ubuntu.release }}-updates/{{ os.release }}"
{% elif ubuntu.release == 'xenial' and os.release >= 'newton' %}
        source: "cloud:{{ ubuntu.release }}-updates/{{ os.release }}"
{% endif %}
{% if os.network.ipv6 %}
        prefer-ipv6: {{ os.network.ipv6 }}
{% endif %}
      to:
{% if os.hyperconverged %}
{% for unit_id in to_select(unit_ceph_qty()) %}
        - "lxd:nodes/{{ unit_id }}"
{% endfor %}
{% else %}
{% if os.ha.mode == 'ha' %}
{% for unit_id in range(0, 3) %}
        - "lxd:nodes/{{ unit_id }}"
{% endfor %}
{% else %}
        - "lxd:nodes/0"
        - "lxd:nodes/1"
        - "lxd:nodes/2"
{% endif %}
{% endif %}
    ceph-osd:
      charm: "./{{ ubuntu.release }}/ceph-osd"
{% if os.hyperconverged %}
{% if opnfv.units >= 3 %}
      num_units: {{ unit_ceph_qty() }}
{% else %}
      num_units: {{ opnfv.units }}
{% endif %}
{% else %}
      num_units: 3
{% endif %}
{% if os.service.bindings %}
      bindings:
        "": internal-api
{% if opnfv.spaces_dict.storage is defined %}
        public: storage-cluster
        cluster: storage-cluster
{% else %}
        public: internal-api
        cluster: internal-api
{% endif %}
{% endif %}
      options:
{% if os.lxd %}
        osd-devices: /srv/ceph-osd
{% else %}
        osd-devices: {{ opnfv.storage_dict.ceph.disk }}
{% endif %}
        osd-reformat: 'yes'
{% if ubuntu.release == 'trusty' and os.release < 'newton' %}
        source: "cloud:{{ ubuntu.release }}-updates/{{ os.release }}"
{% elif ubuntu.release == 'xenial' and os.release >= 'newton' %}
        source: "cloud:{{ ubuntu.release }}-updates/{{ os.release }}"
{% endif %}
{% if os.network.ipv6 %}
        prefer-ipv6: {{ os.network.ipv6 }}
{% endif %}
      to:
{% if os.hyperconverged %}
{% if opnfv.units >= 3 %}
{% for unit_id in range(0, 3) %}
        - "nodes/{{ unit_id }}"
{% endfor %}
{% else %}
 {% for unit_id in range(0, opnfv.units) %}
         - "nodes/{{ unit_id }}"
 {% endfor %}
{% endif %}
{% else %}
{% if os.ha.mode == 'ha' %}
{% for unit_id in range(0, 3) %}
        - "nodes/{{ unit_id }}"
{% endfor %}
{% else %}
        - "nodes/0"
        - "nodes-compute/0"
        - "nodes-compute/1"
{% endif %}
{% endif %}
    ceph-radosgw:
      charm: "./{{ ubuntu.release }}/ceph-radosgw"
      num_units: {{ unit_qty() if os.beta.hacluster_ceph_radosgw else 1 }}
{% if os.service.bindings %}
      bindings:
        "": internal-api
        internal: internal-api
        admin: internal-api
{% if opnfv.spaces_dict.public is defined %}
        public: public-api
{% else %}
        public: internal-api
{% endif %}
{% if opnfv.spaces_dict.storage is defined %}
        mon: storage-cluster
{% endif %}
{% endif %}
      options:
        region: {{ os.region }}
        operator-roles: "Member,admin"
{% if ubuntu.release == 'trusty' and os.release < 'newton' %}
        source: "cloud:{{ ubuntu.release }}-updates/{{ os.release }}"
{% elif ubuntu.release == 'xenial' and os.release >= 'newton' %}
        source: "cloud:{{ ubuntu.release }}-updates/{{ os.release }}"
{% endif %}
{% if os.network.ipv6 %}
        prefer-ipv6: {{ os.network.ipv6 }}
{% endif %}
{% if opnfv.storage_dict.ceph is defined %}
        ceph-osd-replication-count: {{ unit_ceph_qty() }}
{% endif %}
      to:
{% for unit_id in to_select(unit_qty() if os.beta.hacluster_ceph_radosgw else 1) %}
        - "lxd:nodes/{{ unit_id }}"
{% endfor %}
{% endif %}