Be smarter about default NODE_DIST
Instead of always defaulting to Fedora, default to whatever the host distro is.
This commit is contained in:
parent
2be94d3d1b
commit
33b553b8a4
|
@ -15,7 +15,14 @@ source "$INSTACK_ROOT"/instack-undercloud/instack-sourcerc
|
|||
export TMP_DIR=${TMP_DIR:-/var/tmp}
|
||||
|
||||
export NODE_ARCH=${NODE_ARCH:-amd64}
|
||||
export NODE_DIST=${NODE_DIST:-"fedora"}
|
||||
# TODO(bnemec): This should use set-os-type from tripleo-incubator, but that's
|
||||
# currently broken for rhel7.
|
||||
if $(grep -Eqs 'Red Hat Enterprise Linux Server release 7' /etc/redhat-release); then
|
||||
DEFAULT_DIST=rhel7
|
||||
else
|
||||
DEFAULT_DIST=fedora
|
||||
fi
|
||||
export NODE_DIST=${NODE_DIST:-$DEFAULT_DIST}
|
||||
export DEPLOY_IMAGE_ELEMENT=${DEPLOY_IMAGE_ELEMENT:-deploy-ironic}
|
||||
export DEPLOY_NAME=${DEPLOY_NAME:-deploy-ramdisk-ironic}
|
||||
export DISCOVERY_IMAGE_ELEMENT=${DISCOVERY_IMAGE_ELEMENT:-discovery-ironic}
|
||||
|
|
|
@ -43,7 +43,14 @@ fi
|
|||
export NODE_COUNT=${NODE_COUNT:-4}
|
||||
export NODE_CNT=$NODE_COUNT
|
||||
|
||||
export NODE_DIST=${NODE_DIST:-"fedora"}
|
||||
# TODO(bnemec): This should use set-os-type from tripleo-incubator, but that's
|
||||
# currently broken for rhel7.
|
||||
if $(grep -Eqs 'Red Hat Enterprise Linux Server release 7' /etc/redhat-release); then
|
||||
DEFAULT_DIST=rhel7
|
||||
else
|
||||
DEFAULT_DIST=fedora
|
||||
fi
|
||||
export NODE_DIST=${NODE_DIST:-$DEFAULT_DIST}
|
||||
export NODE_ARCH=${NODE_ARCH:-x86_64}
|
||||
export NODE_MEM=${NODE_MEM:-4096}
|
||||
|
||||
|
|
Loading…
Reference in New Issue