puppet-keystone/manifests/dev/install.pp
Sebastien Badia a3bdaad473 Add missing puppetdoc and lint all parameter documentation
Un-pin puppet-lint gem and add puppet-lint-param-docs, this commit also
add missing puppetdoc and fixes lint issues.

Change-Id: I1eefc743c68c75eb54a65b3cc539922ef3a3b04d
2015-03-15 18:09:16 +01:00

71 lines
1.5 KiB
Puppet

#
# Installs keystone from source. This is not yet fully implemented
#
# == Parameters
#
# [*source_dir*]
# (optional) The source dire for dev installation
# Defaults to '/usr/local/keystone'
#
# == Dependencies
# == Examples
# == Authors
#
# Dan Bode dan@puppetlabs.com
#
# == Copyright
#
# Copyright 2012 Puppetlabs Inc, unless otherwise noted.
#
class keystone::dev::install(
$source_dir = '/usr/local/keystone'
) {
# make sure that I have python 2.7 installed
Class['openstack::dev'] -> Class['keystone::dev::install']
# there are likely conficts with other packages
# introduced by these resources
package { [
'python-dev',
'libxml2-dev',
'libxslt1-dev',
'libsasl2-dev',
'libsqlite3-dev',
'libssl-dev',
'libldap2-dev',
'sqlite3'
]:
ensure => latest,
}
vcsrepo { $source_dir:
ensure => present,
provider => git,
source => 'git://github.com/openstack/keystone.git',
}
Exec {
cwd => $source_dir,
path => '/usr/bin',
refreshonly => true,
subscribe => Vcsrepo[$source_dir],
logoutput => true,
# I have disabled timeout since this seems to take forever
# this may be a bad idea :)
timeout => 0,
}
# TODO - really, I need a way to take this file and
# convert it into package resources
exec { 'install_dev_deps':
command => 'pip install -r tools/pip-requires',
}
exec { 'install_keystone_source':
command => 'python setup.py develop',
require => Exec['install_dev_deps'],
}
}