forked from brianjmurrell/iml-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure node names are FQDNs when configuring pacemaker (#74)
* Ensure node names are FQDNs when configuring pacemaker This can happen if corosync ring0 was configured via IP instead of FQDN Signed-off-by: Nathaniel Clark <[email protected]> * Fixup test cases Signed-off-by: Nathaniel Clark <[email protected]> * Fix typo Signed-off-by: Nathaniel Clark <[email protected]> * Update VERSION to 4.1.4-2 Ensure this is used over base Signed-off-by: Nathaniel Clark <[email protected]> * Pass optional fqdn to configure_corosync2_stage_1 If FQDN is passed, set hostname to this. Signed-off-by: Nathaniel Clark <[email protected]> * Add Tests for optional set-hostname in corosync2_stage1 Signed-off-by: Nathaniel Clark <[email protected]> * Don't need to import socket anymore * Version Bump to 4.1.5 Signed-off-by: Nathaniel Clark <[email protected]> * fix copr makefile Support docker build in /build or in . for normal copr builds Signed-off-by: Nathaniel Clark <[email protected]> * Catch no nodes configured in pacemaker when is_dc() called Signed-off-by: Nathaniel Clark <[email protected]> * Also catch StopIteration Signed-off-by: Nathaniel Clark <[email protected]>
- Loading branch information
1 parent
b39ccff
commit 3df1d2f
Showing
7 changed files
with
54 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
BUILDROOT:=$(shell [ -d "/build" ] && echo "/build" || echo ".") | ||
TMPDIR:=$(shell mktemp -d) | ||
|
||
srpm: | ||
rm -rf /tmp/_topdir | ||
rm -rf /tmp/scratch | ||
mkdir -p /tmp/_topdir/SOURCES | ||
mkdir -p /tmp/scratch | ||
rm -rf /build/_topdir | ||
cp -r /build/* /tmp/scratch | ||
cd /tmp/scratch; \ | ||
python setup.py sdist -d /tmp/_topdir/SOURCES/ | ||
python --version || dnf -y install python2-setuptools | ||
mkdir -p ${TMPDIR}/_topdir/SOURCES | ||
mkdir -p ${TMPDIR}/scratch | ||
rm -rf ${BUILDROOT}/_topdir | ||
cp -r ${BUILDROOT}/* ${TMPDIR}/scratch | ||
cd ${TMPDIR}/scratch; \ | ||
python setup.py sdist -d ${TMPDIR}/_topdir/SOURCES/ | ||
|
||
rpmbuild -bs -D "_topdir ${TMPDIR}/_topdir" ${TMPDIR}/scratch/python-iml-agent.spec | ||
cp -r ${TMPDIR}/_topdir/SRPMS/* $(outdir) | ||
rm -rf ${TMPDIR} | ||
|
||
rpmbuild -bs -D "_topdir /tmp/_topdir" /tmp/scratch/python-iml-agent.spec | ||
cp -r /tmp/_topdir/SRPMS/* $(outdir) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
PACKAGE_VERSION = "4.1.4" | ||
PACKAGE_VERSION = "4.1.5" | ||
VERSION = "{}-1".format(PACKAGE_VERSION) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters