diff --git a/manifests/api.pp b/manifests/api.pp index 0b37a380..5cf5c50b 100644 --- a/manifests/api.pp +++ b/manifests/api.pp @@ -486,11 +486,14 @@ deprecated and will be removed in a future release. Use openstack-barbican-api i tag => 'barbican-service', } - file_line { 'Modify bind_port in gunicorn-config.py': - path => '/etc/barbican/gunicorn-config.py', - line => "bind = '${bind_host}:${bind_port}'", - match => '.*bind = .*', - tag => 'modify-bind-port', + # Debian is using UWSGI, not gunicorn + if $::os_package_type != 'debian' { + file_line { 'Modify bind_port in gunicorn-config.py': + path => '/etc/barbican/gunicorn-config.py', + line => "bind = '${bind_host}:${bind_port}'", + match => '.*bind = .*', + tag => 'modify-bind-port', + } } } elsif $service_name == 'httpd' {