forked from theforeman/forklift
-
Notifications
You must be signed in to change notification settings - Fork 1
/
02-install.yml
58 lines (56 loc) · 1.92 KB
/
02-install.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
---
- name: Enable Postgresql 12 module if necessary
become: True
hosts:
- "{{ forklift_name }}"
vars_files:
- ../vars/forklift_pulpcore.yml
tasks:
- name: Enable postgresql 12 module
ansible.builtin.dnf:
name: '@postgresql:12'
state: present
when:
- pipeline_version is defined
- pipeline_version != 'nightly' or pipeline_version is version('3.40', '<')
- pipeline_os is defined
- pipeline_os is search("centos8-stream")
- name: install pulpcore
hosts:
- "{{ forklift_server_name }}"
become: True
vars_files:
- ../vars/install_base.yml
- ../vars/forklift_pulpcore.yml
environment:
DJANGO_SETTINGS_MODULE: pulpcore.app.settings
pre_tasks:
- when: pipeline_version != 'nightly' and pipeline_version is version('3.28', '==' )
set_fact:
pulp_pkg_repo: "http://koji.katello.org/releases/yum/pulpcore-{{ pipeline_version }}/el{{ ansible_distribution_major_version }}/$basearch/"
- when: pipeline_version != 'nightly' and pipeline_version is version('3.39', '==')
set_fact:
pulp_pkg_repo: "https://stagingyum.theforeman.org/pulpcore/{{ pipeline_version }}/el{{ ansible_distribution_major_version }}/$basearch/"
pulp_pkg_name_prefix: "python3.11-"
roles:
- role: epel_repositories
when:
- pipeline_version is defined
- pipeline_version != 'nightly' and pipeline_version is version('3.28', '==' )
- role: pulp.pulp_installer.pulp_all_services
when:
- pipeline_version is defined
- pipeline_version != 'nightly' or pipeline_version is version('3.39', '==')
- name: Setup git repo
become: True
hosts:
- "{{ forklift_name }}"
vars_files:
- ../vars/forklift_pulpcore.yml
vars:
beaker_puppet_module: "puppet-pulpcore"
roles:
- role: beaker
when:
- pipeline_version is defined
- pipeline_version == 'nightly' or pipeline_version is version('3.40', '>=')