From 45d73ca7b629004b5178d241c3a9032db69ba106 Mon Sep 17 00:00:00 2001 From: Andrew Forrest Date: Wed, 18 Sep 2013 14:19:36 -0700 Subject: [PATCH] Include scripts in package: chef + orchestrator Add the 'data_files' and 'scripts' directives to the setup() call in setup.py so as to make setuptools include the chef scripts and orchestrator script in the package and install them in locations suitable for the current code. Change-Id: Iad2ca28224a60ec0cb23dcbb0f0b23fa8801f513 Closes-bug: #1226153 --- setup.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/setup.py b/setup.py index d5a1269..6ac5358 100644 --- a/setup.py +++ b/setup.py @@ -20,4 +20,13 @@ setup( "python-novaclient>=2.13.0", "IPython>=0.13.2", ], + data_files=[('bin', ['bin/configure_knife.sh', + 'bin/install_chefserver.sh', + 'bin/pre_install_chefserver.sh', + 'bin/pre_install_ovs.sh', + 'bin/pre_switch_kernel.sh', + 'bin/setup_chef_repo.sh', + 'bin/userdata.sh.template', + ])], + scripts=['bin/orchestrator'], )