Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Delta Between Two Patch Sets: modules/rietveld/manifests/init.pp

Issue 5459448122310656: Add rietveld to infrastructure (Closed)
Left Patch Set: The two comments Created Feb. 12, 2014, 2:13 p.m.
Right Patch Set: Remove small dependency Created Feb. 12, 2014, 4:44 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « modules/rietveld/files/rietveld.conf ('k') | modules/rietveld/templates/settings.py.erb » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 class rietveld($domain) inherits private::rietveld { 1 class rietveld($domain) inherits private::rietveld {
2 2
3 include nginx 3 include nginx
4 $django_home = '/home/rietveld/django-gae2django' 4 $django_home = '/home/rietveld/django-gae2django'
5 $rietveld_home = "${django_home}/examples/rietveld" 5 $rietveld_home = "${django_home}/examples/rietveld"
6 6
7 Exec { 7 Exec {
8 path => '/usr/bin:/usr/sbin:/bin:/usr/local/bin', 8 path => '/usr/bin:/usr/sbin:/bin:/usr/local/bin',
9 } 9 }
10 10
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 file {'/etc/init.d/rietveld': 63 file {'/etc/init.d/rietveld':
64 ensure => link, 64 ensure => link,
65 target => '/lib/init/upstart-job', 65 target => '/lib/init/upstart-job',
66 require => [File['/etc/init/rietveld.conf'], Exec['install_rietveld']] 66 require => [File['/etc/init/rietveld.conf'], Exec['install_rietveld']]
67 } 67 }
68 68
69 service {'rietveld': 69 service {'rietveld':
70 ensure => running, 70 ensure => running,
71 hasstatus => false, 71 hasstatus => false,
72 require => [Package['gunicorn'], File['/etc/init.d/rietveld'], Exec['install _rietveld']] 72 require => [Package['gunicorn'], File['/etc/init.d/rietveld']]
Felix Dahlke 2014/02/12 16:40:15 Now the Exec['install_rietveld'] here can go away
christian 2014/02/12 16:45:31 Done.
73 } 73 }
74 74
75 exec {'set_superuser': 75 exec {'set_superuser':
76 command => "echo \"from django.db import DEFAULT_DB_ALIAS as database; from django.contrib.auth.models import User; User.objects.db_manager(database).create _superuser('admin', 'admins@adblockplus.org', '${admin_password}')\" | ./manage. py shell", 76 command => "echo \"from django.db import DEFAULT_DB_ALIAS as database; from django.contrib.auth.models import User; User.objects.db_manager(database).create _superuser('admin', 'admins@adblockplus.org', '${admin_password}')\" | ./manage. py shell",
77 cwd => "${rietveld_home}", 77 cwd => "${rietveld_home}",
78 require => Exec['install_rietveld'], 78 require => Exec['install_rietveld'],
79 } 79 }
80 } 80 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld