| | |
| | | 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 |