koji_builder: move update to templates for stg/prod
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
e13df4173b
commit
f545ece040
2 changed files with 1 additions and 16 deletions
|
@ -1,15 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
/usr/sbin/ipset create osbuildapi hash:ip >& /dev/null
|
||||
|
||||
RESOLVEQUERY=`resolvectl --cache=no --legend=no query api.stage.openshift.com 2> /dev/null`
|
||||
test $? -eq 0 || exit $?
|
||||
|
||||
NEWIPS=`echo $RESOLVEQUERY | grep link | awk '{print $2 " " $6}' | sort -n`
|
||||
#APIIP=`resolvectl --cache=no --legend=no query api.stage.openshift.com | grep link | sed -e "s|api.stage.openshift.com:||" | awk '{print $1}'`
|
||||
|
||||
/usr/sbin/ipset flush osbuildapi
|
||||
for j in $NEWIPS
|
||||
do
|
||||
/usr/sbin/ipset add osbuildapi $j
|
||||
done
|
|
@ -358,7 +358,7 @@
|
|||
- koji_builder/oomd
|
||||
|
||||
- name: install script to update osbuild api ip in the firewall
|
||||
copy: src=osbuildapi-update.sh dest=/usr/local/bin/osbuildapi-update.sh mode=755
|
||||
template: src=osbuildapi-update.sh dest=/usr/local/bin/osbuildapi-update.sh mode=755
|
||||
tags:
|
||||
- koji_builder
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue