forked from oVirt/ovirt-ansible-vm-infra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathovirt-ansible-vm-infra.spec.in
137 lines (106 loc) · 4.59 KB
/
ovirt-ansible-vm-infra.spec.in
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
%global rolename vm-infra
%global roleprefix ovirt.
%global roleprefix_legacy ovirt-
%global roleprefix_legacy_uppercase oVirt.
%global ansible_roles_dir ansible/roles
Name: @PACKAGE_NAME@
Summary: Ansible role to create virtual machine infrastructure
Version: @RPM_VERSION@
Release: @RPM_RELEASE@%{?release_suffix}%{?dist}
Source0: http://resources.ovirt.org/pub/src/@PACKAGE_NAME@/@PACKAGE_NAME@-@[email protected]
License: ASL 2.0
Group: Virtualization/Management
BuildArch: noarch
Url: http://www.ovirt.org
Requires: ansible >= 2.7.2
%description
This Ansible role provide funtionality to create virtual machine infrastructure.
%pretrans -p <lua>
-- Remove the legacy directory before installing the symlink. This is known issue in RPM:
-- https://fedoraproject.org/wiki/Packaging:Directory_Replacement
path_dash = "%{_datadir}/%{ansible_roles_dir}/%{roleprefix_legacy}%{rolename}"
path_uppercase = "%{_datadir}/%{ansible_roles_dir}/%{roleprefix_legacy_uppercase}%{rolename}"
st = posix.stat(path_dash)
if st and st.type == "directory" then
os.execute('rm -rf "'..path_dash..'"')
end
st = posix.stat(path_uppercase)
if st and st.type == "directory" then
os.execute('rm -rf "'..path_uppercase..'"')
end
%prep
%setup -c -q
%build
%install
export PKG_DATA_DIR_ORIG=%{_datadir}/%{ansible_roles_dir}/%{roleprefix}%{rolename}
export PKG_DATA_DIR=%{buildroot}$PKG_DATA_DIR_ORIG
export PKG_DOC_DIR=%{buildroot}%{_pkgdocdir}
export ROLENAME_LEGACY=%{buildroot}%{_datadir}/%{ansible_roles_dir}/%{roleprefix_legacy}%{rolename}
export ROLENAME_LEGACY_UPPERCASE=%{buildroot}%{_datadir}/%{ansible_roles_dir}/%{roleprefix_legacy_uppercase}%{rolename}
sh build.sh install
%files
%{_datadir}/%{ansible_roles_dir}/%{roleprefix}%{rolename}
%{_datadir}/%{ansible_roles_dir}/%{roleprefix_legacy}%{rolename}
%{_datadir}/%{ansible_roles_dir}/%{roleprefix_legacy_uppercase}%{rolename}
%doc README.md
%doc examples/
%license LICENSE
%changelog
* Tue Jul 9 2019 Ondra Machacek <[email protected]> - 1.1.19-1
- Profile is not mandatory for vms variable.
- Support sysprep for windows vms.
- Allow set format of the disk.
- Fix running in multiple plays.
* Tue Jun 18 2019 Ondra Machacek <[email protected]> - 1.1.18-1
- Fix cloud init.
* Mon Jun 17 2019 Ondra Machacek <[email protected]> - 1.1.17-1
- Don't require to specify disk ID.
* Fri Jun 14 2019 Ondra Machacek <[email protected]> - 1.1.16-1
- Support disk rename.
- Support disk activation.
- Support waiting for IP range.
* Wed May 15 2019 Ondra Machacek <[email protected]> - 1.1.15-1
- Add resize template disk feature.
- Add serial policy parameters.
* Tue Mar 12 2019 Ondra Machacek <[email protected]> - 1.1.14-1
- Add boot_devices to config.
* Fri Mar 8 2019 Ondra Machacek <[email protected]> - 1.1.13-1
- Move the affinity group configuration further up the list.
- Adding support for cpu_mode and placement_policy.
* Wed Nov 21 2018 Ondra Machacek <[email protected]> - 1.1.12-1
- Support ovirt.vm-infra name.
- Require Ansible 2.7.2.
* Tue Oct 16 2018 Ondra Machacek <[email protected]> - 1.1.11-1
- Correct spliting vms. gh#50
- Workaround to fix async tasks of PR #44726. gh#52
* Tue Sep 18 2018 Ondra Machacek <[email protected]> - 1.1.10-1
- Add io_threads parameter to the role. gh#45
- Add operating system and type to vm creation. gh#46
- Package filter_plugins. gh#49
* Wed Aug 15 2018 Ondra Machacek <[email protected]> - 1.1.9-1
- Add ability to specify FQDN instead of URL.
- Add new lease parameter to VM.
- Add support to use the role from AWX.
- Create inventory from VMs.
- Support absent state.
* Wed May 30 2018 Ondra Machacek <[email protected]> - 1.1.8-1
- Added clone and template_version to role.
- Support legacy cloud init.
- Improve vm-infra parameters support.
* Thu Apr 26 2018 Ondra Machacek <[email protected]> - 1.1.7-1
- Non administrator accounts can't use tag attribute
rhbz#1570153, rhbz#1549082
* Tue Apr 10 2018 Ondra Machacek <[email protected]> - 1.1.6-1
- Require Ansible 2.5.
* Tue Feb 20 2018 Ondra Machacek <[email protected]> - 1.1.5-1
- Change wait_for_ip to false by default.
- Add nics attribute to vms list.
- Change default state to present. (rhbz#1539722, rhbz#1491010)
* Wed Jan 17 2018 Ondra Machacek <[email protected]> - 1.1.4-1
- Support RHV credentials for Ansible Tower/AWX.
* Mon Dec 04 2017 Ondra Machacek <[email protected]> - 1.1.3-1
- Add %pretrans scriplet to remove legacy role name.
* Wed Nov 29 2017 Ondra Machacek <[email protected]> - 1.1.2-1
- Rename prefix ovirt. to oVirt. to sync with galaxy
* Mon Nov 27 2017 Ondra Machacek <[email protected]> - 1.1.0-1
- Initial release