# Copyright Red Hat, Inc. # All Rights Reserved. # # 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=HotsTac(k)os Keystone Identity Service Documentation=https://github.com/openstack-k8s-operators/hotstack After=hotstack-os-mariadb.service hotstack-os-memcached.service hotstack-os-dnsmasq.service hotstack-os-haproxy.service hotstack-os-infra-setup.service Wants=hotstack-os-mariadb.service hotstack-os-memcached.service hotstack-os-dnsmasq.service Requires=hotstack-os-infra-setup.service PartOf=hotstack-os.target StartLimitIntervalSec=120 StartLimitBurst=5 [Service] Type=simple Restart=on-failure RestartSec=10 TimeoutStartSec=300 TimeoutStopSec=30 SuccessExitStatus=143 ExecStartPre=-/usr/bin/podman stop -t 2 hotstack-os-keystone ExecStartPre=-/usr/bin/podman rm -f hotstack-os-keystone ExecStart=/usr/bin/podman run \ --pull=never \ --name hotstack-os-keystone \ --hostname keystone \ --network hotstack-os \ --ip 172.31.0.11 \ --env OSLO_LOCKUTILS_ENABLED=false \ --env KEYSTONE_DB_PASSWORD=openstack \ --env KEYSTONE_ADMIN_PASSWORD=admin \ --env SERVICE_PASSWORD=openstack \ --env REGION_NAME=RegionOne \ --volume /var/lib/hotstack-os/runtime/config/keystone/keystone.conf:/etc/keystone/keystone.conf:ro,z \ --volume /var/lib/hotstack-os/keystone/fernet-keys:/etc/keystone/fernet-keys:z \ --volume /var/lib/hotstack-os/keystone/credential-keys:/etc/keystone/credential-keys:z \ --volume /var/lib/hotstack-os/runtime/scripts/common.sh:/usr/local/lib/common.sh:ro,z \ localhost/hotstack-os-keystone:latest # Health check: CONTAINER INTERVAL TIMEOUT RETRIES START_PERIOD COMMAND ExecStartPost=-/usr/local/bin/hotstack-healthcheck.sh hotstack-os-keystone 5 5 5 15 /usr/local/bin/keystone-healthcheck.sh ExecStop=/usr/bin/podman stop -t 30 hotstack-os-keystone ExecStopPost=-/usr/bin/podman rm -f hotstack-os-keystone StandardOutput=journal StandardError=journal [Install] WantedBy=hotstack-os.target