Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F28987061
ports.sls
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
ports.sls
View Options
# -------------------------------------------------------------
# Salt — Provision dev software
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# Created: 2020-01-18
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
{%
if
grains
[
'os'
]
==
'FreeBSD'
%}
{%
for
port
,
args
in
pillar.get
(
"ports"
,
{})
.items
()
%}
# -------------------------------------------------------------
# Provision port options
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
/var/db/ports/
{{
args
[
'category'
]
}}
_
{{
args
[
'name'
]
}}
/options
:
file.managed
:
-
source
:
salt://roles/devserver/userland-software/files/port_options
-
template
:
jinja
-
mode
:
644
-
context
:
args
:
{{
args
}}
# -------------------------------------------------------------
# Build and install package
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
port_
{{
port
}}
:
cmd.run
:
-
name
:
make build package deinstall reinstall
-
cwd
:
/usr/ports/
{{
args
[
'category'
]
}}
/
{{
args
[
'name'
]
}}
-
creates
:
{{
args
[
'creates'
]
}}
{%
endfor
%}
{%
endif
%}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, May 17, 19:20 (21 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3711279
Default Alt Text
ports.sls (1 KB)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment