~stub/charms/trusty/cassandra-tools/devel

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# Copyright 2015 Canonical Ltd.
#
# This file is part of the Cassandra Charm for Juju.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 3, as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranties of
# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
# PURPOSE.  See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

options:
    # Install and upgrade charm related options
    extra_packages:
        type: string
        default: ""
        description: >
                Extra packages to install. A space delimited list of packages.
    package_status:
        default: "install"
        type: string
        description: >
            The status of service-affecting packages will be set to this
            value in the dpkg database. Useful valid values are "install"
            and "hold".
    install_sources:
        type: string
        description: >
            charm-helpers standard listing of package install sources.
            If you are using Datastax Enterprise, you will need to
            override one defaults with your own username and password.
        default: |
            - deb http://www.apache.org/dist/cassandra/debian 21x main
        #   - deb http://debian.datastax.com/community stable main
        #   DSE requires you to register and add your username/password here.
        #   - deb http://un:pw@debian.datastax.com/enterprise stable main
    install_keys:
        type: string
        description: >
            charm-helpers standard listing of package install source
            signing keys, corresponding to install_sources.
        default: |
            - null  # Apache package signing key added automatically.
            # - null  # DataStack package signing key added automatically.
    http_proxy:
        type: string
        description: >
            Value for the http_proxy and https_proxy environment variables.
            This causes pip(1) and other tools to perform downloads via
            the proxy server. eg. http://squid.dc1.lan:8080
        default: ""
    # TODO: Add JNA
    # private_jna_url:
    #     type: string
    #     default: ""
    #     description: >
    #         URL for the private jna tar file. DSE requires JNA >= 3.4
    private_jre_url:
        type: string
        default: ""
        description: >
            URL for the private jre tar file. DSE requires
            Oracle Java SE 7 Server JRE (eg. server-jre-7u76-linux-x64.tar.gz).
    edition:
        type: string
        default: community
        description: >
            One of 'community' or 'dse'. 'community' uses the
            Apache Cassandra packages. 'dse' is for DataStax
            Enterprise. Selecting 'dse' overrides the jvm setting.
    jre:
        type: string
        default: openjdk
        description: >
            Which Java runtime environment to use. May be 'openjdk' or
            'oracle'.
            
    # Cassandra.yaml related options
    cluster_name:
        type: string
        default: "juju"
        description: >
            Name of the Cassandra cluster. This is mainly used to
            prevent machines in one logical cluster from joining
            another. All Cassandra services you wish to cluster together
            must have the same cluster_name. This setting cannot be changed
            after service deployment.
    partitioner:
        default: Murmur3Partitioner
        type: string
        description: >
            The cassandra partitioner to use. Use Murmur3Partitioner,
            unless another is required for backwards compatibility.
    num_tokens:
        type: int
        default: 256
        description: Number of tokens per node.
            
    # Networking options.
    native_transport_port:
        type: int
        default: 9042
        description: Native protocol port for native protocol clients.
    rpc_port:
        type: int
        default: 9160
        description: Thrift protocol port for legacy clients.
    storage_port:
        type: int
        default: 7000
        description: Cluster communication port
    ssl_storage_port:
        type: int
        default: 7001
        description: >
            Cluster secure communication port. TODO: Unused. configure SSL.