diff --git a/buildbot/master/init.sls b/buildbot/master/init.sls index e547bb2a9..dd3323c6a 100644 --- a/buildbot/master/init.sls +++ b/buildbot/master/init.sls @@ -14,7 +14,6 @@ buildbot-master: - twisted == 16.6.0 # NOTE: keep in sync with buildbot-slave sls - require: - pkg: pip - {% if grains.get('virtual_subtype', '') != 'Docker' %} service.running: - enable: True # Buildbot must be restarted manually! See 'Buildbot administration' on the @@ -24,7 +23,6 @@ buildbot-master: - pip: buildbot-master - file: ownership-{{ common.servo_home }}/buildbot/master - file: /etc/init/buildbot-master.conf - {% endif %} deploy-{{ common.servo_home }}/buildbot/master: file.recurse: @@ -79,14 +77,12 @@ ownership-{{ common.servo_home }}/buildbot/master: - context: common: {{ common }} -{% if grains.get('virtual_subtype', '') != 'Docker' %} buildbot-github-listener: service.running: - enable: True - watch: - file: /usr/local/bin/github_buildbot.py - file: /etc/init/buildbot-github-listener.conf -{% endif %} remove-old-build-logs: cron.present: diff --git a/buildbot/slave/init.sls b/buildbot/slave/init.sls index 7457453d0..090e1e06b 100644 --- a/buildbot/slave/init.sls +++ b/buildbot/slave/init.sls @@ -50,14 +50,11 @@ buildbot-slave-dependencies: - template: jinja - context: common: {{ common }} - {% if grains.get('virtual_subtype', '') != 'Docker' %} - watch_in: - service: buildbot-slave - {% endif %} {% endif %} -{% if grains.get('virtual_subtype', '') != 'Docker' %} buildbot-slave: service.running: - enable: True @@ -66,4 +63,3 @@ buildbot-slave: - watch: - pip: buildbot-slave-dependencies - file: {{ common.servo_home }}/buildbot/slave -{% endif %} diff --git a/homu/init.sls b/homu/init.sls index 8fd258aad..29d886a2c 100644 --- a/homu/init.sls +++ b/homu/init.sls @@ -45,7 +45,6 @@ homu: - bin_env: /home/servo/homu/_venv - require: - virtualenv: homu - {% if grains.get('virtual_subtype', '') != 'Docker' %} service.running: - enable: True - require: @@ -53,7 +52,6 @@ homu: - watch: - file: /home/servo/homu/cfg.toml - file: /etc/init/homu.conf - {% endif %} {{ salt['file.dirname'](homu.db) }}: file.directory: diff --git a/intermittent-tracker/init.sls b/intermittent-tracker/init.sls index be2aa286e..77b45dd08 100644 --- a/intermittent-tracker/init.sls +++ b/intermittent-tracker/init.sls @@ -23,7 +23,6 @@ intermittent-tracker: - bin_env: /home/servo/intermittent-tracker/_venv - require: - virtualenv: intermittent-tracker - {% if grains.get('virtual_subtype', '') != 'Docker' %} service.running: - enable: True - name: tracker @@ -32,7 +31,6 @@ intermittent-tracker: - watch: - file: /home/servo/intermittent-tracker/config.json - file: /etc/init/tracker.conf - {% endif %} /home/servo/intermittent-tracker/config.json: file.managed: diff --git a/nginx/init.sls b/nginx/init.sls index 869908176..6edaeaa15 100644 --- a/nginx/init.sls +++ b/nginx/init.sls @@ -1,12 +1,10 @@ nginx: pkg.installed: [] - {% if grains.get('virtual_subtype', '') != 'Docker' %} service.running: - enable: True - watch: - pkg: nginx - file: /etc/nginx/sites-available/default - {% endif %} /etc/nginx/sites-available/default: file.managed: diff --git a/salt/master.sls b/salt/master.sls index 3152cb61a..4173b36ba 100644 --- a/salt/master.sls +++ b/salt/master.sls @@ -16,10 +16,8 @@ salt-master-dependencies: - user: root - group: root - mode: 755 - {% if grains.get('virtual_subtype', '') != 'Docker' %} - require_in: - service: salt-master - {% endif %} {{ rootfs_parent_dir }}/ADMIN_README: file.managed: @@ -27,10 +25,8 @@ salt-master-dependencies: - group: root - mode: 644 - source: salt://{{ tpldir }}/files/master/ADMIN_README - {% if grains.get('virtual_subtype', '') != 'Docker' %} - require_in: - service: salt-master - {% endif %} {% endfor %} salt-master: @@ -40,13 +36,11 @@ salt-master: - require: - sls: salt.common - pkg: salt-master-dependencies - {% if grains.get('virtual_subtype', '') != 'Docker' %} service.running: - enable: True - require: # Updates and upgrades must be handled manually - file: /etc/salt/master - pkg: salt-master - {% endif %} /etc/salt/master: file.managed: diff --git a/xvfb/init.sls b/xvfb/init.sls index 70f797b9f..30dca514f 100644 --- a/xvfb/init.sls +++ b/xvfb/init.sls @@ -7,10 +7,8 @@ xvfb: pkg.installed: [] - {% if grains.get('virtual_subtype', '') != 'Docker' %} service.running: - enable: True - watch: - pkg: xvfb - file: /etc/init/xvfb.conf - {% endif %}