This repository has been archived by the owner on Oct 21, 2019. It is now read-only.
forked from leapp-to/snactor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
python-snactor.spec
253 lines (233 loc) · 11 KB
/
python-snactor.spec
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
%global debug_package %{nil}
Name: python-snactor
Version: 0.2
Release: 40.1
Summary: Python Actor execution library
Group: Unspecified
License: ASL 2.0
URL: https://github.com/leapp-to/snactor
# git clone https://github.com/leapp-to/snactor
# tito build --tgz --tag=%{version}
Source0: %{name}-%{version}.tar.gz
BuildRequires: python2-devel
BuildRequires: PyYAML
BuildRequires: python2-jsl
BuildRequires: python2-jsonschema
%if 0%{?rhel} && 0%{?rhel} <= 7
BuildRequires: python-setuptools
BuildRequires: epel-rpm-macros
%else
%if 0%{?fedora} > 25
BuildRequires: python2-pytest-cov
BuildRequires: python2-pytest-flake8
%endif
BuildRequires: python2-setuptools
BuildRequires: python-rpm-macros
%endif
Requires: ansible
Requires: PyYAML
Requires: python2-jsl
Requires: python2-jsonschema
%if 0%{?rhel} && 0%{?rhel} <= 7
Requires: python-six
BuildRequires: python-six
%else
Requires: python2-six
BuildRequires: python-six
%endif
%description
%prep
%autosetup
%build
%py2_build
%install
%py2_install
echo Starting to copy data from: $PWD
install -dm 0755 %{buildroot}%{_datadir}/%{name}
cp -r examples/playbooks %{buildroot}%{_datadir}/%{name}/
%check
%if 0%{?fedora} <= 25 || (0%{?rhel} && 0%{?rhel} <= 7)
echo 'Skipping tests due to missing dependencies'
%else
make test
%endif
%files
%doc README.md LICENSE
%{python2_sitelib}/*
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/playbooks/*
%{_bindir}/snactor_runner
%changelog
* Fri Oct 06 2017 Vinzenz Feenstra <[email protected]> 0.2-40.1
- Drop wrong message ([email protected])
* Fri Oct 06 2017 Vinzenz Feenstra <[email protected]> 0.2-40
- Install snactor-runner tool ([email protected])
- Added debug logging to executor ([email protected])
- README: Updated to the current state ([email protected])
- Schema versioning applied + more simplification of the actor format
- Fixed remote variable resolving: wrong parameter order ([email protected])
- Refactored remote_execute a bit ([email protected])
- ADD: Initial implementation of schema versioning ([email protected])
- remote.host and remote.user need to have variable support
- Added remote ability via an ansible playbook ([email protected])
- Drop extends and ansible executors ([email protected])
- Drop python and bash executors ([email protected])
- Drop payload support ([email protected])
- Updated GETTING_STARTED.md ([email protected])
- Update GETTING_STARTED.md ([email protected])
- Start docummenting HowTo create an Actor ([email protected])
- Set logging stream to sys.stderr ([email protected])
- Add runner: a tool to execute actors using snactor ([email protected])
* Wed Sep 20 2017 Vinzenz Feenstra <[email protected]> 0.2-39.2
- start_container: Remove non breakable space from yaml ([email protected])
* Tue Sep 19 2017 Vinzenz Feenstra <[email protected]> 0.2-39.1
- spec: BuildRequires python2-six ([email protected])
* Tue Sep 19 2017 Vinzenz Feenstra <[email protected]> 0.2-39
- Add the Actors decriptions ([email protected])
- checks aren't happy about the print ([email protected])
- migrate-machine: Add target verification before starting to sync
- create-container: Proper error handling ([email protected])
- create_container: Report failure if there was an error ([email protected])
- sudo has to be within the scripts ([email protected])
- Attempt to solve the remote execution problems ([email protected])
- ansible-script: Dump script arguments as json string if they are dicts
- create_container: Use a shebang ([email protected])
- start/create container remote ([email protected])
- portmap: Fixed pep8 violation ([email protected])
- portmap: Fix user conversion properly ([email protected])
- portmap: Fix user conversion ([email protected])
- rsync: Add remote target support ([email protected])
- port-mapping: Missing input ([email protected])
- migrate-machine: Missing input use_default_port_map ([email protected])
- ansible-module: Using ANSIBLE_HOST_KEY_CHECKING instead ([email protected])
- containers_list: Fix the real reason for the quotes ([email protected])
- containers_list: Strip quotes around container names ([email protected])
- Fix broken tests ([email protected])
- ansible_module: Disable strict host key checking ([email protected])
- remote-target-check: Sort container list ([email protected])
- portmap: Adding missing use_default_port_map option ([email protected])
- ansible-module executor: Also consider 127.0.0.1 as local
- Fix remote-destroy-container name ([email protected])
- remote target check group ([email protected])
- Added actors for remote target capabilities ([email protected])
- actors: Refactored docker_info and rsync_info actors ([email protected])
- add tag to a forgotten actor ([email protected])
- fix warnings ([email protected])
- whitespace ([email protected])
- Add a script analogous to checktarget.py, using leappwf.
- Tag actors that are ready to be composed into a check-target workflow
- Add a gnereic leappwf workflow run function.
- change img to leapp-scratch ([email protected])
- portmap: Fix user port map translation ([email protected])
- Missing pipe in actor ([email protected])
- check-target: Add missing directory list functionality ([email protected])
- check-target actors: Add missing 'status' feature ([email protected])
- port-mapping-output: Fix output to be valid JSON ([email protected])
- setup.py: requires should be install requires ([email protected])
- check_target_group: Missing output actor ([email protected])
- actors: Add port-mapping related actors ([email protected])
- actors: check-target-output actor ([email protected])
- port-inspect-output: Fix name and parameter to print the righ thing
- port-inspect: Group + Printer ([email protected])
- registry: Fix missing export ([email protected])
- Add tags to actor definition to allow searching loaded actors by tags.
- Actor: changed inputs of common postconfig actor ([email protected])
- Add actors: Added actor for common postconfig ops (hosts, resolv...)
- Add force option to create container ([email protected])
- fix post_configure_upstart actor ([email protected])
- fix rsync and portmap actors ([email protected])
- portscan fix format ([email protected])
- schema: introduction of must_get_schema ([email protected])
- group actor: Improved the missing input message to be shorter
- pep8: Fix line length ([email protected])
- actor: Fixed naming and input/output naming for migrate-machine
- actors: More migrate machine requirements fulfilled ([email protected])
- group: Verify that all inputs are satisfied ([email protected])
- pep8: Missing new line at end of file ([email protected])
- Correct the target info schema: docker and rsync messages are Null in case of
success. Suggested by @vinzenz and corrected by @artmello.
- Split registry into modules and add unit tests ([email protected])
- actors: add inspect machine using ansible and extend ansible executor
- Rename 'container_name' input to 'user_container_name' for
create_container_name actor ([email protected])
- Complements b37b8c4 by changing dict key as well ([email protected])
- spec: Fixed syntax errors and warnings ([email protected])
- spec: Fix condition in the spec file ([email protected])
- No tests on FC25 ([email protected])
- spec: NO flake 8 and cov for FC25 ([email protected])
- Add set_container_directory_actor ([email protected])
- spec: Directly depend on python packages not via macro ([email protected])
- Fix schema create_container actor ([email protected])
- unify channel names and types ([email protected])
- Add create_container_name actor ([email protected])
- validation: Final fixes for schema validation ([email protected])
- schema: More fixes for the schema validation parts ([email protected])
- tests: Some more fixes ([email protected])
- pep8: Do not fail on unused imports or nonstandard import locations
- testing: Refactor scripts for stripping more of the boilerplate
- Fixing validation issues and pep8 issues ([email protected])
- schema validation: Fixed design issues and made the registration work
- schema validation: Fixed design issues and made the registration work
- pep8: Fix too long line ([email protected])
- loader: fixed missing post_resolve passing ([email protected])
- import: reordered import dependencies ([email protected])
- deps: added dependencies to spec and requirements file ([email protected])
- Added schema validation ([email protected])
- lib: Make use of the filter_by_channel function where appropriate
- Use ExposedPorts schema in portmap actor ([email protected])
- Corrected typo in the name of a file, name of type, code cleanup
- Added rsync and array->csv actors ([email protected])
- Improve create_container actor and schema ([email protected])
- Add create_container_dir actor ([email protected])
- spec: Install also examples so they can be linked from other packages
- Add start_container actor ([email protected])
- Update Travis file ([email protected])
- Fix style errors ([email protected])
- Extend tests ([email protected])
- fix targetinfo schema ([email protected])
- change OneOfField to ArrayField when all the data is expected
- use appropriate fields in machineinfo schema ([email protected])
- Allow empty data in value ([email protected])
- Extended unresoved reference error in order to give hint ([email protected])
- Refactoring loader ([email protected])
- Add create_container actor ([email protected])
- A little bit of usability changes - Don't create classes on the fly
- Some cleanup ([email protected])
- Add more unittests for loader.py ([email protected])
- Add inspect machine actor(s) ([email protected])
- Refactor checktarget to use group actor ([email protected])
- fix loading of input data ([email protected])
- add default post_conf actor ([email protected])
- create post_configure_upstart actor ([email protected])
- Added portscan (and derivates), portmap and container delete actors with
djson schemas ([email protected])
- do not try to handle stdout if there is none and none is expected
- No debug package ([email protected])
- spec: PyYAML is a build and runtime requirement ([email protected])
* Fri Aug 25 2017 Vinzenz Feenstra <[email protected]> 0.1-1
- new package built with tito