Wolfgang Kulhanek
2018-09-05 811e58f1d5d96fffbfffa08f910a20a3d846a037
ansible/configs/rhte-oc-cluster-vms/files/oc-cluster.service.j2
@@ -4,7 +4,11 @@
Requires=docker.service
[Service]
{% if osrelease is version_compare("3.10", ">=") %}
ExecStart=/bin/oc cluster up --base-dir={{ ocp_root }} --public-hostname={{ hostname }} --routing-suffix=apps.{{ hostname }} --loglevel=1
{% else %}
ExecStart=/bin/oc cluster up --host-config-dir={{ ocp_root }}/config --host-data-dir={{ ocp_root }}/data --host-pv-dir={{ ocp_root }}/pv --host-volumes-dir={{ ocp_root }}/volumes --use-existing-config=true --public-hostname={{ hostname }} --routing-suffix=apps.{{ hostname }} --loglevel=1
{% endif %}
ExecStop=/bin/oc cluster down
WorkingDirectory={{ ocp_root }}
Restart=no