blob: a1cdf53df17a042beb37b7966e5705b7ee4a6b2d [file] [log] [blame]
Mohammed Naser545bc432023-04-16 23:02:23 +00001# Copyright (c) 2023 VEXXHOST, Inc.
2#
3# Licensed under the Apache License, Version 2.0 (the "License"); you may
4# not use this file except in compliance with the License. You may obtain
5# a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12# License for the specific language governing permissions and limitations
13# under the License.
14
15dependency:
16 name: galaxy
17driver:
18 name: docker
19platforms:
20 - name: instance
21 image: geerlingguy/docker-${MOLECULE_DISTRO:-ubuntu2004}-ansible:latest
22 command: ${MOLECULE_DOCKER_COMMAND:-""}
23 privileged: true
24 cgroupns_mode: host
25 pre_build_image: true
26 etc_hosts:
27 k8s: 172.17.0.100
28 environment:
29 container: docker
30 security_opts:
31 - apparmor=unconfined
32 volumes:
33 - /dev:/dev
34 - /lib/modules:/lib/modules:ro
35 - /sys/fs/cgroup:/sys/fs/cgroup:rw
36 - /usr/src:/usr/src:ro
37 groups:
38 - controllers
39 - cephs
40provisioner:
41 name: ansible
42 config_options:
43 connection:
44 pipelining: true
45 tags:
46 skip: sysctl,ethtool
47 inventory:
48 group_vars:
49 all:
50 ceph_fsid: ${MOLECULE_CEPH_FSID:-"1dff0e0f-3c44-48da-81cd-4f3c6e8722b2"}
51 ceph_conf_overrides:
52 - section: global
53 option: osd crush chooseleaf type
54 value: 0
55 - section: mon
56 option: auth allow insecure global id reclaim
57 value: false
58 cilium_helm_values:
59 operator:
60 replicas: 1
61 csi_driver: ${MOLECULE_CSI_DRIVER:-"rbd"}
62 ceph_csi_rbd_helm_values:
63 provisioner:
64 replicaCount: 1
65 controllers:
66 kubernetes_keepalived_interface: "{{ ansible_default_ipv4.interface }}"
67 kubernetes_keepalived_vip: 172.17.0.100
68 kubernetes_keepalived_vrid: 42
69 kubernetes_hostname: k8s
70 cephs:
71 ceph_osd_devices:
72 - "/dev/ceph-{{ inventory_hostname_short }}-osd0/data"
73 - "/dev/ceph-{{ inventory_hostname_short }}-osd1/data"
74 - "/dev/ceph-{{ inventory_hostname_short }}-osd2/data"
75verifier:
76 name: ansible