diff options
author | 2016-11-24 08:47:48 +0000 | |
---|---|---|
committer | 2016-11-24 08:47:48 +0000 | |
commit | 36f5cffcf373a8a12677c8e406cd11c8d9ffe2bb (patch) | |
tree | a20455421b7bdf19890032ce4da74ceee3a46762 /repo/openstack/make_ppa/centos/rhel7/compass | |
parent | 2446530c3230221d76877851012eb39e2a7c0360 (diff) | |
parent | 35086233fdfb4163c589fc258229a931bb02df1a (diff) |
Merge "Create make_repo directory and optimize the current repo making related script"
Diffstat (limited to 'repo/openstack/make_ppa/centos/rhel7/compass')
-rw-r--r-- | repo/openstack/make_ppa/centos/rhel7/compass/download_pkg.tmpl | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/repo/openstack/make_ppa/centos/rhel7/compass/download_pkg.tmpl b/repo/openstack/make_ppa/centos/rhel7/compass/download_pkg.tmpl new file mode 100644 index 00000000..1cb34b49 --- /dev/null +++ b/repo/openstack/make_ppa/centos/rhel7/compass/download_pkg.tmpl @@ -0,0 +1,42 @@ +#!/bin/bash +set -x + +# add openstack kilo repo +yum install http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm -y +yum install http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm -y + +cat << EOF >/etc/yum.repos.d/elasticsearch.repo +[elasticsearch-2.x] +name=Elasticsearch repository for 2.x packages +baseurl=http://packages.elastic.co/elasticsearch/2.x/centos +gpgcheck=1 +gpgkey=http://packages.elastic.co/GPG-KEY-elasticsearch +enabled=1 +EOF + +cat << EOF >/etc/yum.repos.d/logstash.repo +[logstash-2.0] +name=Logstash repository for 2.0.x packages +baseurl=http://packages.elastic.co/logstash/2.0/centos +gpgcheck=1 +gpgkey=http://packages.elastic.co/GPG-KEY-elasticsearch +enabled=1 +EOF + +yum update -y + +mkdir -p /centos7-compass-core +yum -y reinstall bind-license --downloadonly --downloaddir=/centos7-compass-core +yum -y reinstall openssl-libs --downloadonly --downloaddir=/centos7-compass-core + +#download packages +#set packages = $getVar('default_packages', []) +yum -y install --skip-broken --downloadonly --downloaddir=/centos7-compass-core #echo ' '.join(packages) +#set packages = $getVar('packages', []) +yum -y install --skip-broken --downloadonly --downloaddir=/centos7-compass-core #echo ' '.join(packages) +#make repo + +find /var/cache/yum/ -name "*.rpm" | xargs -i cp {} /centos7-compass-core + +yum install tar -y +tar -zcvf /centos7-compass-core.tar.gz /centos7-compass-core |