Ubuntu: Use dnsmasq-base, not dnsmasq
In Ubuntu the 'dnsmasq' package actually includes init scripts and service configuration which conflict with LXC and are best not included. The actual dependent package is 'dnsmasq-base'. With this change, the cleanup is no longer required because the files are removed by the purge or not installed in the first place. Closes-Bug: #1711140 Change-Id: I0b0a8dec3943651f379479ea1a3b8038736b9219
This commit is contained in:
parent
de1b45553e
commit
d5bef82dfe
@ -0,0 +1,10 @@
|
|||||||
|
---
|
||||||
|
fixes:
|
||||||
|
- |
|
||||||
|
In Ubuntu the ``dnsmasq`` package actually includes
|
||||||
|
init scripts and service configuration which
|
||||||
|
conflict with LXC and are best not included. The
|
||||||
|
actual dependent package is ``dnsmasq-base``. The
|
||||||
|
package list has been adjusted and a task added
|
||||||
|
to remove the ``dnsmasq`` package and purge the
|
||||||
|
related configuration files from all LXC hosts.
|
@ -1,28 +0,0 @@
|
|||||||
---
|
|
||||||
# Copyright 2014, Rackspace US, Inc.
|
|
||||||
#
|
|
||||||
# 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.
|
|
||||||
|
|
||||||
- name: Ensure dnsmasq stopped
|
|
||||||
service:
|
|
||||||
name: "dnsmasq"
|
|
||||||
state: "stopped"
|
|
||||||
enabled: "no"
|
|
||||||
|
|
||||||
- name: Remove dnsmasq file(s)
|
|
||||||
file:
|
|
||||||
path: "{{ item }}"
|
|
||||||
state: "absent"
|
|
||||||
with_items:
|
|
||||||
- /var/run/dnsmasq/resolv.conf
|
|
||||||
- /etc/dnsmasq.conf
|
|
@ -13,6 +13,14 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
|
- name: Remove conflicting packages
|
||||||
|
apt:
|
||||||
|
pkg: "{{ lxc_hosts_remove_distro_packages }}"
|
||||||
|
state: absent
|
||||||
|
purge: yes
|
||||||
|
tags:
|
||||||
|
- lxc-apt-packages
|
||||||
|
|
||||||
- name: Install apt packages
|
- name: Install apt packages
|
||||||
apt:
|
apt:
|
||||||
pkg: "{{ lxc_hosts_distro_packages }}"
|
pkg: "{{ lxc_hosts_distro_packages }}"
|
||||||
|
@ -66,10 +66,6 @@
|
|||||||
tags:
|
tags:
|
||||||
- lxc_hosts-config
|
- lxc_hosts-config
|
||||||
|
|
||||||
- include: lxc_dnsmasq_cleanup.yml
|
|
||||||
tags:
|
|
||||||
- lxc_hosts-config
|
|
||||||
|
|
||||||
- include: lxc_cache.yml
|
- include: lxc_cache.yml
|
||||||
tags:
|
tags:
|
||||||
- lxc_hosts-install
|
- lxc_hosts-install
|
||||||
|
@ -27,7 +27,7 @@ lxc_hosts_distro_packages:
|
|||||||
- cgroup-lite
|
- cgroup-lite
|
||||||
- dbus
|
- dbus
|
||||||
- debootstrap
|
- debootstrap
|
||||||
- dnsmasq
|
- dnsmasq-base
|
||||||
- git
|
- git
|
||||||
- iptables
|
- iptables
|
||||||
- irqbalance
|
- irqbalance
|
||||||
@ -41,6 +41,10 @@ lxc_hosts_distro_packages:
|
|||||||
- systemd-container
|
- systemd-container
|
||||||
- pxz
|
- pxz
|
||||||
|
|
||||||
|
# Package to remove from the host
|
||||||
|
lxc_hosts_remove_distro_packages:
|
||||||
|
- dnsmasq
|
||||||
|
|
||||||
lxc_xz_bin: pxz
|
lxc_xz_bin: pxz
|
||||||
|
|
||||||
system_config_dir: "/etc/default"
|
system_config_dir: "/etc/default"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user