25a962a6eb
Since 79ab95b16e78d563c473b5acada62cb3e22d4eb1 dib-lint ensure every element shell scripts have “set -e” activated. Even if dib-lint doesn't test it yet, the set -u is already widely used. As pointed out by Jiri Stransky, elements/tripleo-cd/configs/* files are sourced by deploy-testenv. There is no reason to enable “set -ue” manually. The patch just disable the dib-lint “sete” check on these files. Change-Id: I118c8c80ec50b265c22577b075d15f56389b7a47
14 lines
471 B
Bash
Executable File
14 lines
471 B
Bash
Executable File
#!/bin/bash
|
|
set -ue
|
|
|
|
install -m 0755 -o root -g root $(dirname $0)/../bin/filter-bootps /usr/local/bin/filter-bootps
|
|
cat > /etc/cron.d/filter-bootps <<EOF
|
|
# Ensure we don't answer BOOTP for bare metal nodes not registered with nova.
|
|
# This is primarily important on the seed node which is only meant to manage
|
|
# the undercloud nodes, not overcloud nodes.
|
|
SHELL=/bin/sh
|
|
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
|
|
|
*/1 * * * * root filter-bootps
|
|
EOF
|