Skip to content

Commit 562d1e3

Browse files
committed
Update CI files
1 parent ec722cf commit 562d1e3

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
@@ -75,7 +75,6 @@ replace = "version = \"{new_version}\""
7575
[[tool.bumpversion.files]]
7676
filename = "./setup.py"
7777

78-
7978
[tool.ruff]
8079
# This section is managed by the plugin template. Do not edit manually.
8180
line-length = 100
@@ -96,6 +95,7 @@ extend-select = [
9695
[tool.ruff.lint.flake8-tidy-imports.banned-api]
9796
# This section is managed by the plugin template. Do not edit manually.
9897
"distutils".msg = "The 'distutils' module has been deprecated since Python 3.9."
98+
"pulpcore.app.settings".msg = "Always import 'settings' from 'django.conf' instead."
9999
"pulpcore.app".msg = "The 'pulpcore' apis must only be consumed via 'pulpcore.plugin'."
100100

101101
[tool.ruff.lint.isort]

0 commit comments

Comments
 (0)