| Left: | ||
| Right: |
| LEFT | RIGHT |
|---|---|
| 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 Loading... | |
| 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 } |
| LEFT | RIGHT |