diff --git a/nubis/builder/provisioners.json b/nubis/builder/provisioners.json index 3103d22..ab9f19b 100644 --- a/nubis/builder/provisioners.json +++ b/nubis/builder/provisioners.json @@ -20,12 +20,6 @@ "destination": "/var/www/dpaste/dpaste/settings/local.py", "order": "3" }, - { - "type": "file", - "source": "nubis/bin/wsgi.py", - "destination": "/var/www/dpaste/wsgi.py", - "order": "4" - }, { "type": "shell", "inline": [ diff --git a/nubis/puppet/dpaste.pp b/nubis/puppet/dpaste.pp index 36661f4..873f9f2 100644 --- a/nubis/puppet/dpaste.pp +++ b/nubis/puppet/dpaste.pp @@ -8,6 +8,11 @@ require => Class['python'] } +file { "/var/www/dpaste/wsgi.py": + ensure => present, + source => "puppet:///nubis/files/wsgi.py", +} + exec { "apt-get update": command => "/usr/bin/apt-get update", } diff --git a/nubis/bin/wsgi.py b/nubis/puppet/files/wsgi.py similarity index 100% rename from nubis/bin/wsgi.py rename to nubis/puppet/files/wsgi.py