Merge "Move fluentd td.repo to base for consistency"
This commit is contained in:
commit
6cdb294960
|
@ -42,13 +42,13 @@ RUN CURRENT_DISTRO_RELEASE=$(awk '{match($0, /[0-9]+/,version)}END{print version
|
|||
&& sed -i 's|^\(override_install_langs=.*\)|# \1|' /etc/yum.conf
|
||||
|
||||
#### BEGIN REPO ENABLEMENT
|
||||
# Turns on Elasticsearch repos
|
||||
{% set base_yum_repo_files = [
|
||||
'elasticsearch.repo',
|
||||
'grafana.repo',
|
||||
'influxdb.repo',
|
||||
'kibana.yum.repo',
|
||||
'MariaDB.repo',
|
||||
'influxdb.repo',
|
||||
'grafana.repo',
|
||||
'td.repo',
|
||||
'zookeeper.repo'
|
||||
] %}
|
||||
{%- for repo_file in base_yum_repo_files | customizable('yum_repo_files') %}
|
||||
|
@ -65,7 +65,8 @@ COPY {{ repo_file }} /etc/yum.repos.d/{{ repo_file }}
|
|||
'https://packages.elastic.co/GPG-KEY-elasticsearch',
|
||||
'https://repos.influxdata.com/influxdb.key',
|
||||
'https://packagecloud.io/gpg.key',
|
||||
'https://grafanarel.s3.amazonaws.com/RPM-GPG-KEY-grafana'
|
||||
'https://grafanarel.s3.amazonaws.com/RPM-GPG-KEY-grafana',
|
||||
'https://packages.treasuredata.com/GPG-KEY-td-agent'
|
||||
] %}
|
||||
|
||||
{%- for key in base_yum_repo_keys | customizable('yum_repo_keys') %}
|
||||
|
@ -252,6 +253,7 @@ COPY apt_preferences.{{ base_distro }} /etc/apt/preferences
|
|||
{# 46095ACC8548582C1A2699A9D27D666CD88E42B4 -- Elasticsearch (Elasticsearch Signing Key) <dev_ops@elasticsearch.org> #}
|
||||
{# 4D1BB29D63D98E422B2113B19334A25F8507EFA5 -- Percona MySQL Development Team (Packaging key) <mysql-dev@percona.com> #}
|
||||
{# 58118E89F3A912897C070ADBF76221572C52609D -- Docker Release Tool (releasedocker) <docker@docker.com> #}
|
||||
{# 901F9177AB97ACBE -- Treasure Data, Inc (Treasure Agent Official Signing key) <support@treasure-data.com> #}
|
||||
{% set base_apt_keys = [
|
||||
'05CE15085FC09D18E99EFB22684A14CF2582E0C5',
|
||||
'177F4010FE56CA3336300305F1656F24C74CD1D8',
|
||||
|
@ -260,6 +262,7 @@ COPY apt_preferences.{{ base_distro }} /etc/apt/preferences
|
|||
'46095ACC8548582C1A2699A9D27D666CD88E42B4',
|
||||
'4D1BB29D63D98E422B2113B19334A25F8507EFA5',
|
||||
'58118E89F3A912897C070ADBF76221572C52609D',
|
||||
'901F9177AB97ACBE',
|
||||
] %}
|
||||
{% elif base_distro == 'debian' %}
|
||||
{% set base_apt_keys = [
|
||||
|
@ -268,6 +271,7 @@ COPY apt_preferences.{{ base_distro }} /etc/apt/preferences
|
|||
'D27D666CD88E42B4',
|
||||
'05CE15085FC09D18E99EFB22684A14CF2582E0C5',
|
||||
'418A7F2FB0E1E6E7EABF6FE8C2E73424D59097AB',
|
||||
'901F9177AB97ACBE',
|
||||
] %}
|
||||
{% set base_apt_packages = base_apt_packages +
|
||||
['sudo',]
|
||||
|
|
|
@ -30,3 +30,6 @@ deb https://repos.influxdata.com/debian jessie stable
|
|||
|
||||
# Grafana repo
|
||||
deb https://packagecloud.io/grafana/stable/debian/ jessie main
|
||||
|
||||
# Fluentd repo
|
||||
deb http://packages.treasuredata.com/2/debian/jessie/ jessie contrib
|
||||
|
|
|
@ -30,3 +30,6 @@ deb https://repos.influxdata.com/ubuntu xenial stable
|
|||
|
||||
# Grafana repo
|
||||
deb https://packagecloud.io/grafana/stable/debian/ jessie main
|
||||
|
||||
# Fluentd repo
|
||||
deb http://packages.treasuredata.com/2/ubuntu/xenial/ xenial contrib
|
||||
|
|
|
@ -9,10 +9,6 @@ MAINTAINER {{ maintainer }}
|
|||
|
||||
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
|
||||
|
||||
RUN rpm --import https://packages.treasuredata.com/GPG-KEY-td-agent
|
||||
|
||||
COPY td.repo /etc/yum.repos.d/td.repo
|
||||
|
||||
{% set fluentd_packages = [
|
||||
'td-agent',
|
||||
'gcc-c++',
|
||||
|
@ -21,10 +17,6 @@ COPY td.repo /etc/yum.repos.d/td.repo
|
|||
|
||||
{% elif base_distro in ['ubuntu', 'debian'] %}
|
||||
|
||||
RUN curl https://packages.treasuredata.com/GPG-KEY-td-agent | apt-key add - \
|
||||
&& echo "deb http://packages.treasuredata.com/2/ubuntu/xenial/ xenial contrib" > /etc/apt/sources.list.d/treasure-data.list \
|
||||
&& apt-get update
|
||||
|
||||
{% set fluentd_packages = [
|
||||
'td-agent',
|
||||
'make',
|
||||
|
|
Loading…
Reference in New Issue