diff options
author | QiLiang <liangqi1@huawei.com> | 2016-10-27 05:58:13 +0800 |
---|---|---|
committer | QiLiang <liangqi1@huawei.com> | 2016-10-27 05:59:37 +0800 |
commit | 98dda31adb4087d7598c577fea2caa94ffadb057 (patch) | |
tree | 2ace5eb0aef57223d59ba56ad1b86f3caf6b809e /build/make_repo.sh | |
parent | dde596264dadaa3e530adc4e30f9205edfaff3ba (diff) |
add osp9 ppa create scripts
JIRA: -
Change-Id: I404f2ddb652d9b166a6162de14cb1d2a166d226b
Signed-off-by: QiLiang <liangqi1@huawei.com>
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() |