diff options
author | Justin chi <chigang@huawei.com> | 2016-10-28 16:06:57 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2016-10-28 16:06:57 +0000 |
commit | f529f05f56c10659f2499090b2e6a3c56ac8db76 (patch) | |
tree | 034968be86cafb96ae0bd651bcb8e392c62b37b2 /build/make_repo.sh | |
parent | 673651d92c4d5063cbc04c954d6cb75a91b6601c (diff) | |
parent | 98dda31adb4087d7598c577fea2caa94ffadb057 (diff) |
Merge "add osp9 ppa create scripts"
Diffstat (limited to 'build/make_repo.sh')
-rwxr-xr-x | build/make_repo.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/build/make_repo.sh b/build/make_repo.sh index 7c327c97..2752cf10 100755 --- a/build/make_repo.sh +++ b/build/make_repo.sh @@ -104,6 +104,12 @@ function make_repo() os_name=centos fi + if [[ ${os_ver} =~ redhat[0-9]*$ ]]; then + arch=RedHat + os_name=redhat + tmpl=${BUILD_PATH}/templates/${arch}_${os_ver}_${package_tag}.tmpl + fi + if [[ -z $arch ]]; then echo "unsupported ${os_ver} os" exit 1 @@ -316,6 +322,7 @@ EOF fi } +# FIXME: rhel7 -> centos7, redhat7 -> rhel7 function make_all_repo() { # for env_os in trusty xanial rhel7; do @@ -359,6 +366,12 @@ function make_all_repo() --default-package "rsyslog-7.6.7-1.el7 strace net-tools wget vim openssh-server \ dracut-config-rescue-033-241.el7_1.5 dracut-network-033-241.el7_1.5" done + + for opv in osp9; do + make_repo --os-ver redhat7 --package-tag $opv \ + --ansible-dir $WORK_PATH/deploy/adapters/ansible \ + --default-package "strace net-tools wget vim openssh-server" + done } function main() |