From 98dda31adb4087d7598c577fea2caa94ffadb057 Mon Sep 17 00:00:00 2001 From: QiLiang Date: Thu, 27 Oct 2016 05:58:13 +0800 Subject: add osp9 ppa create scripts JIRA: - Change-Id: I404f2ddb652d9b166a6162de14cb1d2a166d226b Signed-off-by: QiLiang --- build/make_repo.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'build/make_repo.sh') 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() -- cgit 1.2.3-korg