Skip to content

Commit 0c5b1be

Browse files
committed
chore(ansible-lint): ignore role-prefix for deploy
Instead of copy-pasting the noqa: var-naming[no-role-prefix] Ignore it globally for the whole file by using the ansible-lint ignore file. Signed-off-by: Matej Focko <[email protected]>
1 parent 87b6de2 commit 0c5b1be

File tree

2 files changed

+48
-47
lines changed

2 files changed

+48
-47
lines changed

.ansible-lint-ignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
playbooks/roles/deploy/defaults/main.yml var-naming[no-role-prefix]
+47-47
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,54 @@
11
---
2-
validate_certs: true # noqa: var-naming[no-role-prefix]
3-
service: "{{ lookup('env', 'SERVICE') | default('packit', True) }}" # noqa: var-naming[no-role-prefix]
4-
deployment: "{{ lookup('env', 'DEPLOYMENT') }}" # noqa: var-naming[no-role-prefix]
5-
tenant: packit # noqa: var-naming[no-role-prefix] # MP+ tenant
6-
with_tokman: true # noqa: var-naming[no-role-prefix]
7-
with_fedmsg: true # noqa: var-naming[no-role-prefix]
8-
kv_database: "redict" # noqa: var-naming[no-role-prefix]
9-
with_kv_database: true # noqa: var-naming[no-role-prefix]
10-
with_redis_commander: false # noqa: var-naming[no-role-prefix]
11-
with_flower: false # noqa: var-naming[no-role-prefix]
12-
with_dashboard: true # noqa: var-naming[no-role-prefix]
13-
with_beat: true # noqa: var-naming[no-role-prefix]
14-
with_pushgateway: true # noqa: var-naming[no-role-prefix]
15-
with_repository_cache: true # noqa: var-naming[no-role-prefix]
16-
repository_cache_storage: 4Gi # noqa: var-naming[no-role-prefix]
17-
push_dev_images: false # noqa: var-naming[no-role-prefix]
18-
with_fluentd_sidecar: false # noqa: var-naming[no-role-prefix]
19-
postgres_version: 13 # noqa: var-naming[no-role-prefix]
20-
image: quay.io/packit/packit-service:{{ deployment }} # noqa: var-naming[no-role-prefix]
21-
image_worker: quay.io/packit/packit-worker:{{ deployment }} # noqa: var-naming[no-role-prefix]
22-
image_fedmsg: quay.io/packit/packit-service-fedmsg:{{ deployment }} # noqa: var-naming[no-role-prefix]
23-
image_dashboard: quay.io/packit/dashboard:{{ deployment }} # noqa: var-naming[no-role-prefix]
24-
image_tokman: quay.io/packit/tokman:{{ deployment }} # noqa: var-naming[no-role-prefix]
25-
image_fluentd: quay.io/packit/fluentd-splunk-hec:latest # noqa: var-naming[no-role-prefix]
2+
validate_certs: true
3+
service: "{{ lookup('env', 'SERVICE') | default('packit', True) }}"
4+
deployment: "{{ lookup('env', 'DEPLOYMENT') }}"
5+
tenant: packit # MP+ tenant
6+
with_tokman: true
7+
with_fedmsg: true
8+
kv_database: "redict"
9+
with_kv_database: true
10+
with_redis_commander: false
11+
with_flower: false
12+
with_dashboard: true
13+
with_beat: true
14+
with_pushgateway: true
15+
with_repository_cache: true
16+
repository_cache_storage: 4Gi
17+
push_dev_images: false
18+
with_fluentd_sidecar: false
19+
postgres_version: 13
20+
image: quay.io/packit/packit-service:{{ deployment }}
21+
image_worker: quay.io/packit/packit-worker:{{ deployment }}
22+
image_fedmsg: quay.io/packit/packit-service-fedmsg:{{ deployment }}
23+
image_dashboard: quay.io/packit/dashboard:{{ deployment }}
24+
image_tokman: quay.io/packit/tokman:{{ deployment }}
25+
image_fluentd: quay.io/packit/fluentd-splunk-hec:latest
2626
# project_dir is set in tasks/project-dir.yml
27-
path_to_secrets: "{{ project_dir }}/secrets/{{ service }}/{{ deployment }}" # noqa: var-naming[no-role-prefix]
27+
path_to_secrets: "{{ project_dir }}/secrets/{{ service }}/{{ deployment }}"
2828
# to be used in Image streams as importPolicy:scheduled value
29-
auto_import_images: true # noqa: var-naming[no-role-prefix]
29+
auto_import_images: true
3030
# used in dev/zuul deployment to tag & push images to cluster
3131
# https://github.com/packit/deployment/issues/112#issuecomment-673343049
3232
# container_engine: "{{ lookup('pipe', 'command -v podman 2> /dev/null || echo docker') }}"
33-
container_engine: docker # noqa: var-naming[no-role-prefix]
34-
celery_app: packit_service.worker.tasks # noqa: var-naming[no-role-prefix]
35-
celery_retry_limit: 2 # noqa: var-naming[no-role-prefix]
36-
celery_retry_backoff: 3 # noqa: var-naming[no-role-prefix]
37-
workers_all_tasks: 1 # noqa: var-naming[no-role-prefix]
38-
workers_short_running: 0 # noqa: var-naming[no-role-prefix]
39-
workers_long_running: 0 # noqa: var-naming[no-role-prefix]
40-
distgit_url: https://src.fedoraproject.org/ # noqa: var-naming[no-role-prefix]
41-
distgit_namespace: rpms # noqa: var-naming[no-role-prefix]
42-
sourcegit_namespace: "" # noqa: var-naming[no-role-prefix] # fedora-source-git only
43-
pushgateway_address: http://pushgateway # noqa: var-naming[no-role-prefix]
33+
container_engine: docker
34+
celery_app: packit_service.worker.tasks
35+
celery_retry_limit: 2
36+
celery_retry_backoff: 3
37+
workers_all_tasks: 1
38+
workers_short_running: 0
39+
workers_long_running: 0
40+
distgit_url: https://src.fedoraproject.org/
41+
distgit_namespace: rpms
42+
sourcegit_namespace: "" # fedora-source-git only
43+
pushgateway_address: http://pushgateway
4444
# Check that the deployment repo is up-to-date
45-
check_up_to_date: true # noqa: var-naming[no-role-prefix]
45+
check_up_to_date: true
4646
# Check that the current vars file is up-to-date with the template
47-
check_vars_template_diff: true # noqa: var-naming[no-role-prefix]
48-
deployment_repo_url: https://github.com/packit/deployment.git # noqa: var-naming[no-role-prefix]
47+
check_vars_template_diff: true
48+
deployment_repo_url: https://github.com/packit/deployment.git
4949
# used by a few tasks below
50-
k8s_apply: true # noqa: var-naming[no-role-prefix]
51-
tokman: # noqa: var-naming[no-role-prefix]
50+
k8s_apply: true
51+
tokman:
5252
workers: 1
5353
resources:
5454
requests:
@@ -57,8 +57,8 @@ tokman: # noqa: var-naming[no-role-prefix]
5757
limits:
5858
memory: "128Mi"
5959
cpu: "50m"
60-
appcode: PCKT-002 # noqa: var-naming[no-role-prefix]
61-
servicephase: lab # noqa: var-naming[no-role-prefix]
62-
costcenter: "700" # noqa: var-naming[no-role-prefix]
63-
registry: 172.30.1.1:5000 # noqa: var-naming[no-role-prefix]
64-
registry_user: developer # noqa: var-naming[no-role-prefix]
60+
appcode: PCKT-002
61+
servicephase: lab
62+
costcenter: "700"
63+
registry: 172.30.1.1:5000
64+
registry_user: developer

0 commit comments

Comments
 (0)