Browse Source

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
master
Andrew Forrest 5 years ago
parent
commit
45d73ca7b6
1 changed files with 9 additions and 0 deletions
  1. 9
    0
      setup.py

+ 9
- 0
setup.py View File

@@ -20,4 +20,13 @@ setup(
20 20
         "python-novaclient>=2.13.0",
21 21
         "IPython>=0.13.2",
22 22
     ],
23
+    data_files=[('bin', ['bin/configure_knife.sh',
24
+                         'bin/install_chefserver.sh',
25
+                         'bin/pre_install_chefserver.sh',
26
+                         'bin/pre_install_ovs.sh',
27
+                         'bin/pre_switch_kernel.sh',
28
+                         'bin/setup_chef_repo.sh',
29
+                         'bin/userdata.sh.template',
30
+                         ])],
31
+    scripts=['bin/orchestrator'],
23 32
 )

Loading…
Cancel
Save