Sha256: cc9b12489052dac5741fe121c2443a7275677311bcd54f8d193404a8b5c179d0

Contents?: true

Size: 1.1 KB

Versions: 2

Compression:

Stored size: 1.1 KB

Contents

# Configuration file for salt-minion. Some workaround is present here:
# currently salt-minion cannot restart itself, thus it's impossible to restart
# minion after valuable changes like changing config file.

/etc/salt/minion.d:
  file.directory:
    - user: root
    - group: root
    - mode: 0755
    - clean: True
    - require:
      - pkg: salt-minion

restart_minion:
  cmd.wait:
    - name: "echo 'invoke-rc.d salt-minion restart'|at now + 1 min"
    - order: last
    - watch:
      - pkg: salt-minion
      - file: /etc/salt/minion
      - file: /etc/salt/minion.d
    - require:
      - pkg: at

salt-minion:
  service:
    - running
    - enable: True
  pkg.installed:
    - names:
      - salt-minion
      - at
  file.managed:
    - name: /etc/salt/minion
    - owner: root
    - group: root
    - mode: 0644
    - source: salt://salt/minion/config.template
    - template: jinja
    - context:
      master: salt
      file_roots:
        base:
          - /srv/salt/private
          - /srv/salt/base
      pillar_roots:
        base:
          - /srv/salt/private/pillar
          - /srv/salt/base/pillar

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
salted-rails-0.0.4 salt/salt/minion/init.sls
salted-rails-0.0.2 salt/salt/minion/init.sls