]> git.donarmstrong.com Git - dsa-puppet.git/blob - 3rdparty/modules/keystone/manifests/dev/install.pp
3e68113c2cbb784f426799a57919357f42f4a0f4
[dsa-puppet.git] / 3rdparty / modules / keystone / manifests / dev / install.pp
1 #
2 # Installs keystone from source. This is not yet fully implemented
3 #
4 # == Dependencies
5 # == Examples
6 # == Authors
7 #
8 #   Dan Bode dan@puppetlabs.com
9 #
10 # == Copyright
11 #
12 # Copyright 2012 Puppetlabs Inc, unless otherwise noted.
13 #
14 class keystone::dev::install(
15   $source_dir = '/usr/local/keystone'
16 ) {
17   # make sure that I have python 2.7 installed
18
19   Class['openstack::dev'] -> Class['keystone::dev::install']
20
21   # there are likely conficts with other packages
22   # introduced by these resources
23   package { [
24       'python-dev',
25       'libxml2-dev',
26       'libxslt1-dev',
27       'libsasl2-dev',
28       'libsqlite3-dev',
29       'libssl-dev',
30       'libldap2-dev',
31       'sqlite3'
32     ]:
33       ensure => latest,
34   }
35
36   vcsrepo { $source_dir:
37     ensure   => present,
38     provider => git,
39     source   => 'git://github.com/openstack/keystone.git',
40   }
41
42   Exec {
43     cwd         => $source_dir,
44     path        => '/usr/bin',
45     refreshonly => true,
46     subscribe   => Vcsrepo[$source_dir],
47     logoutput   => true,
48     # I have disabled timeout since this seems to take forever
49     # this may be a bad idea :)
50     timeout     => 0,
51   }
52
53   # TODO - really, I need a way to take this file and
54   # convert it into package resources
55   exec { 'install_dev_deps':
56     command => 'pip install -r tools/pip-requires',
57   }
58
59   exec { 'install_keystone_source':
60     command => 'python setup.py develop',
61     require => Exec['install_dev_deps'],
62   }
63
64 }