forked from Linuxfabrik/lfops
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexecution-environment.yml
More file actions
51 lines (41 loc) · 1.76 KB
/
execution-environment.yml
File metadata and controls
51 lines (41 loc) · 1.76 KB
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
# the public [lfops_ee containers](https://github.com/Linuxfabrik/lfops/pkgs/container/lfops_ee) are built
# via [github actions](https://github.com/Linuxfabrik/lfops/actions/workflows/lf-build.yml).
# for testing / troubleshooting, the container can be build with locally (takes around 3 mins):
# ```bash
# ansible-galaxy collection build
# cp --verbose linuxfabrik-lfops-*.tar.gz linuxfabrik-lfops.tar.gz
# ansible-builder build --tag lfops_ee:local -vvv
# ```
# https://ansible.readthedocs.io/projects/builder/en/stable/definition/#builder-ee-definition
version: 3
images:
base_image:
name: 'quay.io/rockylinux/rockylinux:9'
dependencies:
ansible_runner:
package_pip: 'ansible-runner'
ansible_core:
package_pip: 'ansible-core>=2.16.0,<2.17.0' # make sure the ansible version works with rhel8
galaxy: 'execution-environment-requirements.yml'
python:
- 'ansible-lint'
- 'cs' # required for ngine_io.cloudstack
- 'hcloud' # required for hetzner.hcloud
- 'jmespath' # required for community.general.json_query
- 'mitogen'
- 'netaddr' # required for ansible.utils.ipaddr
- 'openstacksdk' # required for openstack.cloud
- 'passlib' # required for ansible.builtin.password_hash filter
- 'pywinrm'
python_interpreter:
package_system: 'python3.11'
python_path: '/usr/bin/python3.11'
system:
- 'git-core' # required for ansible.builtin.git module
- 'rsync' # required for ansible.posix.synchronize module
additional_build_files:
- src: 'linuxfabrik-lfops.tar.gz'
dest: '.'
additional_build_steps:
append_final:
- 'RUN mkdir -p /opt/mitogen && ln -s /usr/local/lib/python3.11/site-packages/mitogen /opt/mitogen/mitogen && ln -s /usr/local/lib/python3.11/site-packages/ansible_mitogen /opt/mitogen/ansible_mitogen'