-
-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EL6/7 and CentOS 6/7 support for st2 and st2repos #66
Changes from all commits
36329a6
8f1e76b
6a4467f
5a1f2e4
c40a809
f6ac495
f87c472
81af829
455c7f4
8877d9d
2c388f3
9f5c41e
df414fe
c3ee82f
3c1fd14
025ed66
82f7072
7998048
6448f3b
6984fae
15ba22e
80032d9
09df69b
1904363
7254866
acce004
0ad201d
da000f6
abb465e
6abec30
07b08bc
709bc97
92f82ee
f5bb4b5
edcb8a2
7fa3a70
9c52c7b
100ca71
9988842
56ed120
3c3f272
d8714bb
e9ed597
13d1d4c
968b9e5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
galaxy_info: | ||
description: Install EPEL repository | ||
author: mierdin | ||
company: StackStorm | ||
license: Apache | ||
min_ansible_version: 1.9 | ||
platforms: | ||
- name: Ubuntu | ||
versions: | ||
- trusty | ||
- precise | ||
- name: EL | ||
versions: | ||
- 6 | ||
- 7 | ||
categories: | ||
- system |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
- name: Check if EPEL is installed | ||
stat: | ||
path: /etc/yum.repos.d/epel.repo | ||
register: epel_installed | ||
when: ansible_os_family == "RedHat" | ||
|
||
- name: Install EPEL repo | ||
become: yes | ||
yum: | ||
name: "https://dl.fedoraproject.org/pub/epel/epel-release-latest-{{ ansible_distribution_major_version }}.noarch.rpm" | ||
state: present | ||
when: ansible_os_family == "RedHat" and not epel_installed.stat.exists |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,5 @@ galaxy_info: | |
- 7 | ||
categories: | ||
- system | ||
dependencies: | ||
- { role: 'epel', when: ansible_os_family == 'RedHat' } |
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
@@ -0,0 +1,23 @@ | ||||
--- | ||||
- name: Install prereqs (Debian) | ||||
become: yes | ||||
apt: | ||||
name: "{{ item }}" | ||||
state: present | ||||
with_items: | ||||
- debian-archive-keyring | ||||
- apt-transport-https | ||||
|
||||
- name: Add keys to keyring | ||||
become: yes | ||||
apt_key: | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it would be more solid if we check See example with Mongo:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Where would I go about finding that? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nevermind, added in f6ac495 |
||||
id: 418A7F2FB0E1E6E7EABF6FE8C2E73424D59097AB | ||||
url: https://packagecloud.io/StackStorm/{{ st2_pkg_repo }}/gpgkey | ||||
state: present | ||||
|
||||
- name: Add StackStorm repos | ||||
become: yes | ||||
apt_repository: | ||||
repo: 'deb https://packagecloud.io/StackStorm/{{ st2_pkg_repo }}/{{ ansible_distribution|lower }}/ {{ ansible_distribution_release|lower }} main' | ||||
state: present | ||||
update_cache: yes |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,4 @@ | ||
--- | ||
- name: Install prereqs | ||
become: yes | ||
apt: | ||
name: "{{ item }}" | ||
state: present | ||
with_items: | ||
- debian-archive-keyring | ||
- apt-transport-https | ||
# tasks file for st2repos | ||
|
||
- name: Add keys to keyring | ||
become: yes | ||
apt_key: | ||
url: https://packagecloud.io/StackStorm/{{ st2_pkg_repo }}/gpgkey | ||
state: present | ||
|
||
- name: Add StackStorm repos | ||
become: yes | ||
apt_repository: | ||
repo: 'deb https://packagecloud.io/StackStorm/{{ st2_pkg_repo }}/{{ ansible_distribution|lower }}/ {{ ansible_distribution_release|lower }} main' | ||
state: present | ||
update_cache: yes | ||
- include: "{{ ansible_os_family|lower }}.yml" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
# Fixes "Failure talking to yum: Cannot retrieve repository metadata (repomd.xml) for repository: StackStorm_stable. Please verify its path and try again" when installing st2 | ||
- name: Update ca-certificates package | ||
become: yes | ||
yum: | ||
name: ca-certificates | ||
state: latest | ||
tags: skip_ansible_lint | ||
|
||
- name: Add ST2 Repo | ||
become: yes | ||
yum_repository: | ||
name: "StackStorm_{{ st2_pkg_repo }}" | ||
description: "StackStorm_{{ st2_pkg_repo }}" | ||
file: "StackStorm_{{ st2_pkg_repo }}" | ||
baseurl: https://packagecloud.io/StackStorm/{{ st2_pkg_repo }}/el/{{ ansible_distribution_major_version }}/$basearch | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So seems this is good enough and doesn't look as hack anymore 👍 I think we can close the #89 now, just add a note that we should always use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yup, cool. Closed #89 |
||
repo_gpgcheck: yes | ||
gpgkey: "https://packagecloud.io/StackStorm/{{ st2_pkg_repo }}/gpgkey" | ||
sslcacert: /etc/pki/tls/certs/ca-bundle.crt | ||
metadata_expire: 300 | ||
gpgcheck: no | ||
enabled: yes | ||
sslverify: yes | ||
register: st2_repo_installed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍