Skip to content

Commit 09ec681

Browse files
committed
Update CI files
1 parent 8274f72 commit 09ec681

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
@@ -270,7 +270,6 @@ filename = "./pyproject.toml"
270270
search = "version = \"{current_version}\""
271271
replace = "version = \"{new_version}\""
272272

273-
274273
[tool.ruff]
275274
# This section is managed by the plugin template. Do not edit manually.
276275
line-length = 100
@@ -292,6 +291,7 @@ extend-select = [
292291
[tool.ruff.lint.flake8-tidy-imports.banned-api]
293292
# This section is managed by the plugin template. Do not edit manually.
294293
"distutils".msg = "The 'distutils' module has been deprecated since Python 3.9."
294+
"pulpcore.app.settings".msg = "Always import 'settings' from 'django.conf' instead."
295295

296296
[tool.ruff.lint.isort]
297297
# This section is managed by the plugin template. Do not edit manually.

0 commit comments

Comments
 (0)