The default cluster can be renamed

* dicos/29_one-master.xml: “one_cluster_name” store the name of the
  default cluster.

* postservice/30-one-mng: take care of the customizable cluster name.

* postservice/31-one-netmng: ditoo.

* scripts/onehost_create_all: ditoo.

Ref: #23553
This commit is contained in:
Daniel Dehennin
2018-04-09 10:23:41 +02:00
parent 1a911bd9fc
commit 939f1b7591
4 changed files with 38 additions and 49 deletions

View File

@ -24,9 +24,7 @@ function copy_ssh_id()
#
function register_node()
{
# ref https://dev-eole.ac-dijon.fr/issues/16797
#cmd="onehost create -i kvm -v kvm -n ovswitch -c \"$(CreoleGet one_cluster_name)\" ${1}"
cmd="onehost create -i kvm -v kvm -n ovswitch -c \"default\" ${1}"
cmd="onehost create -i kvm -v kvm -n ovswitch -c 0 ${1}"
ret=$(su - ${ONEUSER} -c -- "${cmd}")
return $?
}