Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
immerda
Puppet Modules
webhosting
Commits
cb345fdd
Commit
cb345fdd
authored
May 08, 2017
by
mh
Browse files
remove gallery2 - not supported anymore
parent
cec4a7dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
manifests/php/gallery2.pp
deleted
100644 → 0
View file @
cec4a7dd
# domainalias:
# - www: add as well a www.${name} entry
# - absent: do nothing
# - default: add the string
# run_mode:
# - normal: nothing special (*default*)
# - fcgid: apache is running with the fcgid module and seuxec
# and run_uid and run_gid are used as vhost users
# run_uid: the uid the vhost should run as with the suexec module
# run_gid: the gid the vhost should run as with the suexec module
#
# logmode:
# - default: Do normal logging to CustomLog and ErrorLog
# - nologs: Send every logging to /dev/null
# - anonym: Don't log ips for CustomLog, send ErrorLog to /dev/null
# - semianonym: Don't log ips for CustomLog, log normal ErrorLog
define
webhosting::php::gallery2
(
$ensure
=
present
,
$configuration
=
{},
$uid
=
'absent'
,
$uid_name
=
'absent'
,
$gid
=
'uid'
,
$gid_name
=
'absent'
,
$password
=
'absent'
,
$password_crypted
=
true
,
$domainalias
=
'www'
,
$server_admin
=
'absent'
,
$logmode
=
'default'
,
$owner
=
root
,
$group
=
'absent'
,
$run_mode
=
'normal'
,
$run_uid
=
'absent'
,
$run_uid_name
=
'absent'
,
$run_gid
=
'absent'
,
$run_gid_name
=
'absent'
,
$watch_adjust_webfiles
=
'absent'
,
$user_scripts
=
'absent'
,
$user_scripts_options
=
{},
$wwwmail
=
false
,
$allow_override
=
'None'
,
$do_includes
=
false
,
$options
=
'absent'
,
$additional_options
=
'absent'
,
$default_charset
=
'absent'
,
$ssl_mode
=
false
,
$php_settings
=
{},
$php_options
=
{},
$vhost_mode
=
'template'
,
$template_partial
=
'absent'
,
$vhost_source
=
'absent'
,
$vhost_destination
=
'absent'
,
$htpasswd_file
=
'absent'
,
$nagios_check
=
'ensure'
,
$nagios_check_domain
=
'absent'
,
$nagios_check_url
=
'/'
,
$nagios_check_code
=
'302'
,
$nagios_use
=
'generic-service'
,
$git_repo
=
'absent'
,
$mod_security
=
false
,
$manage_config
=
true
,
$config_webwriteable
=
false
,
$manage_directories
=
true
){
if
(
$uid_name
==
'absent'
){
$real_uid_name
=
$name
}
else
{
$real_uid_name
=
$uid_name
}
if
(
$gid_name
==
'absent'
){
$real_gid_name
=
$real_uid_name
}
else
{
$real_gid_name
=
$gid_name
}
if
(
$group
==
'absent'
)
{
$real_group
=
$real_gid_name
}
else
{
$real_group
=
'apache'
}
webhosting::common
{
$name
:
ensure
=>
$ensure
,
configuration
=>
$configuration
,
uid
=>
$uid
,
uid_name
=>
$real_uid_name
,
gid
=>
$gid
,
gid_name
=>
$real_gid_name
,
password
=>
$password
,
password_crypted
=>
$password_crypted
,
htpasswd_file
=>
$htpasswd_file
,
ssl_mode
=>
$ssl_mode
,
run_mode
=>
$run_mode
,
run_uid
=>
$run_uid
,
run_uid_name
=>
$run_uid_name
,
run_gid
=>
$run_gid
,
user_scripts
=>
$user_scripts
,
user_scripts_options
=>
$user_scripts_options
,
watch_adjust_webfiles
=>
$watch_adjust_webfiles
,
wwwmail
=>
$wwwmail
,
nagios_check
=>
$nagios_check
,
nagios_check_domain
=>
$nagios_check_domain
,
nagios_check_url
=>
$nagios_check_url
,
nagios_check_code
=>
$nagios_check_code
,
nagios_use
=>
$nagios_use
,
git_repo
=>
$git_repo
,
}
$path
=
"/var/www/vhosts/
${name}
"
$documentroot
=
"
${path}
/www"
apache::vhost::php::gallery2
{
$name
:
ensure
=>
$ensure
,
configuration
=>
$configuration
,
domainalias
=>
$domainalias
,
server_admin
=>
$server_admin
,
logmode
=>
$logmode
,
group
=>
$real_group
,
allow_override
=>
$allow_override
,
do_includes
=>
$do_includes
,
options
=>
$options
,
additional_options
=>
$additional_options
,
default_charset
=>
$default_charset
,
run_mode
=>
$run_mode
,
ssl_mode
=>
$ssl_mode
,
php_settings
=>
$php_settings
,
php_options
=>
$php_options
,
vhost_mode
=>
$vhost_mode
,
vhost_source
=>
$vhost_source
,
vhost_destination
=>
$vhost_destination
,
htpasswd_file
=>
$htpasswd_file
,
mod_security
=>
$mod_security
,
manage_config
=>
$manage_config
,
config_webwriteable
=>
$config_webwriteable
,
manage_directories
=>
$manage_directories
,
}
case
$run_mode
{
'fcgid'
:
{
if
(
$run_uid_name
==
'absent'
){
$real_run_uid_name
=
"
${name}
_run"
}
else
{
$real_run_uid_name
=
$run_uid_name
}
if
(
$run_gid_name
==
'absent'
){
$real_run_gid_name
=
$gid_name
?
{
'absent'
=>
$name
,
default
=>
$gid_name
}
}
else
{
$real_run_gid_name
=
$run_gid_name
}
Apache
::
Vhost
::
Php
::
Gallery2
[
$name
]{
documentroot_owner
=>
$real_uid_name
,
documentroot_group
=>
$real_gid_name
,
run_uid
=>
$real_run_uid_name
,
run_gid
=>
$real_run_gid_name
,
require
=>
[
User
::
Sftp_only
[
$real_uid_name
],
User
::
Managed
[
$real_run_uid_name
]
],
}
}
default
:
{
Apache
::
Vhost
::
Php
::
Gallery2
[
$name
]{
require
=>
User
::
Sftp_only
[
$real_uid_name
],
}
}
}
if
$template_partial
!=
'absent'
{
Apache
::
Vhost
::
Php
::
Gallery2
[
$name
]{
template_partial
=>
$template_partial
}
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment