Skip to content

Commit 388ed80

Browse files
committed
Update CI files
1 parent 0ef36e1 commit 388ed80

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

.ci/ansible/settings.py.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
SECRET_KEY = "{{ django_secret }}"
12
CONTENT_ORIGIN = "{{ pulp_scheme }}://pulp:{{ 443 if pulp_scheme == 'https' else 80 }}"
23
ANSIBLE_API_HOSTNAME = "{{ pulp_scheme }}://pulp:{{ 443 if pulp_scheme == 'https' else 80 }}"
34
ANSIBLE_CONTENT_HOSTNAME = "{{ pulp_scheme }}://pulp:{{ 443 if pulp_scheme == 'https' else 80 }}/pulp/content"

.ci/ansible/start_container.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
ansible.builtin.template:
1919
src: "settings.py.j2"
2020
dest: "settings/settings.py"
21+
vars:
22+
django_secret: "lookup('community.general.random_string', length=50, overwrite_all='abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)')"
2123

2224
- name: "Setup docker networking"
2325
community.docker.docker_network:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ filename = "./pyproject.toml"
125125
search = "version = \"{current_version}\""
126126
replace = "version = \"{new_version}\""
127127

128-
129128
[tool.black]
130129
line-length = 100
131130

@@ -149,6 +148,7 @@ extend-select = [
149148
[tool.ruff.lint.flake8-tidy-imports.banned-api]
150149
# This section is managed by the plugin template. Do not edit manually.
151150
"distutils".msg = "The 'distutils' module has been deprecated since Python 3.9."
151+
"pulpcore.app.settings".msg = "Always import 'settings' from 'django.conf' instead."
152152
"pulpcore.app".msg = "The 'pulpcore' apis must only be consumed via 'pulpcore.plugin'."
153153

154154
[tool.ruff.lint.isort]

0 commit comments

Comments
 (0)