Skip to content

Instantly share code, notes, and snippets.

@UtahCampusD
Created December 8, 2016 17:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save UtahCampusD/98c011df64ad06830633d19ab5528d71 to your computer and use it in GitHub Desktop.
Save UtahCampusD/98c011df64ad06830633d19ab5528d71 to your computer and use it in GitHub Desktop.
[atiliomedina as root@hllibisphtrac:~ ]$ salt-call state.show_top
local:
----------
base:
- campusd.basis_states
- campusd.schedules
- campusd.users
- campusd.groups
- campusd.security
- campusd.core
- campusd.stats
[atiliomedina as root@hllibisphtrac:~ ]$
[atiliomedina as root@hllibisphtrac:~ ]$ salt-call state.show_sls campusd.security.symantec
local:
----------
install-symantec:
----------
__env__:
base
__sls__:
campusd.security.symantec.symantec
cmd:
|_
----------
name:
/usr/local/scripts/install_symantec.sh
|_
----------
cwd:
/
|_
----------
env:
|_
----------
PATH:
/bin:/usr/bin:/sbin:/usr/sbin
|_
----------
require:
|_
----------
file:
symantec-files
|_
----------
file:
symantec-install-file
|_
----------
file:
updatesysmcdefs-file
|_
----------
file:
symantecexclusions-file
|_
----------
creates:
/usr/local/downloads/symantec/symantec.done
|_
----------
order:
7
- run
symantec-cron:
----------
__env__:
base
__sls__:
campusd.security.symantec.symantec
cron:
|_
----------
name:
/usr/local/scripts/updatesysmcdefs.sh > /dev/null 2>&1
|_
----------
user:
root
|_
----------
hour:
21
|_
----------
comment:
Symantec-Defs-Update
|_
----------
order:
10
- present
symantec-download-dir:
----------
__env__:
base
__sls__:
campusd.security.symantec.symantec
file:
|_
----------
name:
/usr/local/downloads/symantec
|_
----------
user:
root
|_
----------
group:
root
|_
----------
mode:
775
|_
----------
makedirs:
True
|_
----------
order:
2
- directory
symantec-files:
----------
__env__:
base
__sls__:
campusd.security.symantec.symantec
file:
|_
----------
name:
/usr/local/downloads/symantec
|_
----------
user:
root
|_
----------
group:
root
|_
----------
dir_mode:
2775
|_
----------
file_mode:
755
|_
----------
source:
salt://campusd/security/symantec/files
|_
----------
makedirs:
True
|_
----------
order:
3
|_
----------
require:
|_
----------
file:
symantec-download-dir
- recurse
symantec-install-file:
----------
__env__:
base
__sls__:
campusd.security.symantec.symantec
file:
|_
----------
name:
/usr/local/scripts/install_symantec.sh
|_
----------
user:
root
|_
----------
group:
root
|_
----------
mode:
755
|_
----------
source:
salt://campusd/security/symantec/files/maj_rel_7/install_symantec.sh
|_
----------
order:
4
- managed
symantec-required-packages:
----------
__env__:
base
__sls__:
campusd.security.symantec.symantec
pkg:
|_
----------
pkgs:
- sharutils
- ncompress
|_
----------
order:
1
- installed
symantecexclusions:
----------
__env__:
base
__sls__:
campusd.security.symantec.symantec
cmd:
|_
----------
name:
/usr/local/scripts/symantecexclusions.sh
|_
----------
cwd:
/
|_
----------
env:
|_
----------
PATH:
/bin:/usr/bin:/sbin:/usr/sbin
|_
----------
require:
|_
----------
cmd:
install-symantec
|_
----------
order:
9
- run
symantecexclusions-file:
----------
__env__:
base
__sls__:
campusd.security.symantec.symantec
file:
|_
----------
name:
/usr/local/scripts/symantecexclusions.sh
|_
----------
user:
root
|_
----------
group:
root
|_
----------
mode:
755
|_
----------
source:
salt://campusd/security/symantec/files/symantecexclusions.sh
|_
----------
order:
6
- managed
updatesysmcdefs:
----------
__env__:
base
__sls__:
campusd.security.symantec.symantec
cmd:
|_
----------
name:
/usr/local/scripts/updatesysmcdefs.sh
|_
----------
cwd:
/
|_
----------
env:
|_
----------
PATH:
/bin:/usr/bin:/sbin:/usr/sbin
|_
----------
require:
|_
----------
cmd:
install-symantec
|_
----------
order:
8
- run
updatesysmcdefs-file:
----------
__env__:
base
__sls__:
campusd.security.symantec.symantec
file:
|_
----------
name:
/usr/local/scripts/updatesysmcdefs.sh
|_
----------
user:
root
|_
----------
group:
root
|_
----------
mode:
755
|_
----------
source:
salt://campusd/security/symantec/files/updatesysmcdefs.sh
|_
----------
order:
5
- managed
[atiliomedina as root@hllibisphtrac:~ ]$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment