Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F56323844
starship.sls
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
starship.sls
View Options
# -------------------------------------------------------------
# Salt — Provision software needed by other core roles
# to deploy on all servers
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
{%
from
"map.jinja"
import
dirs
,
packages
with context
%}
# -------------------------------------------------------------
# Starship installation
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{%
if
grains
[
'os'
]
==
'FreeBSD'
%}
starship
:
pkg.installed
{%
endif
%}
{%
if
grains
[
'kernel'
]
==
'Linux'
and
grains
[
'osarch'
]
==
'x86_64'
%}
install_starship
:
cmd.run
:
-
name
:
snap install starship
-
creates
:
/var/lib/snapd/snap/bin/starship
{%
endif
%}
# -------------------------------------------------------------
# SELinux
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{%
if
grains
[
'os_family'
]
==
'RedHat'
%}
/usr/local/share/selinux/systemd-hostnamed.te
:
file.managed
:
-
source
:
salt://roles/core/userland-software/files/selinux/systemd-hostnamed.te
-
makedirs
:
True
/usr/local/share/selinux/systemd-hostnamed.pp
:
cmd.run
:
-
name
:
make -f /usr/share/selinux/devel/Makefile systemd-hostnamed.pp
-
creates
:
/usr/local/share/selinux/systemd-hostnamed.pp
-
cwd
:
/usr/local/share/selinux
install_selinux_starship_module
:
cmd.run
:
-
name
:
semodule -i systemd-hostnamed.pp
-
cwd
:
/usr/local/share/selinux
-
onchanges
:
-
cmd
:
/usr/local/share/selinux/systemd-hostnamed.pp
{%
endif
%}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 7, 01:13 (1 d, 4 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3904122
Default Alt Text
starship.sls (1 KB)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment