Created
June 22, 2012 16:38
-
-
Save phrawzty/2973898 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class desktop_disk_encrypter ( | |
$dde_site_url, | |
$dde_db_name, | |
$dde_db_user, | |
$dde_db_pass, | |
$dde_secret, | |
$dde_binduser, | |
$dde_bindpass, | |
$gpg_key_ids, | |
$gpg_pubring, | |
$dde_ldap_server, | |
$desktop_ldap_group, | |
$admin_ldap_group, | |
$static_root, | |
$dde_db_type = 'mysql' | |
) { | |
include apache | |
include apache::standardconfig | |
realize(Yumrepo['epel']) | |
realize(File['/data']) | |
file { | |
'/data/desktop_disk_encrypter/settings.py': | |
content => template('desktop_disk_encrypter/settings.py.erb'), | |
notify => Service['httpd'], | |
require => Exec['install-desktop-disk-encrypter']; | |
'/etc/httpd/conf.d/desktop_disk_encrypter.conf': | |
ensure => file, | |
notify => Service['httpd'], | |
require => Package['httpd'], | |
source => 'puppet:///modules/desktop_disk_encrypter/desktop_disk_encrypter.conf'; | |
'/var/log/httpd/desktop_disk_encrypter.mozilla.org': | |
ensure => directory, | |
require => Package['httpd']; | |
} | |
realize(Package['git']) | |
realize(Package['mod_wsgi']) | |
realize(Package['Django']) | |
package { | |
[ | |
'MySQL-python', | |
'python-ldap', | |
'python-setuptools', | |
'mysql', | |
]: | |
ensure => latest; | |
} | |
exec { | |
'install-pip': | |
command => '/usr/bin/easy_install-2.6 pip', | |
creates => '/usr/bin/pip', | |
require => Package['python-setuptools']; | |
'install-desktop-disk-encrypter': | |
command => '/usr/bin/git clone git://github.com/rtucker-mozilla/disk_key_encrypter.git', | |
cwd => '/data/', | |
creates => '/data/desktop_disk_encrypter', | |
require => [ File['/data'], Package['git'] ]; | |
'initialize-db': | |
command => '/usr/bin/python manage.py syncdb --noinput', | |
cwd => '/data/desktop_disk_encrypter', | |
require => Exec['install-desktop-disk-encrypter']; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment