Refactor logic for running in containers 25/57525/1
authorDaniel Farrell <dfarrell@redhat.com>
Mon, 28 Mar 2016 21:39:56 +0000 (17:39 -0400)
committerDaniel Farrell <dfarrell@redhat.com>
Fri, 19 May 2017 16:52:25 +0000 (12:52 -0400)
commit6def0ff65c46a52c9f19816bd732ce870f8229fa
treea584fb44a30650420042c9ae556107121c91d567
parent61b56079748db14773c632609cea0c5b8fa04061
Refactor logic for running in containers

New CentOS containers (7.2.1511 and not 7.1.1503) ship full systemd,
instead of using fakesystemd or not including it. It doesn't work
without modifying the Dockerfile and/or passing special params to the
`docker run` command, and it's generally not recommended for use in
containers, so we don't want to use it when provisioning a container.

The old checks were seeing systemd and (rightly so, it's installed) and
attempting to use it in containers. The new one directly checks if
running in a container instead of inferring from presence or absence of
systemd.

Change-Id: I9ee7c86c947396a3452a1c0b54d576bb9d512b47
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
handlers/restart_odl.yml
handlers/start_odl.yml
handlers/stop_odl.yml
tasks/in_container.yml [new file with mode: 0644]
tasks/is_systemd_installed.yml [deleted file]
tasks/open_nb_rest_port.yml
tasks/start_odl.yml