-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsclbuilder_050_create_sclmetapackage.yml
108 lines (79 loc) · 2.13 KB
/
sclbuilder_050_create_sclmetapackage.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
---
- name: Initial database seed
hosts: prod_sclbuilder_sclbuilder
vars:
- version: "1.0.0"
- organisation: "miracle"
- project: "awxrpm"
- scl_version: "1.0.0"
- scl_release: "1"
- scl_description: "Software collection for {{ project }}"
tasks:
- name: Install rhel
ansible.builtin.package:
name:
- redis
- python38-pip
- python38-devel
- python3-devel
- python3-requests
- python38-requests
- wget
- rpm-build
- scl-utils-build
- scl-utils
- help2man
- unzip
- openssl-devel
- libtool-ltdl-devel
- python3-sphinx
- make
- gcc
- libffi-devel
- openldap-devel
- libxml2-devel
- xmlsec1-devel
- xmlsec1-openssl-devel
- libpq-devel
- platform-python-devel
state: present
- name: Install bottle python package
pip:
name:
- requests
- requirements-parser
- spec2scl
- setuptools_rust
- wheel
- name: create_specfiles | create a tailored script
ansible.builtin.template:
src: create.sclspec.sh.j2
dest: /usr/local/bin/create.sclspec.sh
mode: 755
force: yes
become: True
- name: Creates directory
file:
path: /root/rpmbuild/SOURCES
state: directory
become: True
- name: create_specfiles | create a tailored metaspecfile
ansible.builtin.template:
src: metascl.spec.j2
dest: /root/{{ organisation }}.{{ project }}.meta.scl.spec
mode: 644
force: yes
become: True
- name: create_specfiles | create a tailored metaspecfile for {{ project }}
ansible.builtin.template:
src: project.specfile.spec.j2
dest: /root/{{ organisation }}.{{ project }}.project.spec
mode: 644
force: yes
become: True
- name: create_specfiles | Touch /root/rpmbuild/SOURCES/LICENSE
shell: touch /root/rpmbuild/SOURCES/LICENSE
become: True
- name: create_specfiles | run the builder script
shell: /usr/local/bin/create.sclspec.sh
become: True