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:
...
@@ -4,7 +4,3 @@ virtualenv_agentdriver:
- requirements: /home/{{ pillar['user'] }}/agentdriver/requirements.txt
- requirements: /home/{{ pillar['user'] }}/agentdriver/requirements.txt
- user: {{ pillar['user'] }}
- user: {{ pillar['user'] }}
- no_chown: true
- no_chown: true
{% if grains["osfinger"] == "Ubuntu-16.04" %}
- require:
- file: ubuntu_virtualenvwrapper
{% endif %}
salt/common.sls
View file @
b56e3bc7
git:
git:
pkg.installed
pkg.installed
{% 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:
...
@@ -4,7 +4,3 @@ virtualenv_fwdriver:
- requirements: /home/{{ pillar['fwdriver']['user'] }}/fwdriver/requirements/production.txt
- requirements: /home/{{ pillar['fwdriver']['user'] }}/fwdriver/requirements/production.txt
- user: {{ pillar['fwdriver']['user'] }}
- user: {{ pillar['fwdriver']['user'] }}
- no_chown: true
- 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:
...
@@ -12,9 +12,6 @@ virtualenv_graphite:
- user: {{ pillar['graphite']['user'] }}
- user: {{ pillar['graphite']['user'] }}
- file: /home/{{ pillar['graphite']['user'] }}/requirements.txt
- file: /home/{{ pillar['graphite']['user'] }}/requirements.txt
- file: /opt/graphite
- file: /opt/graphite
{% if grains["osfinger"] == "Ubuntu-16.04" %}
- file: ubuntu_virtualenvwrapper
{% endif %}
global-site-packages:
global-site-packages:
file.absent:
file.absent:
...
...
salt/manager/virtualenv.sls
View file @
b56e3bc7
...
@@ -24,9 +24,6 @@ virtualenv_manager:
...
@@ -24,9 +24,6 @@ virtualenv_manager:
{% if grains['os_family'] == 'RedHat' %}
{% if grains['os_family'] == 'RedHat' %}
- environ: m2crypto_swig_env
- environ: m2crypto_swig_env
{% endif %}
{% endif %}
{% if grains["osfinger"] == "Ubuntu-16.04" %}
- file: ubuntu_virtualenvwrapper
{% endif %}
salt://manager/files/syncdb.sh:
salt://manager/files/syncdb.sh:
cmd.script:
cmd.script:
...
...
salt/monitor-client/virtualenv.sls
View file @
b56e3bc7
...
@@ -4,7 +4,3 @@ virtualenv_monitor-client:
...
@@ -4,7 +4,3 @@ virtualenv_monitor-client:
- requirements: /home/{{ pillar['user'] }}/monitor-client/requirements.txt
- requirements: /home/{{ pillar['user'] }}/monitor-client/requirements.txt
- user: {{ pillar['user'] }}
- user: {{ pillar['user'] }}
- no_chown: true
- 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
{# For non-interactive shells, virtualenvwrapper commands
('workon' etc.) are not sourced automatically #}
('workon' etc.) are not sourced automatically #}
/etc/profile:
/etc/profile:
...
...
salt/storagedriver/virtualenv.sls
View file @
b56e3bc7
...
@@ -6,6 +6,3 @@ virtualenv_storagedriver:
...
@@ -6,6 +6,3 @@ virtualenv_storagedriver:
- no_chown: true
- no_chown: true
- require:
- require:
- pkg: storagedriver
- 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:
...
@@ -4,10 +4,6 @@ virtualenv_vmdriver:
- requirements: /home/{{ pillar['user'] }}/vmdriver/requirements/production.txt
- requirements: /home/{{ pillar['user'] }}/vmdriver/requirements/production.txt
- user: {{ pillar['user'] }}
- user: {{ pillar['user'] }}
- no_chown: true
- 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/" %}
{% 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:
...
@@ -4,7 +4,3 @@ virtualenv_vncproxy:
- requirements: /home/{{ pillar['user'] }}/vncproxy/requirements/production.txt
- requirements: /home/{{ pillar['user'] }}/vncproxy/requirements/production.txt
- user: {{ pillar['user'] }}
- user: {{ pillar['user'] }}
- no_chown: true
- 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