]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/commitdiff
Stop overwriting manage.py
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Mon, 10 Jun 2019 16:34:53 +0000 (18:34 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Mon, 10 Jun 2019 16:34:53 +0000 (18:34 +0200)
modules/role/manifests/caldance.pp
modules/role/templates/caldance/manage.py.erb [deleted file]

index d4c820769975f26c7d360b169b372073b608817f..1ec51bfb0e95cf92f4359f51d557932eaa90ebcb 100644 (file)
@@ -118,16 +118,6 @@ class role::caldance (
 
   $uwsgi_path = "${home}/virtualenv/bin/uwsgi"
   $python_path = "${home}/virtualenv/bin/python"
 
   $uwsgi_path = "${home}/virtualenv/bin/uwsgi"
   $python_path = "${home}/virtualenv/bin/python"
-  file { "$caldance_app/manage.py":
-    owner   => $user,
-    group   => $group,
-    mode    => "0644",
-    content => template("role/caldance/manage.py.erb"),
-    require => [
-      User["$user:"],
-      Archive[ "${home}/caldance_${caldance_version}.tar.gz"],
-    ],
-  }
   file { "$caldance_app/manage":
     owner   => $user,
     group   => $group,
   file { "$caldance_app/manage":
     owner   => $user,
     group   => $group,
diff --git a/modules/role/templates/caldance/manage.py.erb b/modules/role/templates/caldance/manage.py.erb
deleted file mode 100644 (file)
index dc06eab..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#!<%= @python_path %> -O
-import os
-import sys
-
-if __name__ == "__main__":
-        os.environ.setdefault("DJANGO_SETTINGS_MODULE", "main_app.settings")
-
-        from django.core.management import execute_from_command_line
-        execute_from_command_line(sys.argv)