-
-
Notifications
You must be signed in to change notification settings - Fork 883
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
puppet tries to create vhost before nginx is installed? #610
Comments
@tgallant in the lines after your error the directory |
Also getting this issue, will update if I figure out what's going on - Edit: Looks like mine was caused by using 'include nginx' but is fine with 'class { 'nginx': }' Is this expected? Edit 2: It's now happening sometimes and not others |
Believe I've fixed my issues by adding
below
in init.pp of the nginx module |
Using that repo with my current setup gives the following warnings
But it does seem to work |
I've run into this same issue and can't figure out what's going on. I tried setting Here is the output from from vagrant debug containing all lines pertaining to
|
@3flex any news on this? With @SamStonehouse solution mentioned it works, but then the file "/etc/nginx/mime.types" that nginx installs by default was removed and we don't know exactly why? |
I looked into this error a little more today. Using the master branch: In the manifests/resource/vhost.pp file the
Another problem is when the
If anyone else has some thoughts, please let me know. I will then submit a pull request. |
The problem still exists. |
I also have weird issues related to this such as:
Here it is trying to create an upstream file even before the /etc/nginx/conf.d directory exists, I guess before the package hast been installed... Did anyone find a workaround? or when is this going to get fixed? |
I can confirm that the fix that @nfourteen suggests is the solution (baring the single quoted around the variables). The following errors are what I was experiencing: Notice: /Stage[main]/Nginx::Package::Redhat/Yumrepo[nginx-release]/ensure: created And my corrections are in manifests/resource/vhost.pp as: concat { $config_file: file{ "${name_sanitized}.conf symlink": |
I was having the same problem as @tgallant. If I ran I made the edits suggested by @nfourteen and everything works now on |
I think #894 is similar? Does #906 address this, and is it a sane way to resolve the issue? It may cause minor problems if #878 gets merged, but we can burn that bridge when we come to it. |
I think the ordering should now be resolved with #906. If anyone is able to reproduce still, please open a new issue. |
puppet file:
I am a puppet noob and I'm having a hard time figuring this out.
I am using vagrant with puppet as the provisioner. When I run vagrant up, it goes through the steps but always fails at:
From my googling it seems that this error is caused when the parent directory doesn't exist.
a few lines after the error I get this:
Looks to me that the vhost is being created before the nginx directory.
am i doing something wrong here?
The text was updated successfully, but these errors were encountered: