[英]How to use Vagrant & Puppet with https
I am trying for hours, but I just can't figure it out, how to enable a https connection with vagrant and puppet. 我已经尝试了几个小时,但我无法弄清楚如何通过vagrant和puppet启用https连接。
I have a folder files/htdocs which contains different configs-files. 我有一个文件夹files / htdocs,其中包含不同的配置文件。 Like vhosts.
像虚拟主机。 It was a preset, with an empty ssl and empty vhosts_ssl folder.
这是一个预设,有一个空的ssl和空的vhosts_ssl文件夹。 It put my ssl certificate in the ssl folder and my httpd-ssl.conf in the vhosts_ssl folder.
它把我的ssl证书放在ssl文件夹中,而我的httpd-ssl.conf放在vhosts_ssl文件夹中。 Those files where working lokal with my MAMP Webserver.
这些文件可以与我的MAMP Web服务器一起使用。
In the Puppet config I wrote the following: 在Puppet配置中,我编写了以下内容:
file { "/etc/httpd/vhosts":
replace => true,
ensure => present,
source => "/vagrant/files/httpd/vhosts",
recurse => true,
}
file { "/etc/httpd/vhosts_ssl":
replace => true,
ensure => present,
source => "/vagrant/files/httpd/vhosts_ssl/httpd-ssl.conf",
}
file { "/etc/httpd/ssl":
replace => true,
ensure => present,
source => "/vagrant/files/httpd/ssl",
recurse => true,
}
The normal vhosts are working, therefore I thougt I can copy the structure and just enter the new paths for ssl and vhosts_ssl. 正常的虚拟主机正在运行,因此我可以复制该结构,只需输入ssl和vhosts_ssl的新路径即可。 But its not working.
但是它不起作用。 Maybe you know how to fix this.
也许您知道如何解决此问题。
Thanks. 谢谢。
I think I found a solution, but I have no time to test it right know. 我想我找到了解决方案,但是我没有时间正确地测试它。
Here is the link to the possible solution. 这是可能解决方案的链接。 https://forge.puppetlabs.com/puppetlabs/apache
https://forge.puppetlabs.com/puppetlabs/apache
I will update my Questing/Answere when I tried it. 我将在尝试时更新我的《 Questing / Answere》。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.