shotgun is installed in Vagrant env

Also, generate_shotgun_config command added for easy inspection.

Change-Id: Ib77774dcae6b3104d4f11230e6c154d875f672b2
This commit is contained in:
Przemyslaw Kaminski 2015-05-15 16:05:53 +02:00
parent 1fbb1065a8
commit b2441ab692
2 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,25 @@
#!/bin/bash
# Copyright 2015 Mirantis, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
. /etc/bash_completion.d/virtualenvwrapper
workon fuel
cd /sources/fuel-web
python -c 'import json
from nailgun.task.task import DumpTask
f = open("/tmp/shotgun-config.json", "w")
f.write(json.dumps(DumpTask.conf(), indent=2))'

View File

@ -92,3 +92,14 @@ python-fuel-command-config:
- source: salt://nailgun/client-config.yaml
- require:
- file: python-fuel-command-config-dir
python-shotgun-command:
cmd.run:
- name: python setup.py develop
- cwd: /sources/fuel-web/shotgun
generate-shotgun-config-command:
file.managed:
- name: /usr/bin/generate_shotgun_config
- source: salt://nailgun/generate_shotgun_config
- mode: 0777