-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8f56a83
commit e254430
Showing
11 changed files
with
85 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/.vagrant |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,18 @@ | ||
> **Note:** Work in progress | ||
> **Note:** Collection is work in progress | ||
# ansible-collection-influxdb | ||
|
||
Install and configure InfluxDB | ||
Collection to manage InfluxDB repository and setup. | ||
|
||
It was created with the aim of refreshing my Ansible knowledge and getting in touch with Collections. Any hints for improvements are therefore welcome. | ||
|
||
## Supported systems | ||
| Distribution | Tested on | | ||
|--------------|-----------| | ||
| Ubuntu | 22.04 | | ||
| Centos | 9 Stream | | ||
|
||
## Roles | ||
|
||
* repos | ||
* influxdb (TODO) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# -*- mode: ruby -*- | ||
# vi: set ft=ruby : | ||
# you're doing. | ||
Vagrant.configure("2") do |config| | ||
config.vm.define "ubuntu" do |ubuntu| | ||
ubuntu.vm.hostname = "influxdb-ubuntu" | ||
ubuntu.vm.box = "bento/ubuntu-22.04" | ||
ubuntu.vm.provision "ansible" do |ansible| | ||
ansible.playbook = "vagrant-tests.yml" | ||
end | ||
end | ||
|
||
config.vm.define "centos" do |centos| | ||
centos.vm.hostname = "influxdb-centos" | ||
centos.vm.box = "eurolinux-vagrant/centos-stream-9" | ||
centos.vm.provision "ansible" do |ansible| | ||
ansible.playbook = "vagrant-tests.yml" | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
influxdb_repos_key_url: https://repos.influxdata.com/influxdata-archive.key |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
- name: apt - Add repositiory key | ||
ansible.builtin.apt_key: | ||
state: present | ||
url: "{{ influxdb_repos_key_url }}" | ||
|
||
- name: apt - Add repository to list | ||
ansible.builtin.apt_repository: | ||
repo: "{{ influxdb_repos_stable }}" | ||
state: present |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
- name: yum - Add repositiory key | ||
ansible.builtin.rpm_key: | ||
state: present | ||
key: "{{ influxdb_repos_key_url }}" | ||
|
||
- name: yum - Add repository to list | ||
ansible.builtin.yum_repository: | ||
state: present | ||
name: influxdb | ||
description: Stable InfluxDB repository | ||
baseurl: "{{ influxdb_repos_stable_baseurl }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
- name: Include OS specific vars | ||
ansible.builtin.include_vars: "{{ lookup('first_found', params) }}" | ||
vars: | ||
params: | ||
files: | ||
- "{{ ansible_os_family }}.yml" | ||
- default.yml | ||
paths: | ||
- "{{ role_path }}/vars" | ||
|
||
- name: Add repositories | ||
ansible.builtin.include_tasks: "{{ ansible_os_family }}.yml" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
influxdb_repos_stable: "deb https://repos.influxdata.com/{{ ansible_distribution|lower }} {{ ansible_distribution_release|lower }} stable" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
influxdb_repos_stable_baseurl: "https://repos.influxdata.com/rhel/$releasever/$basearch/stable" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
# default variables for influxdb.repos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
- hosts: all | ||
become: true | ||
|
||
roles: | ||
- repos |