Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS
Release: 14.04
Codename: trusty
Linux www 3.13.0-40-generic #69-Ubuntu SMP Thu Nov 13 17:53:56 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
Python 2.7.6
pip 1.5.4 from /usr/lib/python2.7/dist-packages (python 2.7)
uWSGI==2.0.8
Seems that at least on my system the '/etc/uwsgi' folder is not "shipped" with the package.
==> default: Error: Cannot create /etc/uwsgi/apps-enabled; parent directory /etc/uwsgi does not exist
==> default: Error: /Stage[main]/Uwsgi/File[/etc/uwsgi/apps-enabled]/ensure: change from absent to directory failed: Cannot create /etc/uwsgi/apps-enabled; parent directory /etc/uwsgi does not exist
I didn't tested on RHEL.
One solution could be specifying the '/etc/uwsgi' path as $default_folder and appending at that the $app_directory variable. Then adding a file type "${default_folder}/${app_directory}" with a require to the $default_folder.
Seems that at least on my system the '/etc/uwsgi' folder is not "shipped" with the package.
I didn't tested on RHEL.
One solution could be specifying the '/etc/uwsgi' path as $default_folder and appending at that the$app_directory variable. Then adding a file type "$ {default_folder}/${app_directory}" with a require to the $default_folder.