mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-09 10:42:54 +01:00
added warning about installing and ensure can only install workstation on centos
This commit is contained in:
@@ -14,13 +14,14 @@
|
|||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
{# we only want the script to install the workstation if it is CentOS #}
|
|
||||||
|
doc_workstation_url="https://docs.securityonion.net/en/2.3/analyst-vm.html"
|
||||||
|
{# we only want the script to install the workstation if it is CentOS -#}
|
||||||
{% if grains.os == 'CentOS' -%}
|
{% if grains.os == 'CentOS' -%}
|
||||||
{# if this is a manager -#}
|
{# if this is a manager -#}
|
||||||
{% if grains.master == grains.id.split('_')|first -%}
|
{% if grains.master == grains.id.split('_')|first -%}
|
||||||
|
|
||||||
source /usr/sbin/so-common
|
source /usr/sbin/so-common
|
||||||
doc_workstation_url="https://docs.securityonion.net/en/2.3/analyst-vm.html"
|
|
||||||
pillar_file="/opt/so/saltstack/local/pillar/minions/{{grains.id}}.sls"
|
pillar_file="/opt/so/saltstack/local/pillar/minions/{{grains.id}}.sls"
|
||||||
|
|
||||||
if [ -f "$pillar_file" ]; then
|
if [ -f "$pillar_file" ]; then
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
{# we only want this state to run it is CentOS #}
|
||||||
|
{% if grains.os == 'CentOS' %}
|
||||||
|
|
||||||
xwindows_group:
|
xwindows_group:
|
||||||
pkg.group_installed:
|
pkg.group_installed:
|
||||||
- name: X Window System
|
- name: X Window System
|
||||||
@@ -45,3 +48,11 @@ workstation_packages:
|
|||||||
- perl-Net-DNS
|
- perl-Net-DNS
|
||||||
- securityonion-chaosreader
|
- securityonion-chaosreader
|
||||||
- securityonion-analyst-extras
|
- securityonion-analyst-extras
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
|
||||||
|
workstation_packages_os_fail:
|
||||||
|
test.fail_without_changes:
|
||||||
|
- comment: 'SO Analyst Workstation can only be installed on CentOS'
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
|
|||||||
@@ -1,5 +1,15 @@
|
|||||||
|
{# we only want this state to run it is CentOS #}
|
||||||
|
{% if grains.os == 'CentOS' %}
|
||||||
|
|
||||||
remove_graphical_target:
|
remove_graphical_target:
|
||||||
file.symlink:
|
file.symlink:
|
||||||
- name: /etc/systemd/system/default.target
|
- name: /etc/systemd/system/default.target
|
||||||
- target: /lib/systemd/system/multi-user.target
|
- target: /lib/systemd/system/multi-user.target
|
||||||
- force: True
|
- force: True
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
workstation_trusted-ca_os_fail:
|
||||||
|
test.fail_without_changes:
|
||||||
|
- comment: 'SO Analyst Workstation can only be installed on CentOS'
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
|
|||||||
@@ -1,4 +1,7 @@
|
|||||||
|
|
||||||
|
{# we only want this state to run it is CentOS #}
|
||||||
|
{% if grains.os == 'CentOS' %}
|
||||||
|
|
||||||
{% set global_ca_text = [] %}
|
{% set global_ca_text = [] %}
|
||||||
{% set global_ca_server = [] %}
|
{% set global_ca_server = [] %}
|
||||||
{% set manager = salt['grains.get']('master') %}
|
{% set manager = salt['grains.get']('master') %}
|
||||||
@@ -22,3 +25,11 @@ update_ca_certs:
|
|||||||
- name: update-ca-trust
|
- name: update-ca-trust
|
||||||
- onchanges:
|
- onchanges:
|
||||||
- x509: trusted_ca
|
- x509: trusted_ca
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
|
||||||
|
workstation_trusted-ca_os_fail:
|
||||||
|
test.fail_without_changes:
|
||||||
|
- comment: 'SO Analyst Workstation can only be installed on CentOS'
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
|
||||||
|
{# we only want this state to run it is CentOS #}
|
||||||
|
{% if grains.os == 'CentOS' %}
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- workstation.packages
|
- workstation.packages
|
||||||
|
|
||||||
@@ -9,3 +13,11 @@ graphical_target:
|
|||||||
- require:
|
- require:
|
||||||
- pkg: X Window System
|
- pkg: X Window System
|
||||||
- pkg: graphical_extras
|
- pkg: graphical_extras
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
|
||||||
|
workstation_xwindows_os_fail:
|
||||||
|
test.fail_without_changes:
|
||||||
|
- comment: 'SO Analyst Workstation can only be installed on CentOS'
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user