# Copyright 2013 OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. # # openstackid idp(sso-openid) dev server # class openstack_project::openid_dev ( $sysadmins = [], $site_admin_password = '', $site_mysql_password = '', $site_mysql_user = 'openstackid', $site_mysql_host = '127.0.0.1', $db_name = 'openstackid_openid_dev', $redis_port = '6378', $redis_max_memory = '1gb', $redis_bind = '127.0.0.1', ) { realize ( User::Virtual::Localuser['smarcet'], ) class { 'openstack_project::server': iptables_public_tcp_ports => [80, 443], sysadmins => $sysadmins, } # php packages needed for openid server include apt apt::ppa { 'ppa:ondrej/php5-oldstable': } # we need PHP 5.4 or greather package { ['php5-common','php5-curl','php5-cli','php5-json','php5-mcrypt','php5-mysql']: require => [ Exec[apt_update], Class['openstack_project::server'] ] } # redis (custom module written by tipit) class { 'redis': redis_port => $redis_port, redis_max_memory => $redis_max_memory, redis_bind => $redis_bind, } include apache include apache::ssl include apache::php }