blob: 10e4f2c355c10b8204518af0a49c9d90be4f6ef8 [file] [log] [blame]
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
[Unit]
Description=Aurora Scheduler (Kerberos e2e test)
After=network.target
Wants=network.target
[Service]
# Environment variables control the behavior of the Mesos scheduler driver (libmesos).
Environment="GLOG_v=0"
Environment="LIBPROCESS_PORT=8083"
Environment="LIBPROCESS_IP=192.168.33.7"
Environment="MESOS_NATIVE_JAVA_LIBRARY=/usr/lib/libmesos.so"
Environment="DIST_DIR=/home/vagrant/aurora/dist"
# Identifier for rsyslog redirect (see `install_rsyslog_config` in `provision-dev-cluster.sh`).
SyslogIdentifier=aurora-scheduler
# Flags that control the behavior of the JVM.
Environment="JAVA_OPTS='-Djava.library.path=/usr/lib \
-Xdebug \
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 \
-Djava.security.krb5.conf=/home/vagrant/src/krb5-1.13.1/build/testdir/krb5.conf \
-Dsun.security.krb5.debug=true \
-Dsun.security.jgss.debug=true \
-Djavax.net.debug=all'"
WorkingDirectory=/home/vagrant/aurora/dist/install/aurora-scheduler
ExecStart=/home/vagrant/aurora/dist/install/aurora-scheduler/bin/aurora-scheduler \
-cluster_name=example \
-http_port=8081 \
-hostname=aurora.local \
-native_log_quorum_size=1 \
-zk_endpoints=localhost:2181 \
-mesos_master_address=zk://localhost:2181/mesos \
-serverset_path=/aurora/scheduler \
-native_log_zk_group_path=/aurora/replicated-log \
-native_log_file_path=/var/db/aurora \
-backup_dir=/var/lib/aurora/backups \
-thermos_executor_path=${DIST_DIR}/thermos_executor.pex \
-thermos_executor_flags="--announcer-ensemble localhost:2181" \
-allowed_container_types=MESOS,DOCKER \
-shiro_realm_modules=KERBEROS5_AUTHN,INI_AUTHNZ \
-shiro_ini_path=/home/vagrant/aurora/src/test/resources/org/apache/aurora/scheduler/http/api/security/shiro-example.ini \
-http_authentication_mechanism=NEGOTIATE \
-kerberos_server_keytab=/home/vagrant/krb5-1.13.1/build/testdir/HTTP-aurora.local.keytab \
-kerberos_server_principal=HTTP/aurora.local@KRBTEST.COM \
-tier_config=/home/vagrant/aurora/src/main/resources/org/apache/aurora/scheduler/tiers.json \
-offer_filter_duration=0secs
User=root
Group=root
Restart=always
RestartSec=20
LimitNOFILE=16384
[Install]
WantedBy=multi-user.target