Permalink
Browse files

Add more documentation

  • Loading branch information...
1 parent 4f0fc92 commit 0e676a55fa27cc059d83fccfee7da4695111d807 @branan branan committed Jun 27, 2012
Showing with 40 additions and 3 deletions.
  1. +11 −2 examples/site.pp
  2. +29 −1 manifests/controller/ha.pp
View
@@ -4,6 +4,15 @@
# with high-availability on the controller
#
+#
+# Things to watch out for, compared to a standard openstack::controller setup:
+# * $controller_hostname: The hostname of the controller as seen by other
+# hosts. Shared by both the primary and secondary controller nodes.
+# * $controller_hostname_{primary,secondary}: The actual hostnames of the
+# primary/secondary controller nodes
+# * $controller_address_{primary,secondary}: The actual IP addresses of the
+# primary/secondary controller nodes
+
# deploy a script that can be used to test nova
class { 'openstack::test_file': }
@@ -70,9 +79,9 @@
# nodes use for the actual IP addresses
$controller_node_network = '192.168.101.0'
-$sql_connection = "mysql://nova:${nova_db_password}@${controller_node_address}/nova"
+$sql_connection = "mysql://nova:${nova_db_password}@${controller_node_address}/nova"
-# /etc/hosts entries for the primary/secondary controllers
+# /etc/hosts entries for the controller nodes
host { $controller_hostname_primary:
ip => $controller_node_primary
}
View
@@ -1,3 +1,31 @@
+#
+# This can be used to build an HA-enabled openstack controller
+#
+# [volume_group] Volume group to be used for data replication
+# [logical_volume] Logical volume to be used for data replication
+# [primary_hostname] Hostname of the primary/active controller node
+# [secondary_hostname] Hostname of the secondary/fallback controller node
+# [controller_hostname] Public/shared hostname for the controller nodes
+# [primary_address] IP address of the primary/active controller node
+# [secondary_address] IP address of the secondary/passive controller node
+# [public_address] Shared IP address for controller nodes. Must match
+# openstack::controller::public_address
+# [internal_address] Shared IP address for controller nodes. Must match
+# openstack::controller::internal_address
+# [ha_primary] Whether or not this node is the primary/active controller
+# [corosync_address] The address corosync should listen listen on.
+# [initial_setup] If false, potentially dangerous operations are disabled
+# [corosync_unicast] If true, corosync will be configured for unicast.
+# Defaults to false
+# [multicast_address] The multicast address for corosync to listen on
+# [drbd_resource] The name of the DRBD resource for replication
+# [drbd_device] The DRBD device to use for replication
+# [multi_host] Whether openstack is configured for multihost mode.
+# Defaults to true. false is currently unsupported
+# [stonith_enabled] Whether to use pacemaker STONITH. Requires additional
+# configuration in order to enable. If it is enabled
+# without proper system configuration, corosync will fail
+# to function properly.
class openstack_admin::controller::ha(
$volume_group,
$logical_volume,
@@ -17,7 +45,7 @@
$multicast_address = '226.94.1.1',
$drbd_resource = 'openstack',
$drbd_device = 'drbd0',
- $multi_host = false,
+ $multi_host = true,
$stonith_enabled = 'false'
) {

0 comments on commit 0e676a5

Please sign in to comment.