Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,12 @@
# degradation due to I/O blocking and is not recommended in most cases. Modifying this parameter should be done
# incrementally with benchmarking at each step to determine an optimal value for your deployment.
#
# $pulpcore_content_service_worker_count:: Gunicorn worker count for the pulpcore-content.service
#
# $pulpcore_content_service_worker_timeout:: Gunicorn worker timeout in seconds for the pulpcore-content.service
#
# $pulpcore_api_service_worker_count:: Gunicorn worker count for the pulpcore-api.service
#
# $pulpcore_api_service_worker_timeout:: Gunicorn worker timeout in seconds for the pulpcore-api.service
#
# $pulpcore_django_secret_key:: Secret key used for cryptographic operations by Pulpcore's django runtime
Expand Down Expand Up @@ -107,7 +111,9 @@
Stdlib::Absolutepath $pulpcore_postgresql_ssl_root_ca = '/etc/pki/tls/certs/ca-bundle.crt',
Integer[0] $pulpcore_worker_count = $foreman_proxy_content::params::pulpcore_worker_count,
Optional[String[50]] $pulpcore_django_secret_key = undef,
Optional[Integer[0]] $pulpcore_content_service_worker_count = undef,
Integer[0] $pulpcore_content_service_worker_timeout = 90,
Optional[Integer[0]] $pulpcore_api_service_worker_count = undef,
Integer[0] $pulpcore_api_service_worker_timeout = 90,
Boolean $pulpcore_cache_enabled = true,
Optional[Variant[Integer[1], Enum['None']]] $pulpcore_cache_expires_ttl = undef,
Expand Down Expand Up @@ -254,7 +260,9 @@
postgresql_db_ssl_root_ca => $pulpcore_postgresql_ssl_root_ca,
worker_count => $pulpcore_worker_count,
django_secret_key => $pulpcore_django_secret_key,
content_service_worker_count => $pulpcore_content_service_worker_count,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this work properly? Right now this parameter requires an Integer

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Puppet always allows undef, which means "use whatever was underneath it".

content_service_worker_timeout => $pulpcore_content_service_worker_timeout,
api_service_worker_count => $pulpcore_api_service_worker_count,
api_service_worker_timeout => $pulpcore_api_service_worker_timeout,
api_client_auth_cn_map => $api_client_auth_cn_map,
cache_enabled => $pulpcore_cache_enabled,
Expand Down