forked from daschatten/cert-formula
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(update): integrate certificates on supported systems
The update of system wide certificate bundle is only supported on Debian family for now. The split of the update to a dedicated `.sls` file permits to only use `onchanges` requisite.
- Loading branch information
Showing
7 changed files
with
32 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ | |
include: | ||
- .package | ||
- .deployed | ||
|
||
- .updated |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,5 +17,6 @@ values: | |
cert_mode: 644 | ||
key_mode: 600 | ||
remove: false | ||
certs_update_cmd: "" | ||
certlist: {} | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# -*- mode: salt; coding: utf-8 -*- | ||
# vim: ft=sls | ||
|
||
include: | ||
- .system |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# -*- mode: salt; coding: utf-8 -*- | ||
# vim: ft=sls | ||
|
||
{#- Get the `tplroot` from `tpldir` #} | ||
{%- set tplroot = tpldir.split('/')[0] %} | ||
{%- set sls_deployed_files = tplroot ~ '.deployed.files' %} | ||
{%- from tplroot ~ "/map.jinja" import mapdata without context %} | ||
include: | ||
- {{ sls_deployed_files }} | ||
{%- if mapdata.certs_update_cmd %} | ||
cert-updated-system-cmd.run: | ||
cmd.run: | ||
- name: {{ mapdata.certs_update_cmd }} | ||
- runas: root | ||
- onchanges: | ||
- sls: {{ sls_deployed_files }} | ||
{%- endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters