services.map.jinja 1.17 KB
Newer Older
remy's avatar
remy committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# from https://github.com/saltstack-formulas/dhcpd-formula/blob/master/dhcpd/map.jinja

{% set preset_servicenames = salt['grains.filter_by']({
    'RedHat': {
        'apache': 'httpd',
        'cron': 'crond',
        'dhcp': 'dhcpd', 
        'dns': 'named',
        'docker': 'docker',
        'ftp': 'proftpd',
        'ganglia-client': 'gmond',
        'mail': 'postfix',
        'mysql': 'mysqld',
        'nginx': 'nginx',
        'nfs': 'nfs',
        'sshgpu': '',
        'nvidiadocker': 'nvidia-docker',
        'postgres': 'postgresql',
        'sge': 'sgemaster',
        'ssh': 'sshd',
    },
    'Debian': {
        'apache': 'apache2',
        'cron': 'cron',
        'dhcp': 'isc-dhcp-server', 
        'dns': 'bind9',
        'docker': 'docker',
        'ftp': 'proftpd',
        'ganglia-client': 'ganglia-monitor',
        'mail': 'postfix',
        'mysql': 'mysql',
        'nginx': 'nginx',
        'nfs': 'nfs-kernel-server',
        'sshgpu': 'docker-ssh-gpu',
        'nvidiadocker': 'nvidia-docker',
        'postgres': 'postgresql',
        'sge': 'sgemaster',
        'ssh': 'ssh',
    },
}, grain='os_family') %}


#}, merge=salt['pillar.get']('dhcpd:lookup')) %}