Bug #13352
nginx module throws error
| Status: | Unreviewed | Start date: | 03/23/2012 | |
|---|---|---|---|---|
| Priority: | High | Due date: | ||
| Assignee: | - | % Done: | 0% | |
| Category: | nginx | Spent time: | - | |
| Target version: | - | |||
| Keywords: | Branch: | |||
Description
When run the first time nginx module throws the following error.
err: /Stage[main]/Nginx::Service/Exec[rebuild-nginx-vhosts]: Failed to call refresh: /bin/cat /tmp/nginx.d/* > /etc/nginx/conf.d/vhost_autogen.conf returned 1 instead of one of [0] at /etc/puppetlabs/puppet/modules/nginx/manifests/service.pp:21
But as the directory /tmp/nginx.d/* gets created it runs fine the second time.
History
#1
Updated by Björn Albers 8 months ago
Me too (with Puppet 2.7.19 on Ubuntu Linux precise32)
#2
Updated by Björn Albers 8 months ago
This happens when the temp. config dir is empty:
root@precise32:~# /bin/cat /tmp/nginx.d/* > /etc/nginx/conf.d/vhost_autogen.conf
/bin/cat: /tmp/nginx.d/*: No such file or directory
root@precise32:~# ls -l /tmp/nginx.d/
total 0
The corresponding exec in service.pp should handle this. I’ll send a pull request…
#3
Updated by Björn Albers 8 months ago
…pull request just went out.
It would be nice if someone could have a look at this and push the “merge-bump-release-to-puppetforge” button. Thanks!