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:
|
- require:
|
||||||
- file: /etc/pki
|
- file: /etc/pki
|
||||||
|
|
||||||
mine.send:
|
send_x509_pem_entries_to_mine:
|
||||||
module.run:
|
module.run:
|
||||||
- func: x509.get_pem_entries
|
- mine.send:
|
||||||
- kwargs:
|
- func: x509.get_pem_entries
|
||||||
glob_path: /etc/pki/ca.crt
|
- glob_path: /etc/pki/ca.crt
|
||||||
- onchanges:
|
- onchanges:
|
||||||
- x509: /etc/pki/ca.crt
|
- x509: /etc/pki/ca.crt
|
||||||
|
|||||||
@@ -64,13 +64,13 @@ remove_patch_os_schedule:
|
|||||||
|
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
||||||
no_os_patch_schedule_name_set:
|
no_patch_os_schedule_name_set:
|
||||||
test.fail_without_changes:
|
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."
|
- 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:
|
module.run:
|
||||||
- name: schedule.is_enabled
|
- schedule.is_enabled:
|
||||||
- m_name: patch_os_schedule
|
- name: patch_os_schedule
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
@@ -11,9 +11,9 @@ playbookdb:
|
|||||||
|
|
||||||
playbookwebhook:
|
playbookwebhook:
|
||||||
module.run:
|
module.run:
|
||||||
- name: sqlite3.modify
|
- sqlite3.modify:
|
||||||
- db: /opt/so/conf/playbook/redmine.db
|
- db: /opt/so/conf/playbook/redmine.db
|
||||||
- sql: "update webhooks set url = 'http://{{MASTERIP}}:7000/playbook/webhook' where project_id = 1"
|
- sql: "update webhooks set url = 'http://{{MASTERIP}}:7000/playbook/webhook' where project_id = 1"
|
||||||
|
|
||||||
navigatorconfig:
|
navigatorconfig:
|
||||||
file.managed:
|
file.managed:
|
||||||
|
|||||||
Reference in New Issue
Block a user