3cef337bfd
When building undercloud image, we rely on copied env variables and default configuration of sudoers.d. By default, sudo is not allowed to keep env variables like proxies. To bypass this problem, pass all environment variables with sudo. Change-Id: Ice90916bbf9a3a7b468f4e68cd783f445c806cfc
10 lines
348 B
Bash
Executable File
10 lines
348 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eux
|
|
|
|
# Install repo file for Delorean el7 midstream packages built from
|
|
# rdo-management.
|
|
export DELOREAN_TRUNK_MGT_REPO=${DELOREAN_TRUNK_MGT_REPO:-"http://trunk-mgt.rdoproject.org/centos-kilo/current-passed-ci"}
|
|
sudo -E curl -o /etc/yum.repos.d/delorean-rdo-management.repo $DELOREAN_TRUNK_MGT_REPO/delorean-rdo-management.repo
|
|
|