Skip to content

Instantly share code, notes, and snippets.

@mmlb
Last active January 2, 2016 21:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mmlb/8362219 to your computer and use it in GitHub Desktop.
Save mmlb/8362219 to your computer and use it in GitHub Desktop.
gpsd sls
gpsd:
pkg:
- installed
- sources:
- gpsd: salt://gpsd/gpsd.deb
- gpsd-clients: salt://gpsd/gpsd-clients.deb
- libgps20: salt://gpsd/libgps20.deb
- libgps-dev: salt://gpsd/libgps-dev.deb
- python-gps: salt://gpsd/python-gps.deb
file.managed:
- name: /etc/default/gpsd
- source: salt://gpsd/conf
- template: jinja
- defaults:
devices: '/dev/ttyS1'
- user: root
- group: root
- mode: 644
- require:
- pkg: chrony
service.running:
- enable: True
- watch:
- file.managed: /etc/default/gpsd
- require:
- pkg: gpsd
pkg.set_selections:
module.wait:
- watch:
- pkg: gpsd
- selection:
hold:
- gpsd
- gpsd-clients
- libgps20
- libgps-dev
- python-gps
@dlanderson
Copy link

hold_gpsd:
  module.wait:
    - name: pkg.set_selections
    - watch:
      - pkg: gpsd
    - selection:
        hold:
          - gpsd
          - gpsd-clients
          - libgps20
          - libgps-dev
          - python-gps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment