Skip to content

Instantly share code, notes, and snippets.

@sjmh
Created October 8, 2015 04:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sjmh/e17282f097b0cb6dd8fc to your computer and use it in GitHub Desktop.
Save sjmh/e17282f097b0cb6dd8fc to your computer and use it in GitHub Desktop.
sks_build:
cmd.run:
- name: /usr/sbin/sks build {{ sks.datadir }}/dump/*.pgp -n 2 -cache 50
- creates: {{ sks.datadir }}/DB/key
- user: {{ sks.user }}
- require:
- pkg: sks
sks_build_done:
file.exists:
- name: {{ sks.datadir }}/DB/key
sks_cleanup:
cmd.run:
- name: /usr/sbin/sks cleandb
- user: {{ sks.user }}
- require:
- cmd: sks_build
- file: sks_build_done
- pkg: sks
sks_pbuild:
cmd.run:
- name: /usr/sbin/sks pbuild -cache 20 -ptree_cache 70
- creates: {{ sks.datadir }}/PTree/ptree
- user: {{ sks.user }}
- require:
- cmd: sks_cleanup
- pkg: sks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment