Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sol1 Ansible Roles
sol1-influxdb
Commits
6ef239e2
Commit
6ef239e2
authored
Apr 04, 2018
by
Christoper Klein
Browse files
[added] support for Fedora >= 27
parent
f6c6c5ee
Changes
3
Hide whitespace changes
Inline
Side-by-side
tasks/install-fedora.yml
0 → 100644
View file @
6ef239e2
---
-
name
:
Install any necessary dependencies [RedHat/Fedora]
dnf
:
name
:
"
{{
item
}}"
state
:
present
with_items
:
-
curl
-
name
:
Install any necessary PIP dependencies [RedHat/Fedora]
dnf
:
name
:
"
{{
item
}}"
state
:
present
with_items
:
-
python-pip
when
:
influxdb_install_python_client
-
name
:
Add InfluxData repository file [RHEL/Fedora]
template
:
src
:
etc/yum.repos.d/influxdata.fedora.repo.j2
dest
:
/etc/yum.repos.d/influxdata.repo
force
:
yes
backup
:
yes
when
:
influxdb_install_url is not defined or influxdb_install_url == None
-
name
:
Install InfluxDB packages [RHEL/Fedora]
dnf
:
name
:
influxdb
state
:
present
when
:
influxdb_install_url is not defined or influxdb_install_url == None
-
name
:
Install InfluxDB from URL [RHEL/Fedora]
dnf
:
name
:
"
{{
influxdb_install_url
}}"
state
:
present
when
:
influxdb_install_url is defined and influxdb_install_url != None
-
name
:
Capture installed InfluxDB version
command
:
rpm -q influxdb
register
:
reg_influxdb_version
-
debug
:
var=reg_influxdb_version.stdout_lines
tasks/install.yml
View file @
6ef239e2
---
-
include
:
install-redhat.yml
when
:
ansible_os_family == "RedHat"
when
:
ansible_os_family == "RedHat" and ansible_distribution != "Fedora"
-
include
:
install-fedora.yml
when
:
ansible_os_family == "RedHat" and ansible_distribution == "Fedora"
-
include
:
install-debian.yml
when
:
ansible_os_family == "Debian"
...
...
templates/etc/yum.repos.d/influxdata.fedora.repo.j2
0 → 100644
View file @
6ef239e2
[influxdb]
name = InfluxDB Repository - {{ ansible_distribution }} $releasever
baseurl = https://repos.influxdata.com/rhel/7Server/$basearch/{{ influxdb_install_version }}
enabled = 1
gpgcheck = 1
gpgkey = https://repos.influxdata.com/influxdb.key
sslverify = 1
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment