56472aa9d4
blueprint sso-openid-provider Change-Id: I7966f59df6bd6ba851b507c7a408f076d7031abe
59 lines
1.7 KiB
Puppet
59 lines
1.7 KiB
Puppet
# 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
|
|
}
|