Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3942451
init.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
init.sls
View Options
# -------------------------------------------------------------
# Salt — FreeBSD repository
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
{%
from
"roles/freebsd-repo/map.jinja"
import
repo
with context
%}
# -------------------------------------------------------------
# Create key directory
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{{
repo.signing_key_dir
}}
:
file.directory
:
-
makedirs
:
True
-
user
:
builder
# -------------------------------------------------------------
# Generate a public/private key pair
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
signing_key_generate_private
:
cmd.run
:
-
name
:
openssl genrsa -out repo.key 4096
-
cwd
:
{{
repo.signing_key_dir
}}
-
creates
:
{{
repo.signing_key_dir
}}
/repo.key
-
runas
:
builder
signing_key_generate_public
:
cmd.run
:
-
name
:
openssl rsa -in repo.key -out repo.pub -pubout
-
cwd
:
{{
repo.signing_key_dir
}}
-
creates
:
{{
repo.signing_key_dir
}}
/repo.pub
-
runas
:
builder
{{
repo.signing_key_dir
}}
/repo.key
:
file.managed
:
-
replace
:
False
-
mode
:
400
-
user
:
builder
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 26, 16:26 (7 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2315197
Default Alt Text
init.sls (1 KB)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment