Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
salt-formula
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
salt
salt-formula
Commits
4c1f5779
Commit
4c1f5779
authored
10 years ago
by
Brian Jackson
Browse files
Options
Downloads
Patches
Plain Diff
Revert "Advance sal/api.sls, install rest_cherrypy or rest_tornado from pip."
This reverts commit
7bb82b01
.
parent
6e98d508
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.rst
+0
-1
0 additions, 1 deletion
README.rst
salt/api.sls
+5
-37
5 additions, 37 deletions
salt/api.sls
salt/defaults.yaml
+0
-3
0 additions, 3 deletions
salt/defaults.yaml
with
5 additions
and
41 deletions
README.rst
+
0
−
1
View file @
4c1f5779
...
...
@@ -46,7 +46,6 @@ Configure pillar data under salt:ssh_roster to feed the template.
Install salt api
Requisite: Configure salt-master with rest_cherrypy or rest_tornado.
Requires: pip.extensions as it installs the latest version from pip.
``salt.standalone``
-------------------
...
...
This diff is collapsed.
Click to expand it.
salt/api.sls
+
5
−
37
View file @
4c1f5779
#!jinja|yaml
{% from "salt/map.jinja" import salt_settings with context %}
include:
- salt.master
- pip.extensions
{%- set cfg_salt = pillar.get('salt', {}) %}
{%- set cfg_master = cfg_salt.get('master', {}) %}
salt-api:
{% if salt_settings.install_packages %}
pkg.installed:
- name: {{ salt_settings['salt-api'] }}
- name: {{ salt_settings.salt_api }}
{% endif %}
service.running:
- name: {{ salt_settings.
get('
api_service
', 'salt-api')
}}
- name: {{ salt_settings.api_service }}
- require:
- service: {{ salt_settings.get('api_service', 'salt-api') }}
{%- if 'rest_cherrypy' in cfg_master %}
- pip: salt-api-cherrypy
{% elif 'rest_tornado' in cfg_master %}
- pip: salt-api-tornado
{% endif %}
- service: {{ salt_settings.master_service }}
- watch:
- pkg: salt-master
- file: salt-master
{%- if 'rest_cherrypy' in cfg_master %}
salt-api-cherrypy:
pkg.purged:
- name: {{ salt_settings['python-cherrypy'] }}
pip.installed:
- name: cherrypy
- require:
- pkg: salt-api-cherrypy
- pkg: pip_extensions
{% endif %}
{%- if 'rest_tornado' in cfg_master %}
salt-api-tornado:
pkg.purged:
- name: {{ salt_settings['python-tornado'] }}
pip.installed:
- name: tornado
- require:
- pkg: salt-api-tornado
- pkg: pip_extensions
{% endif %}
This diff is collapsed.
Click to expand it.
salt/defaults.yaml
+
0
−
3
View file @
4c1f5779
...
...
@@ -18,9 +18,6 @@ salt:
salt_api
:
salt-api
salt_ssh
:
salt-ssh
python-cherrypy
:
python-cherrypy
python-tornado
:
python-tornado
master
:
gitfs_provider
:
gitpython
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment