diff --git a/.ansible-lint-ignore b/.ansible-lint-ignore new file mode 100644 index 0000000..ade00b6 --- /dev/null +++ b/.ansible-lint-ignore @@ -0,0 +1 @@ +playbooks/roles/deploy/defaults/main.yml var-naming[no-role-prefix] diff --git a/playbooks/roles/deploy/defaults/main.yml b/playbooks/roles/deploy/defaults/main.yml index 0b50bb2..89480d5 100644 --- a/playbooks/roles/deploy/defaults/main.yml +++ b/playbooks/roles/deploy/defaults/main.yml @@ -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: @@ -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