DNM: Verifying resolv.conf in Zuul gates
Change-Id: If2824f2b71d58c707b3ce95bfdf5fc7cda501b1b Signed-off-by: Drew Walters <andrew.walters@att.com>
This commit is contained in:
parent
35733a4151
commit
6c677a292a
|
@ -161,6 +161,7 @@
|
|||
voting: false
|
||||
timeout: 9600
|
||||
pre-run:
|
||||
- tools/gate/playbooks/resolvconf-config.yaml
|
||||
- tools/gate/playbooks/git-config.yaml
|
||||
- tools/gate/playbooks/airskiff-reduce-site.yaml
|
||||
run: tools/gate/playbooks/airskiff-deploy-gate.yaml
|
||||
|
@ -182,6 +183,7 @@
|
|||
voting: false
|
||||
timeout: 9600
|
||||
pre-run:
|
||||
- tools/gate/playbooks/resolvconf-config.yaml
|
||||
- tools/gate/playbooks/git-config.yaml
|
||||
- tools/gate/playbooks/airskiff-reduce-site.yaml
|
||||
run: tools/gate/playbooks/airskiff-deploy-gate.yaml
|
||||
|
|
|
@ -40,4 +40,6 @@ if echo $(groups) | grep -qv 'docker'; then
|
|||
fi
|
||||
END_SCRIPT
|
||||
|
||||
cat /etc/resolv.conf
|
||||
|
||||
cd "${CURRENT_DIR}"
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
# Copyright 2019, AT&T Intellectual Property
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
- hosts: ubuntu-bionic
|
||||
tasks:
|
||||
- name: Remove localhost from resolv.conf
|
||||
shell: |
|
||||
set -xe;
|
||||
sed -i '/127.0.0.1/d' /etc/resolv.conf
|
||||
args:
|
||||
chdir: "{{ zuul.project.src_dir }}"
|
||||
become: yes
|
Loading…
Reference in New Issue