Skip to content

Commit

Permalink
chore(ansible-lint): ignore role-prefix for deploy
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
mfocko committed Jan 2, 2025
1 parent c1daab5 commit 38cb371
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 47 deletions.
1 change: 1 addition & 0 deletions .ansible-lint-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
playbooks/roles/deploy/defaults/main.yml var-naming[no-role-prefix]
94 changes: 47 additions & 47 deletions playbooks/roles/deploy/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,54 +1,54 @@
---
validate_certs: true # noqa: var-naming[no-role-prefix]
service: "{{ lookup('env', 'SERVICE') | default('packit', True) }}" # noqa: var-naming[no-role-prefix]
deployment: "{{ lookup('env', 'DEPLOYMENT') }}" # noqa: var-naming[no-role-prefix]
tenant: packit # noqa: var-naming[no-role-prefix] # MP+ tenant
with_tokman: true # noqa: var-naming[no-role-prefix]
with_fedmsg: true # noqa: var-naming[no-role-prefix]
kv_database: "redict" # noqa: var-naming[no-role-prefix]
with_kv_database: true # noqa: var-naming[no-role-prefix]
with_redis_commander: false # noqa: var-naming[no-role-prefix]
with_flower: false # noqa: var-naming[no-role-prefix]
with_dashboard: true # noqa: var-naming[no-role-prefix]
with_beat: true # noqa: var-naming[no-role-prefix]
with_pushgateway: true # noqa: var-naming[no-role-prefix]
with_repository_cache: true # noqa: var-naming[no-role-prefix]
repository_cache_storage: 4Gi # noqa: var-naming[no-role-prefix]
push_dev_images: false # noqa: var-naming[no-role-prefix]
with_fluentd_sidecar: false # noqa: var-naming[no-role-prefix]
postgres_version: 13 # noqa: var-naming[no-role-prefix]
image: quay.io/packit/packit-service:{{ deployment }} # noqa: var-naming[no-role-prefix]
image_worker: quay.io/packit/packit-worker:{{ deployment }} # noqa: var-naming[no-role-prefix]
image_fedmsg: quay.io/packit/packit-service-fedmsg:{{ deployment }} # noqa: var-naming[no-role-prefix]
image_dashboard: quay.io/packit/dashboard:{{ deployment }} # noqa: var-naming[no-role-prefix]
image_tokman: quay.io/packit/tokman:{{ deployment }} # noqa: var-naming[no-role-prefix]
image_fluentd: quay.io/packit/fluentd-splunk-hec:latest # noqa: var-naming[no-role-prefix]
validate_certs: true
service: "{{ lookup('env', 'SERVICE') | default('packit', True) }}"
deployment: "{{ lookup('env', 'DEPLOYMENT') }}"
tenant: packit # MP+ tenant
with_tokman: true
with_fedmsg: true
kv_database: "redict"
with_kv_database: true
with_redis_commander: false
with_flower: false
with_dashboard: true
with_beat: true
with_pushgateway: true
with_repository_cache: true
repository_cache_storage: 4Gi
push_dev_images: false
with_fluentd_sidecar: false
postgres_version: 13
image: quay.io/packit/packit-service:{{ deployment }}
image_worker: quay.io/packit/packit-worker:{{ deployment }}
image_fedmsg: quay.io/packit/packit-service-fedmsg:{{ deployment }}
image_dashboard: quay.io/packit/dashboard:{{ deployment }}
image_tokman: quay.io/packit/tokman:{{ deployment }}
image_fluentd: quay.io/packit/fluentd-splunk-hec:latest
# project_dir is set in tasks/project-dir.yml
path_to_secrets: "{{ project_dir }}/secrets/{{ service }}/{{ deployment }}" # noqa: var-naming[no-role-prefix]
path_to_secrets: "{{ project_dir }}/secrets/{{ service }}/{{ deployment }}"
# to be used in Image streams as importPolicy:scheduled value
auto_import_images: true # noqa: var-naming[no-role-prefix]
auto_import_images: true
# used in dev/zuul deployment to tag & push images to cluster
# https://github.com/packit/deployment/issues/112#issuecomment-673343049
# container_engine: "{{ lookup('pipe', 'command -v podman 2> /dev/null || echo docker') }}"
container_engine: docker # noqa: var-naming[no-role-prefix]
celery_app: packit_service.worker.tasks # noqa: var-naming[no-role-prefix]
celery_retry_limit: 2 # noqa: var-naming[no-role-prefix]
celery_retry_backoff: 3 # noqa: var-naming[no-role-prefix]
workers_all_tasks: 1 # noqa: var-naming[no-role-prefix]
workers_short_running: 0 # noqa: var-naming[no-role-prefix]
workers_long_running: 0 # noqa: var-naming[no-role-prefix]
distgit_url: https://src.fedoraproject.org/ # noqa: var-naming[no-role-prefix]
distgit_namespace: rpms # noqa: var-naming[no-role-prefix]
sourcegit_namespace: "" # noqa: var-naming[no-role-prefix] # fedora-source-git only
pushgateway_address: http://pushgateway # noqa: var-naming[no-role-prefix]
container_engine: docker
celery_app: packit_service.worker.tasks
celery_retry_limit: 2
celery_retry_backoff: 3
workers_all_tasks: 1
workers_short_running: 0
workers_long_running: 0
distgit_url: https://src.fedoraproject.org/
distgit_namespace: rpms
sourcegit_namespace: "" # fedora-source-git only
pushgateway_address: http://pushgateway
# Check that the deployment repo is up-to-date
check_up_to_date: true # noqa: var-naming[no-role-prefix]
check_up_to_date: true
# Check that the current vars file is up-to-date with the template
check_vars_template_diff: true # noqa: var-naming[no-role-prefix]
deployment_repo_url: https://github.com/packit/deployment.git # noqa: var-naming[no-role-prefix]
check_vars_template_diff: true
deployment_repo_url: https://github.com/packit/deployment.git
# used by a few tasks below
k8s_apply: true # noqa: var-naming[no-role-prefix]
tokman: # noqa: var-naming[no-role-prefix]
k8s_apply: true
tokman:
workers: 1
resources:
requests:
Expand All @@ -57,8 +57,8 @@ tokman: # noqa: var-naming[no-role-prefix]
limits:
memory: "128Mi"
cpu: "50m"
appcode: PCKT-002 # noqa: var-naming[no-role-prefix]
servicephase: lab # noqa: var-naming[no-role-prefix]
costcenter: "700" # noqa: var-naming[no-role-prefix]
registry: 172.30.1.1:5000 # noqa: var-naming[no-role-prefix]
registry_user: developer # noqa: var-naming[no-role-prefix]
appcode: PCKT-002
servicephase: lab
costcenter: "700"
registry: 172.30.1.1:5000
registry_user: developer

0 comments on commit 38cb371

Please sign in to comment.