目前正在运行一个关于使用 puppet 配置 vm 以自动创建服务器环境的基本教程
目前我正在跑步
puppet 3.1.0
apache2 2.2.14-5ubuntu Apache HTTP Server metapackage
我有一个非常基本的初始化文件来加载 apache2 并确保它正在运行。
package {
"apache2":
ensure => present
}
service {"apache2":
ensure => true,
enable => true,
}
当我尝试在此文件上运行 sudo puppet apply 时,出现以下错误
Error: Could not start Service[apache2]: Execution of '/etc/init.d/apache2 start' returned 1:
Error: /Stage[main]//Service[apache2]/ensure: change from stopped to running failed: Could not start Service[apache2]: Execution of '/etc/init.d/apache2 start' returned
我可以做些什么来解决这个问题?