Commit 8f6889d7 authored by Łukasz Nowak's avatar Łukasz Nowak Committed by Łukasz Nowak

repo: Make script reusable

Thanks to using install.rc it is possible to easily select any playbook
to be used during the installation.
parent 0bade643
......@@ -27,6 +27,9 @@ Building
Compile ERP5 with erp5-standalone script.
Note: You can modify `install.rc` and use different playbook, than keep in mind
to use proper script or just a playbook in above step.
Go to ``~/rpmbuild/SPECS``.
Build all RPMs with:
......@@ -40,7 +43,12 @@ Usage - instruction to user installing with RPMs
Required machine is CentOS 7.4 with at least Netinstall.
Provide all RPMs with `` in one directory (eg. tarball).
Create tarball with:
* ``
* `install.rc`
* RPMs generated
* slapos.node RPM
Ask user to run `` as `root`.
\ No newline at end of file
source install.rc
echo -n "Started at " >> $LOG_FILE 2>&1
......@@ -31,7 +34,7 @@ echo "done."
echo -n "Instantiating ERP5 instance..."
for i in `seq 10` ; do
ansible-playbook /opt/slapos.playbook/erp5-standalone.yml >> $LOG_FILE 2>&1
ansible-playbook /opt/slapos.playbook/$PLAYBOOK >> $LOG_FILE 2>&1
if [ "$ANSIBLE_RESULT" == "0" ] ; then
Markdown is supported
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