Author: xwhu Date: Wed Jun 15 05:16:26 2011 New Revision: 64364 URL: http://svn.opensuse.org/viewcvs/yast?rev=64364&view=rev Log: Add sysconfig agent for pacemaker and openais Modified: trunk/cluster/agents/Makefile.am trunk/cluster/src/Cluster.ycp trunk/cluster/src/dialogs.ycp Modified: trunk/cluster/agents/Makefile.am URL: http://svn.opensuse.org/viewcvs/yast/trunk/cluster/agents/Makefile.am?rev=64... ============================================================================== --- trunk/cluster/agents/Makefile.am (original) +++ trunk/cluster/agents/Makefile.am Wed Jun 15 05:16:26 2011 @@ -3,6 +3,8 @@ agent_SCRIPTS = ag_openais scrconf_DATA = openais.scr \ - csync2_ha.scr + csync2_ha.scr \ + cfg_pacemaker.scr \ + cfg_openais.scr EXTRA_DIST = $(agent_SCRIPTS) $(scrconf_DATA) Modified: trunk/cluster/src/Cluster.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/cluster/src/Cluster.ycp?rev=64364... ============================================================================== --- trunk/cluster/src/Cluster.ycp (original) +++ trunk/cluster/src/Cluster.ycp Wed Jun 15 05:16:26 2011 @@ -258,6 +258,9 @@ SCR::Write(.csync2_ha.value.ha_group.host, csync2_host); SCR::Write(.csync2_ha.value.ha_group.include, csync2_include); SCR::Write(.csync2_ha.value.ha_group.key, [csync2_key_file]); + + SCR::Write(.sysconfig.pacemaker.LRMD_MAX_CHILDREN, 4); + SCR::Write(.sysconfig.openais.COROSYNC_DEFAULT_CONFIG_IFACE, "openaisserviceenableexperimental:corosync_parser"); } /** Modified: trunk/cluster/src/dialogs.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/cluster/src/dialogs.ycp?rev=64364... ============================================================================== --- trunk/cluster/src/dialogs.ycp (original) +++ trunk/cluster/src/dialogs.ycp Wed Jun 15 05:16:26 2011 @@ -45,7 +45,8 @@ include "cluster/helps.ycp"; include "cluster/common.ycp"; -list<string> csync2_suggest_files = ["/etc/corosync/corosync.conf", "/etc/corosync/authkey", "/etc/sysconfig/pacemaekr", "/etc/drbd.d", "/etc/lvm/lvm.conf", "/etc/multipath.conf", "/etc/ha.d/ldirectord.cf", "/etc/ctdb/nodes", "/etc/samba/smb.conf"]; +list<string> csync2_suggest_files = ["/etc/corosync/corosync.conf", "/etc/corosync/authkey", "/etc/sysconfig/pacemaker", "/etc/drbd.d", "/etc/lvm/lvm.conf", "/etc/multipath.conf", "/etc/ha.d/ldirectord.cf", "/etc/ctdb/nodes", "/etc/samba/smb.conf", "/etc/sysconfig/pacemaker", "/etc/sysconfig/openais"]; + string csync2_port = "30865"; // return `cacel or a string @@ -527,6 +528,7 @@ } if (ret == "start_now") { + Cluster::save_csync2_conf(); Cluster::SaveClusterConfig(); if (!Service::Start("openais")) { Report::Error(Service::Error()); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org