Skip to content

Commit

Permalink
Merge pull request #4 from newrelic-experimental/version-bumps
Browse files Browse the repository at this point in the history
Version bumps
  • Loading branch information
ericmittelhammer authored Jul 1, 2021
2 parents 6d88f49 + 130695a commit b5aeae0
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 9 deletions.
3 changes: 1 addition & 2 deletions ansible-playbooks/roles/kafka-distribution/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
kafka_user: kafka
kafka_version: 2.6.0
kafka_version: 2.8.0
kafka_scala_version: 2.13
kafka_download_mirror_prefix: "http://mirror.cc.columbia.edu/pub/software/apache/kafka"
kafka_install_dir: /opt
16 changes: 15 additions & 1 deletion ansible-playbooks/roles/kafka-distribution/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,26 @@
name: "{{ kafka_user }}"
comment: Created by ansible

- name: Get Apache mirrors
uri:
url: "{{ apache_closer_url }}"
method: "GET"
register: apache_mirrors

- name: Set Download URL
set_fact:
download_url: "{{ apache_mirrors.json.preferred }}{{ apache_mirrors.json.path_info }}"

- name: Print Download URL
debug:
var: download_url

- name: Download Kafka Distribution
become: yes
become_user: "{{ kafka_user }}"
get_url:
dest: "/home/{{ kafka_user }}/{{ kafka_download_filename }}"
url: "{{ kafka_download_url }}"
url: "{{ download_url }}"

- name: Uncompress the kafka tar
become: yes
Expand Down
4 changes: 2 additions & 2 deletions ansible-playbooks/roles/kafka-distribution/vars/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apache_closer_url: "https://www.apache.org/dyn/closer.cgi?path=/kafka/{{ kafka_version }}/kafka_{{ kafka_scala_version }}-{{ kafka_version }}.tgz&as_json=1"
kafka_download_filename: "kafka_{{ kafka_scala_version }}-{{ kafka_version }}.tgz"
kafka_download_url: "{{ kafka_download_mirror_prefix }}/{{ kafka_version }}/{{ kafka_download_filename }}"
kafka_versioned_home_dir: "{{ kafka_install_dir }}/{{ kafka_download_filename | regex_replace('(kafka_[\\d\\.]+-[\\d\\.]+).tgz$', '\\1')}}"
kafka_versioned_home_dir: "{{ kafka_install_dir }}/kafka_{{ kafka_scala_version }}-{{ kafka_version }}"
kafka_home_dir: "{{ kafka_install_dir }}/kafka"
3 changes: 2 additions & 1 deletion applications/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
docker-compose.override.yml
.gradle
.idea
.idea
build/
2 changes: 1 addition & 1 deletion applications/consumer/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ repositories {
jcenter()
}

def newrelicVersion = "6.1.0"
def newrelicVersion = "7.0.1"

configurations {
newrelicAgent
Expand Down
2 changes: 1 addition & 1 deletion applications/producer/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ repositories {
jcenter()
}

def newrelicVersion = "6.1.0"
def newrelicVersion = "7.0.1"

configurations {
newrelicAgent
Expand Down
2 changes: 1 addition & 1 deletion terraform/playground/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ variable "new_relic_license_key" {

variable "project_name" {
type = string
default = "newrelic-kakfa-playground"
default = "newrelic-kafka-playground"
}

variable "vpc_id" {
Expand Down

0 comments on commit b5aeae0

Please sign in to comment.