Skip to content

Commit

Permalink
Fixed cmd.wait
Browse files Browse the repository at this point in the history
  • Loading branch information
lqb committed May 1, 2021
1 parent 68a6cf3 commit 01509fb
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 11 deletions.
3 changes: 1 addition & 2 deletions bird2/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ bird:
- running: True

bird2_configure:
cmd.wait:
cmd.run:
- name: /usr/sbin/birdc configure
- watch: []

/etc/bird:
file.directory:
Expand Down
3 changes: 1 addition & 2 deletions certs/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ ssl-cert:
pkg.installed

update_ca_certificates:
cmd.wait:
cmd.run:
- name: /usr/sbin/update-ca-certificates
- watch: []

generate-dhparam:
cmd.run:
Expand Down
3 changes: 1 addition & 2 deletions dns-server/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,5 @@ dns_pkgs:

# Reload command
rndc-reload:
cmd.wait:
- watch: []
cmd.run:
- name: /usr/sbin/rndc reload
6 changes: 2 additions & 4 deletions locales/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,11 @@ locales:
- pkg: locales

locale-gen:
cmd.wait:
- watch:
cmd.run:
- onchanges:
- file: /etc/locale.gen

en_US.UTF-8:
locale.system:
- require:
- file: /etc/locale.gen


2 changes: 1 addition & 1 deletion nginx/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ nginx:

# Test configuration before reload
nginx-configtest:
cmd.wait:
cmd.run:
- name: /usr/sbin/nginx -t

# Disable default configuration
Expand Down

0 comments on commit 01509fb

Please sign in to comment.