# @summary Sets up a phpldapadmin instance # @option nginx_server # Name of the nginx server # @option Manage server # Should this class manage the nginx server resource class profiles::phpldapadmin ( String $nginx_server, Boolean $manage_server = true, ) { include ::php_fpm nginx::resource::server { $nginx_server: ipv6_enable => true, ipv6_listen_options => '', www_root => '/usr/share/webapps/phpldapadmin', index_files => ['index.php'], } class { 'phpldapadmin': servername => 'Adrift.Space LDAP', auth_type => 'cookie', } php_fpm::nginx { 'phpldapadmin': server => $nginx_server, conf => { location_allow => [ '127.0.0.1', '::1', "${facts['network6']}/${extlib::netmask_to_cidr($facts['netmask6'])}", "${facts['network']}/${extlib::netmask_to_cidr($facts['netmask'])}", ], location_deny => [ 'all', ], www_root => '/usr/share/webapps/phpldapadmin', }, } # nginx::resource::location { 'phpldapadmin': # ssl => true, # ssl_only => true, # } }