~freyes/charms/trusty/hacluster/fix-copyright

« back to all changes in this revision

Viewing changes to config.yaml

  • Committer: james.page at ubuntu
  • Date: 2014-10-07 08:30:10 UTC
  • mfrom: (32.2.22 hacluster)
  • Revision ID: james.page@ubuntu.com-20141007083010-4i0923hy78bp10lo
[james-page,r=gnuoy,r=*] Refactor hacluster charm

1) supports reconfiguration of cluster resources from principle charm

2) direct configuration of mcastport and bindiface via juju configuration

3) quorum policy based on expected size of cluster

    2 = ignore quorum loss
    3 = stop on quorum loss

4) conditional restarting of corosync/pacemaker as required.

It's all just a bit nicer to use now!

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
      Multicast IP address to use for exchanging messages over the network.
7
7
      If multiple clusters are on the same bindnetaddr network, this value
8
8
      can be changed.
 
9
  corosync_bindiface:
 
10
    type: string
 
11
    default:
 
12
    description: |
 
13
      Default network interface on which HA cluster will bind to communication
 
14
      with the other members of the HA Cluster.
 
15
  corosync_mcastport:
 
16
    type: int
 
17
    default:
 
18
    description: |
 
19
      Default multicast port number that will be used to communicate between
 
20
      HA Cluster nodes.
9
21
  corosync_key:
10
22
    type: string
11
23
    default: "64RxJNcCkwo8EJYBsaacitUvbQp5AW4YolJi5/2urYZYp2jfLxY+3IUCOaAUJHPle4Yqfy+WBXO0I/6ASSAjj9jaiHVNaxmVhhjcmyBqy2vtPf+m+0VxVjUXlkTyYsODwobeDdO3SIkbIABGfjLTu29yqPTsfbvSYr6skRb9ne0="
27
39
     parameters are properly configured in its invenvory.
28
40
  maas_url:
29
41
    type: string
 
42
    default:
30
43
    description: MAAS API endpoint (required for STONITH).
31
44
  maas_credentials:
32
45
    type: string
 
46
    default:
33
47
    description: MAAS credentials (required for STONITH).
34
48
  cluster_count:
35
49
    type: int
36
50
    default: 2
37
 
    description: Number of peer units required to bootstrap cluster services.
 
51
    description: |
 
52
      Number of peer units required to bootstrap cluster services.
 
53
      .
 
54
      If less that 3 is specified, the cluster will be configured to
 
55
      ignore any quorum problems; with 3 or more units, quorum will be
 
56
      enforced and services will be stopped in the event of a loss
 
57
      of quorum.
38
58
  monitor_host:
39
59
    type: string
 
60
    default:
40
61
    description: |
41
62
     One or more IPs, separated by space, that will be used as a saftey check
42
63
     for avoiding split brain situations. Nodes in the cluster will ping these