I am using Debian 7.x
This is such odd behavior
- I am invoking puppet through vagrant provisioner
- I am using puppetlabs/debian-7.8-64-puppet as the base image
Why is Apache loading even though there is no reference to apache anywhere in my puppet script?
Here is the entire puppet script:
#
# Install all required packages
#
$packages = [
"curl",
"nginx",
#"php5-gd",
#"php5-cli",
"php5-fpm",
"php5-ldap",
#"php5-mysql",
"mysql-server",
"htmldoc",
]
package { $packages:
ensure => present,
}
#
# Configure PHP-FPM
#
service { "php5-fpm":
ensure => running,
require => Package['php5-fpm'],
}
#
# Configure NGINX
#
service { "nginx":
require => Package["nginx"],
ensure => running,
enable => true
}
file { "/etc/nginx/sites-available/default":
ensure => "file",
require => Package["nginx"],
content => file("/var/www/.vagrant/puppet/modules/nginx/files/aerospace"),
}
file_line { "Append required Cadorath Aerospace NGINX parameters":
require => Package["nginx"],
path => "/etc/nginx/fastcgi_params",
line => file("/var/www/.vagrant/puppet/modules/nginx/files/params.conf"),
}
Whenever I uncomment php5-gd or php5-mysql - Apache is somehow magically loaded and takes precedence over NGINX???
I literally will uncomment that line - rebuild machine SSH and run a ps -aux and suddenly I see Apache not NGINX serving my pages
Ideas?