-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathvars_ee.yml
156 lines (146 loc) · 4.54 KB
/
vars_ee.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
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
# Ansible Automation Platform execution environments build definitions
ah_host: "{{ aap_hostname }}"
ee_ah_host: "{{ ah_host }}"
ee_registry_username: "{{ aap_username }}"
ee_registry_password: "{{ aap_password }}"
ah_token: "{{ aap_private_hub_token }}"
ee_validate_certs: "{{ aap_validate_certs }}"
# https://ansible.readthedocs.io/projects/builder/en/stable/definition/
ee_version: 3
ee_build_arg_defaults:
ANSIBLE_GALAXY_CLI_COLLECTION_OPTS: --no-deps -vvvv
#ANSIBLE_GALAXY_CLI_COLLECTION_OPTS: --upgrade -vvvv
ee_build_options:
container_init:
entrypoint: '["/opt/builder/bin/entrypoint"]'
package_pip: ""
package_manager_path: /usr/bin/microdnf
ee_aap_version: 2.5
ee_image_push: true
ee_prune_images: true
ee_create_ansible_config: true
ee_registry_dest: "{{ ah_host }}/custom"
ee_list:
- name: custom-base-rhel8
base_image: "{{ ee_ah_host }}/ansible-automation-platform/ee-minimal-rhel8:2.16"
dependencies:
system:
- findutils [platform:rpm]
- iputils [platform:rpm]
- python3-pip [platform:rpm]
#- python3.11-devel [platform:rpm]
#- python3.11-pip [platform:rpm]
#- python3.11-setuptools [platform:rpm]
#- gcc [platform:rpm]
#- systemd-devel [platform:rpm]
#python:
# - dnspython
# - netaddr
# - psutil
# - pyjwt
# - selinux
galaxy:
collections:
- ansible.controller
#- ansible.eda
- ansible.hub
- ansible.platform
- ansible.posix
- ansible.utils
#- ansible.windows
#- azure.azcollection
#- chocolatey.chocolatey
#- kubernetes.core
#- microsoft.ad
- redhat.rhel_idm
- redhat.rhel_system_roles
- redhat.satellite
- redhat.satellite_operations
- infra.aap_configuration
#- infra.aap_utilities
#- infra.ee_utilities
#- infra.leapp
- community.general
#- community.windows
#- containers.podman
- myllynen.rhel_ansible_roles
#- myllynen.rhel_image
#- myllynen.windows_ansible_roles
build_files:
- src: "{{ lookup('env', 'PWD') + '/pip.conf' }}"
dest: configs
- src: "{{ lookup('env', 'PWD') + '/ansible-ee.cfg' }}"
dest: configs
build_steps:
prepend_base:
- ADD _build/configs/pip.conf /etc/pip.conf
prepend_final:
- ADD _build/configs/ansible-ee.cfg /etc/ansible/ansible.cfg
append_final:
- RUN rm -rf /etc/yum.repos.d/* /etc/pip.conf
tag: latest
- name: custom-base-rhel9
base_image: "{{ ee_ah_host }}/ansible-automation-platform/ee-minimal-rhel9:2.18"
dependencies:
system:
- findutils [platform:rpm]
- iputils [platform:rpm]
- python3-pip [platform:rpm]
#- python3.11-devel [platform:rpm]
#- python3.11-pip [platform:rpm]
#- python3.11-setuptools [platform:rpm]
#- gcc [platform:rpm]
#- systemd-devel [platform:rpm]
#python:
# - dnspython
# - netaddr
# - psutil
# - pyjwt
# - selinux
galaxy:
collections:
- ansible.controller
#- ansible.eda
- ansible.hub
- ansible.platform
- ansible.posix
- ansible.utils
- ansible.windows
- azure.azcollection
- chocolatey.chocolatey
#- kubernetes.core
- microsoft.ad
- redhat.rhel_idm
- redhat.rhel_system_roles
- redhat.satellite
- redhat.satellite_operations
- infra.aap_configuration
#- infra.aap_utilities
#- infra.ee_utilities
#- infra.leapp
- community.general
- community.windows
#- containers.podman
- myllynen.rhel_ansible_roles
#- myllynen.rhel_image
- myllynen.windows_ansible_roles
build_files:
- src: "{{ lookup('env', 'PWD') + '/pip.conf' }}"
dest: configs
- src: "{{ lookup('env', 'PWD') + '/ansible-ee.cfg' }}"
dest: configs
build_steps:
prepend_base:
- ADD _build/configs/pip.conf /etc/pip.conf
prepend_final:
- ADD _build/configs/ansible-ee.cfg /etc/ansible/ansible.cfg
append_final:
- RUN rm -rf /etc/yum.repos.d/* /etc/pip.conf
tag: latest
# https://github.com/ansible/galaxy_collection/issues/329
#hub_ee_images:
# - name: custom/test
# state: absent
#hub_ee_repositories:
# - name: custom/test
# state: absent