forked from neo4j-contrib/neo4j-puppet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
go
executable file
·33 lines (27 loc) · 925 Bytes
/
go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
die(){
echo $1
exit 1
}
uid=`id -u`
[ $uid -eq 0 ] || die "Usage: sudo $0"
[ "${1}" == "true" ] && oracle=true || oracle=false
username=$2
password=$3
apt-get update -qq
apt-get install unzip puppet -y
(
cd /var/tmp
wget -q -O neo4j-puppet.zip https://github.com/neo4j-contrib/neo4j-puppet/archive/master.zip
unzip -q -o neo4j-puppet.zip
mv -f neo4j-puppet-master neo4j
if [ "${oracle}" == true ]; then
echo "********************************************************************************"
echo "***** By using this you agree to the terms of the Oracle License Agreement *****"
echo "********************************************************************************"
export I_ACCEPT_THE_ORACLE_LICENSE=true
fi
export NEO4J_USERNAME=$2
export NEO4J_PASSWORD=$3
puppet apply neo4j/tests/init.pp --modulepath . | tee /var/tmp/puppet.log
)