Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3942555
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/roles/shellserver/userland-software/openssl-legacy.sls b/roles/shellserver/userland-software/openssl-legacy.sls
new file mode 100644
index 0000000..5a79401
--- /dev/null
+++ b/roles/shellserver/userland-software/openssl-legacy.sls
@@ -0,0 +1,53 @@
+# -------------------------------------------------------------
+# Salt — Deploy legacy OpenSSL 1.0
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Eglide
+# Created: 2017-02-25
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+# -------------------------------------------------------------
+# Source code
+# -------------------------------------------------------------
+
+openssl_src:
+ file.directory:
+ - name: /usr/local/src/openssl-legacy
+ - user: builder
+ - group: deployment
+ - dir_mode: 755
+ cmd.run:
+ - name: curl ftp://openssl.org/source/openssl-1.0.2k.tar.gz | tar xz --strip-components=1
+ - cwd: /usr/local/src/openssl-legacy
+ - runas: builder
+ - require:
+ - file: openssl_src
+ - unless: test -f /usr/local/src/openssl-legacy/Makefile
+
+# -------------------------------------------------------------
+# Build
+# -------------------------------------------------------------
+
+openssl_build:
+ cmd.run:
+ - name: |
+ ./config --prefix=/opt/openssl-legacy --openssldir=/etc/ssl-legacy shared zlib-dynamic
+ make depend
+ make
+ - cwd: /usr/local/src/openssl-legacy
+ - runas: builder
+ - require:
+ - file: openssl_src
+ - unless: test -f /usr/local/src/openssl-legacy/libcrypto.so
+
+# -------------------------------------------------------------
+# Install
+# -------------------------------------------------------------
+
+openssl_install:
+ cmd.run:
+ - name: make MANDIR=/opt/openssl-legacy/man MANSUFFIX=ssl install
+ - cwd: /usr/local/src/openssl-legacy
+ - require:
+ - cmd: openssl_build
+ - unless: test -f /opt/openssl-legacy/bin/openssl
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Thu, Dec 26, 16:29 (1 d, 9 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2315260
Default Alt Text
(2 KB)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment