aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2019-06-10 18:34:53 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2019-06-10 18:34:53 +0200
commitda0f686b366140aab3d01c95f37eb655f07f81ef (patch)
tree4b59228ea6ae208bdb964dfeb422d77d28a8acc8
parent931dddda66f58b710f6a9734506e9b2cc50c9ebe (diff)
downloadPuppet-da0f686b366140aab3d01c95f37eb655f07f81ef.tar.gz
Puppet-da0f686b366140aab3d01c95f37eb655f07f81ef.tar.zst
Puppet-da0f686b366140aab3d01c95f37eb655f07f81ef.zip
Stop overwriting manage.py
-rw-r--r--modules/role/manifests/caldance.pp10
-rw-r--r--modules/role/templates/caldance/manage.py.erb9
2 files changed, 0 insertions, 19 deletions
diff --git a/modules/role/manifests/caldance.pp b/modules/role/manifests/caldance.pp
index d4c8207..1ec51bf 100644
--- a/modules/role/manifests/caldance.pp
+++ b/modules/role/manifests/caldance.pp
@@ -118,16 +118,6 @@ class role::caldance (
118 118
119 $uwsgi_path = "${home}/virtualenv/bin/uwsgi" 119 $uwsgi_path = "${home}/virtualenv/bin/uwsgi"
120 $python_path = "${home}/virtualenv/bin/python" 120 $python_path = "${home}/virtualenv/bin/python"
121 file { "$caldance_app/manage.py":
122 owner => $user,
123 group => $group,
124 mode => "0644",
125 content => template("role/caldance/manage.py.erb"),
126 require => [
127 User["$user:"],
128 Archive[ "${home}/caldance_${caldance_version}.tar.gz"],
129 ],
130 }
131 file { "$caldance_app/manage": 121 file { "$caldance_app/manage":
132 owner => $user, 122 owner => $user,
133 group => $group, 123 group => $group,
diff --git a/modules/role/templates/caldance/manage.py.erb b/modules/role/templates/caldance/manage.py.erb
deleted file mode 100644
index dc06eab..0000000
--- a/modules/role/templates/caldance/manage.py.erb
+++ /dev/null
@@ -1,9 +0,0 @@
1#!<%= @python_path %> -O
2import os
3import sys
4
5if __name__ == "__main__":
6 os.environ.setdefault("DJANGO_SETTINGS_MODULE", "main_app.settings")
7
8 from django.core.management import execute_from_command_line
9 execute_from_command_line(sys.argv)