debian: add support

This patch adds support for this role to be able to deploy on
Debian Stretch.

Change-Id: I4ee130917373c643ae80bab7a778cc6f35868dc8
Needed-By: I135ea73604890eae5e9e2a7cdcab81b2b39ad426
This commit is contained in:
Mohammed Naser 2019-04-06 22:59:56 -04:00
parent ccf2ea7208
commit d6adeb8039
1 changed files with 27 additions and 0 deletions

27
vars/debian.yml Normal file
View File

@ -0,0 +1,27 @@
---
# Copyright 2019, VEXXHOST, 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.
lxc_container_map:
distro: debian
arch: "{{ lxc_architecture_mapping.get( hostvars[physical_host]['ansible_architecture'] | lower ) }}"
release: "{{ hostvars[physical_host]['ansible_distribution_major_version'] }}"
lxc_container_default_config_list:
- "lxc.start.auto=1"
- "lxc.start.delay=15"
- "lxc.group=onboot"
- "lxc.group=openstack"
- "lxc.autodev=1"
- "lxc.hook.autodev=/var/lib/lxc/{{ inventory_hostname }}/autodev"