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

Unified Diff: modules/rietveld/manifests/init.pp

Issue 6651739155464192: Issue 2185 - Migrate Rieveld superuser creation to fixture (Closed)
Patch Set: Issue Issue 2185 - Migrate Rieveld superuser creation to fixture Created March 20, 2015, 12:48 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: modules/rietveld/manifests/init.pp
diff --git a/modules/rietveld/manifests/init.pp b/modules/rietveld/manifests/init.pp
index dba5df5b0c27557b6ecc5da46f512363288ecb42..4ae902aa88ee2e42446953fa5fedfe2aa3806711 100644
--- a/modules/rietveld/manifests/init.pp
+++ b/modules/rietveld/manifests/init.pp
@@ -81,12 +81,6 @@ class rietveld(
require => [Package['gunicorn'], File['/etc/init.d/rietveld']]
}
- exec {'set_superuser':
- 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",
- cwd => "${rietveld_home}",
- require => Exec['install_rietveld'],
- }
-
file {"${rietveld_home}/fixtures":
ensure => directory,
owner => 'rietveld',

Powered by Google App Engine
This is Rietveld