Skip to content

Commit ff60df7

Browse files
committed
Update CI files
1 parent 3fd8d43 commit ff60df7

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
@@ -266,7 +266,6 @@ filename = "./pyproject.toml"
266266
search = "version = \"{current_version}\""
267267
replace = "version = \"{new_version}\""
268268

269-
270269
[tool.ruff]
271270
# This section is managed by the plugin template. Do not edit manually.
272271
line-length = 100
@@ -288,6 +287,7 @@ extend-select = [
288287
[tool.ruff.lint.flake8-tidy-imports.banned-api]
289288
# This section is managed by the plugin template. Do not edit manually.
290289
"distutils".msg = "The 'distutils' module has been deprecated since Python 3.9."
290+
"pulpcore.app.settings".msg = "Always import 'settings' from 'django.conf' instead."
291291

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

0 commit comments

Comments
 (0)