mirror of
https://github.com/saltstack-formulas/salt-formula.git
synced 2026-10-23 23:14:05 +02:00
add support for installing salt-ssh and managing the roster file, updated README and pillar.example
This commit is contained in:
1 parent
9fa42fe09d
commit
cde16097ed
5 files changed
+39
-1
No files matched your search
@@ -0,0 +1,12 @@
|
||||
#
|
||||
# This file is managed by Salt! Do not edit by hand!
|
||||
#
|
||||
{%- set roster = salt['pillar.get']('salt:ssh_roster') -%}
|
||||
{%- if roster %}
|
||||
{%- for host, options in roster.items() %}
|
||||
{{ host }}:
|
||||
{%- for k, v in options.items() %}
|
||||
{{ k }}: {{ v }}
|
||||
{%- endfor %}
|
||||
{% endfor %}
|
||||
{%- endif -%}
|
||||
@@ -6,7 +6,8 @@
|
||||
'Ubuntu': {'salt-master': 'salt-master',
|
||||
'salt-minion': 'salt-minion',
|
||||
'salt-syndic': 'salt-syndic',
|
||||
'salt-cloud': 'salt-cloud'},
|
||||
'salt-cloud': 'salt-cloud',
|
||||
'salt-ssh': 'salt-ssh'},
|
||||
'CentOS': {'salt-master': 'salt-master',
|
||||
'salt-minion': 'salt-minion',
|
||||
'salt-syndic': 'salt-syndic',
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
{% from "salt/package-map.jinja" import pkgs with context %}
|
||||
|
||||
ensure salt-ssh is installed:
|
||||
pkg.installed:
|
||||
- name: {{ pkgs['salt-ssh'] }}
|
||||
|
||||
ensure roster config:
|
||||
file.managed:
|
||||
- name: {{ pkgs.get('config_path', '/etc/salt') }}/roster
|
||||
- source: salt://salt/files/roster.jinja
|
||||
- template: jinja
|
||||
- require:
|
||||
- pkg: ensure salt-ssh is installed
|
||||
Reference in new issue
Block a user