Commit d53f0b0d authored by Jonathan Passerat-Palmbach's avatar Jonathan Passerat-Palmbach
Browse files

add: Keypair generation script. Ignore generated files and call script in preinstallation

parent 99441a8a
......@@ -2,3 +2,4 @@ metadata.json
.project
metadata.json
setup.out
files/
#!/bin/bash
mkdir -p files/etc/ssl/{certs,private}
openssl genrsa -out files/etc/ssl/private/xnat.key 1024
openssl req -new -key files/etc/ssl/private/xnat.key -out /tmp/xnat.csr
openssl x509 -req -days 3650 -in /tmp/xnat.csr -signkey files/etc/ssl/private/xnat.key -out files/etc/ssl/certs/xnat.crt
rm /tmp/xnat.csr
#!/bin/sh
cd /etc/puppet/modules/
#gem install puppet-module
#mv xnat/install_dependencies.sh .
sh generate_keypair.sh
sh xnat/install_dependencies.sh
#mkdir -p /usr/lib/jvm/
#cp xnat/.jdk1.7.0_60.jinfo /usr/lib/jvm/
#export JAVA_HOME=/usr/lib/jvm/jdk1.7.0_60
puppet apply xnat/tests/test.pp &> /puppet.out
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment