Skip to content

Instantly share code, notes, and snippets.

@mkeen
Created March 31, 2020 19:04
Show Gist options
  • Save mkeen/686fe833f5ab2a1a584418898f3a1ef1 to your computer and use it in GitHub Desktop.
Save mkeen/686fe833f5ab2a1a584418898f3a1ef1 to your computer and use it in GitHub Desktop.
extend:
/usr/local/etc/filebeat.yml:
file.managed:
- context:
specific_log_files:
- /var/log/couchdb2/couch.log
/usr/local/etc/salt/minion.d/mine.conf:
file.managed:
- source: salt:///files/salt/mine.couchdb.jinja.conf
couchdb2:
pkg.installed: []
service.running:
- enable: True
- require:
- cmd: storage_bootstrap
- watch:
- file: /usr/local/etc/couchdb2/local.d/custom.ini
- file: /usr/local/etc/couchdb2/vm.args
- file: /usr/local/etc/rc.d/couchdb2
/usr/local/etc/couchdb2/local.d:
file.directory:
- user: couchdb
- group: couchdb
- require:
- pkg: couchdb2
/usr/local/etc/couchdb2/local.d/custom.ini:
file.managed:
- source: salt:///files/couchdb/local.jinja.ini
- template: jinja
- user: couchdb
- group: couchdb
- require:
- pkg: couchdb2
- file: /usr/local/etc/couchdb2/local.d
/usr/local/etc/couchdb2/vm.args:
file.managed:
- source: salt:///files/couchdb/vm.jinja.args
- template: jinja
- require:
- pkg: couchdb2
/usr/local/etc/rc.d/couchdb2:
file.managed:
- source: salt:///files/couchdb/rc.conf
- require:
- pkg: couchdb2
- file: /usr/local/etc/couchdb2/local.d/custom.ini
/mnt/storage:
file.directory:
- user: couchdb
- group: couchdb
- require:
- cmd: storage_bootstrap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment