| # 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. |
| # |
| description "aurora scheduler (kerberos e2e test)" |
| start on stopped rc RUNLEVEL=[2345] |
| respawn |
| post-stop exec sleep 5 |
| manual |
| |
| # Environment variables control the behavior of the Mesos scheduler driver (libmesos). |
| env GLOG_v=0 |
| env LIBPROCESS_PORT=8083 |
| env LIBPROCESS_IP=192.168.33.7 |
| env DIST_DIR=/home/vagrant/aurora/dist |
| |
| # Flags that control the behavior of the JVM. |
| env 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 |
| ' |
| |
| chdir /home/vagrant/aurora/dist/install/aurora-scheduler |
| exec 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 \ |
| -enable_h2_console=true \ |
| -tier_config=/home/vagrant/aurora/src/main/resources/org/apache/aurora/scheduler/tiers.json |