diff --git a/Makefile b/Makefile index 6a5584b..0176557 100644 --- a/Makefile +++ b/Makefile @@ -1,19 +1,23 @@ INIT_DIR=/etc/init.d RSC_DIR=/usr/lib/ocf/resource.d/pacemaker +CONF_DIR=/etc/booth BOOTH_SITE=./script/ocf/booth-site BOOTH_ARBITRATOR=./script/lsb/booth-arbitrator +BOOTH_CONF=./conf/booth.conf.example INSTALL=$(shell which install) all: ${MAKE} -C ./src install: ${MAKE} -C ./src install mkdir -p $(DESTDIR)/$(RSC_DIR) mkdir -p $(DESTDIR)/$(INIT_DIR) + mkdir -p $(DESTDIR)/$(CONF_DIR) $(INSTALL) -c -m 755 $(BOOTH_SITE) $(DESTDIR)/$(RSC_DIR) - $(INSTALL) -c -m 755 $(BOOTH_ARBITRATOR) $(DESTDIR)/$(INIT_DIR) + $(INSTALL) -c -m 755 $(BOOTH_ARBITRATOR) $(DESTDIR)/$(INIT_DIR) + $(INSTALL) -c -m 755 $(BOOTH_CONF) $(DESTDIR)/$(CONF_DIR) clean: ${MAKE} -C ./src clean diff --git a/conf/booth.conf.example b/conf/booth.conf.example new file mode 100644 index 0000000..d1fffcb --- /dev/null +++ b/conf/booth.conf.example @@ -0,0 +1,25 @@ +# The booth configuration file is "/etc/sysconfig/booth". You need to +# prepare the same booth configuration file on each arbitrator and +# each node in the cluster sites where the booth daemon can be launched. +# Here is an example of the configuration file: + +# "transport" means which transport layer booth daemon will use. +# Currently only "UDP" is supported. +transport="UDP" + +# The port that booth daemons will use to talk to each other. +port="6666" + +# The arbitrator IP. If you want to configure several arbitrators, +# you need to configure each arbitrator with a separate line. +arbitrator="147.2.207.14" + +# The site IP. The cluster site uses this IP to talk to other sites. +# Like arbitrator, you need to configure each site with a separate line. +site="147.4.215.19" +site="147.18.2.1" + +# The ticket name, which corresponds to a set of resources which can be +# fail-overed among different sites. +ticket="ticketA" +ticket="ticketB"