67ce344e30
All roles that have a hyphen in them need to be renamed to use an underscore. This change creates a symlink to all roles using their original name which will ensure we maintain compatibility with the rest of the TripleO stack. This is being done because roles with hyphens are no longer valid within collections. A temp PBR update has been made to accomodate all of the symlinks to the legacy role names. [0] https://docs.ansible.com/ansible/devel/dev_guide/developing_collections.html#roles-directory Change-Id: Id00a3670351990e5489a297c4c7200f8c05af096 Signed-off-by: Kevin Carter <kecarter@redhat.com>
22 lines
730 B
Plaintext
22 lines
730 B
Plaintext
[Unit]
|
|
Description=TripleO Container Shutdown
|
|
Documentation=https://docs.openstack.org/tripleo-docs/
|
|
# Note: docker.service will be removed once CentOS8 / RHEL8 will be the default
|
|
# platform, but for now we keep it for Pacemaker testing.
|
|
# pacemaker.service is needed here, to make sure that all non-Pacemaker managed
|
|
# containers are stopped before Pacemaker.
|
|
After=pacemaker.service docker.service network-online.target iptables.service ip6tables.service
|
|
Before=shutdown.target
|
|
RefuseManualStop=yes
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStart=/bin/true
|
|
RemainAfterExit=yes
|
|
ExecStop=/usr/libexec/tripleo-container-shutdown
|
|
# Wait at most 900 seconds for all containers to shutdown
|
|
TimeoutStopSec=900
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|