Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
salt
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
17
Merge Requests
1
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b56e3bc7
authored
Jul 21, 2016
by
Desztics Armand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reworked virtualenvwrapper shell sourcing
parent
8df6aa33
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
1 additions
and
39 deletions
+1
-39
salt/agentdriver/virtualenv.sls
+0
-4
salt/common.sls
+0
-9
salt/fwdriver/virtualenv.sls
+0
-4
salt/graphite/virtualenv.sls
+0
-3
salt/manager/virtualenv.sls
+0
-3
salt/monitor-client/virtualenv.sls
+0
-4
salt/profile.sls
+1
-1
salt/storagedriver/virtualenv.sls
+0
-3
salt/vmdriver/virtualenv.sls
+0
-4
salt/vncproxy/virtualenv.sls
+0
-4
No files found.
salt/agentdriver/virtualenv.sls
View file @
b56e3bc7
...
...
@@ -4,7 +4,3 @@ virtualenv_agentdriver:
- requirements: /home/{{ pillar['user'] }}/agentdriver/requirements.txt
- user: {{ pillar['user'] }}
- no_chown: true
{% if grains["osfinger"] == "Ubuntu-16.04" %}
- require:
- file: ubuntu_virtualenvwrapper
{% endif %}
salt/common.sls
View file @
b56e3bc7
git:
pkg.installed
\ No newline at end of file
{% if grains['osfinger'] == 'Ubuntu-16.04' %}
ubuntu_virtualenvwrapper:
file.append:
- name: /etc/profile
- text:
- "export WORKON_HOME=$HOME/.virtualenvs"
- "source /usr/share/virtualenvwrapper/virtualenvwrapper.sh"
{% endif %}
\ No newline at end of file
salt/fwdriver/virtualenv.sls
View file @
b56e3bc7
...
...
@@ -4,7 +4,3 @@ virtualenv_fwdriver:
- requirements: /home/{{ pillar['fwdriver']['user'] }}/fwdriver/requirements/production.txt
- user: {{ pillar['fwdriver']['user'] }}
- no_chown: true
{% if grains["osfinger"] == "Ubuntu-16.04" %}
- require:
- file: ubuntu_virtualenvwrapper
{% endif %}
salt/graphite/virtualenv.sls
View file @
b56e3bc7
...
...
@@ -12,9 +12,6 @@ virtualenv_graphite:
- user: {{ pillar['graphite']['user'] }}
- file: /home/{{ pillar['graphite']['user'] }}/requirements.txt
- file: /opt/graphite
{% if grains["osfinger"] == "Ubuntu-16.04" %}
- file: ubuntu_virtualenvwrapper
{% endif %}
global-site-packages:
file.absent:
...
...
salt/manager/virtualenv.sls
View file @
b56e3bc7
...
...
@@ -24,9 +24,6 @@ virtualenv_manager:
{% if grains['os_family'] == 'RedHat' %}
- environ: m2crypto_swig_env
{% endif %}
{% if grains["osfinger"] == "Ubuntu-16.04" %}
- file: ubuntu_virtualenvwrapper
{% endif %}
salt://manager/files/syncdb.sh:
cmd.script:
...
...
salt/monitor-client/virtualenv.sls
View file @
b56e3bc7
...
...
@@ -4,7 +4,3 @@ virtualenv_monitor-client:
- requirements: /home/{{ pillar['user'] }}/monitor-client/requirements.txt
- user: {{ pillar['user'] }}
- no_chown: true
{% if grains["osfinger"] == "Ubuntu-16.04" %}
- require:
- file: ubuntu_virtualenvwrapper
{% endif %}
salt/profile.sls
View file @
b56e3bc7
{% if grains['os']=='Debian' %}
{% if grains['os']=='Debian'
or grains['osfinger'] == 'Ubuntu-16.04'
%}
{# For non-interactive shells, virtualenvwrapper commands
('workon' etc.) are not sourced automatically #}
/etc/profile:
...
...
salt/storagedriver/virtualenv.sls
View file @
b56e3bc7
...
...
@@ -6,6 +6,3 @@ virtualenv_storagedriver:
- no_chown: true
- require:
- pkg: storagedriver
{% if grains["osfinger"] == "Ubuntu-16.04" %}
- file: ubuntu_virtualenvwrapper
{% endif %}
salt/vmdriver/virtualenv.sls
View file @
b56e3bc7
...
...
@@ -4,10 +4,6 @@ virtualenv_vmdriver:
- requirements: /home/{{ pillar['user'] }}/vmdriver/requirements/production.txt
- user: {{ pillar['user'] }}
- no_chown: true
{% if grains["osfinger"] == "Ubuntu-16.04" %}
- require:
- file: ubuntu_virtualenvwrapper
{% endif %}
{% set libvirt_dir = "/usr/lib64/python2.7/site-packages/" if grains['os_family'] == 'RedHat' else "/usr/lib/python2.7/dist-packages/" %}
...
...
salt/vncproxy/virtualenv.sls
View file @
b56e3bc7
...
...
@@ -4,7 +4,3 @@ virtualenv_vncproxy:
- requirements: /home/{{ pillar['user'] }}/vncproxy/requirements/production.txt
- user: {{ pillar['user'] }}
- no_chown: true
{% if grains["osfinger"] == "Ubuntu-16.04" %}
- require:
- file: ubuntu_virtualenvwrapper
{% endif %}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment