
Add acceptance tests for puppet-httpd module so that once the module is applied we check if files were created, packages were installed and services were started. Change-Id: I3e1430f2937bd2bc5ea789c626784af7d5d85959 Co-Authored-By: Bruno Tavares <btavare@thoughtworks.com> Co-Authored-By: Danilo Ramalho <dramalho@thoughtworks.com>
24 lines
412 B
Puppet
24 lines
412 B
Puppet
class { '::httpd': }
|
|
class { '::httpd::dev': }
|
|
class { '::httpd::php': }
|
|
class { '::httpd::mod::wsgi': }
|
|
class { '::httpd::ssl': }
|
|
httpd::vhost { 'localhost':
|
|
port => 80,
|
|
docroot => '/var/www',
|
|
priority => 50,
|
|
redirect_ssl => true,
|
|
}
|
|
|
|
httpd::mod { 'rewrite':
|
|
ensure => present,
|
|
}
|
|
|
|
case $::operatingsystem {
|
|
'ubuntu', 'debian': {
|
|
class { '::httpd::python': }
|
|
}
|
|
default: {}
|
|
}
|
|
|