mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
update states using module.run - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/106
This commit is contained in:
@@ -39,10 +39,10 @@ pki_private_key:
|
||||
- require:
|
||||
- file: /etc/pki
|
||||
|
||||
mine.send:
|
||||
send_x509_pem_entries_to_mine:
|
||||
module.run:
|
||||
- mine.send:
|
||||
- func: x509.get_pem_entries
|
||||
- kwargs:
|
||||
glob_path: /etc/pki/ca.crt
|
||||
- glob_path: /etc/pki/ca.crt
|
||||
- onchanges:
|
||||
- x509: /etc/pki/ca.crt
|
||||
|
||||
@@ -64,13 +64,13 @@ remove_patch_os_schedule:
|
||||
|
||||
{% else %}
|
||||
|
||||
no_os_patch_schedule_name_set:
|
||||
no_patch_os_schedule_name_set:
|
||||
test.fail_without_changes:
|
||||
- name: "Set a pillar value for patch:os:schedule_name in this minion's .sls file. If an OS patch schedule is not listed as enabled in show_schedule output below, then OS patches will need to be applied manually until this is corrected."
|
||||
|
||||
show_schedule:
|
||||
show_patch_os_schedule:
|
||||
module.run:
|
||||
- name: schedule.is_enabled
|
||||
- m_name: patch_os_schedule
|
||||
- schedule.is_enabled:
|
||||
- name: patch_os_schedule
|
||||
|
||||
{% endif %}
|
||||
|
||||
@@ -11,7 +11,7 @@ playbookdb:
|
||||
|
||||
playbookwebhook:
|
||||
module.run:
|
||||
- name: sqlite3.modify
|
||||
- sqlite3.modify:
|
||||
- db: /opt/so/conf/playbook/redmine.db
|
||||
- sql: "update webhooks set url = 'http://{{MASTERIP}}:7000/playbook/webhook' where project_id = 1"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user