Changeset - 6c4dab8571af
[Not reviewed]
0 4 0
Branko Majic (branko) - 21 months ago 2024-02-25 20:31:26
branko@majic.rs
MAR-192: Added support for Debian 12 Bookworm to preseed role.
4 files changed with 47 insertions and 0 deletions:
0 comments (0 inline, 0 general)
docs/rolereference.rst
Show inline comments
 
@@ -122,24 +122,25 @@ Parameters
 

	
 
**preseed_timezone** (string, optional, ``Europe/Stockholm``)
 
  Timezone that should be used when calculating server time. It is assumed that
 
  the local hardware clock is set to UTC.
 

	
 

	
 
Distribution compatibility
 
~~~~~~~~~~~~~~~~~~~~~~~~~~
 

	
 
Role is compatible with the following distributions:
 

	
 
- Debian 11 (Bullseye)
 
- Debian 12 (Bookworm)
 

	
 

	
 
Examples
 
~~~~~~~~
 

	
 
Here is an example configuration for a preseed file that sets some global
 
defaults to be used for all servers, and then overrides it for one server:
 

	
 
.. code-block:: yaml
 

	
 
  ---
 

	
roles/preseed/meta/main.yml
Show inline comments
 
---
 

	
 
galaxy_info:
 
  author: Branko Majic
 
  description: Generates preseed files for Debian
 
  license: BSD
 
  min_ansible_version: 2.9
 
  platforms:
 
    - name: Debian
 
      versions:
 
        - 11
 
        - 12
roles/preseed/molecule/default/group_vars/parameters-optional-with-overrides.yml
Show inline comments
 
@@ -12,12 +12,30 @@ preseed_server_overrides:
 
    ip: 3.3.3.3
 
    keymap: sv
 
    language: sr
 
    locale: en_UK.UTF-8
 
    mirror_directory: /
 
    mirror_hostname: ftp.de.debian.org
 
    mirror_proxy: http://proxy.local
 
    netmask: 255.255.0.0
 
    network_auto: false
 
    network_interface: eth1
 
    root_password: myrootpassword
 
    timezone: Europe/Belgrade
 
  parameters-optional-with-overrides-bookworm:
 
    country: RS
 
    dns: 1.1.1.1
 
    domain: example.com
 
    gateway: 2.2.2.2
 
    hostname: testing
 
    ip: 3.3.3.3
 
    keymap: sv
 
    language: sr
 
    locale: en_UK.UTF-8
 
    mirror_directory: /
 
    mirror_hostname: ftp.de.debian.org
 
    mirror_proxy: http://proxy.local
 
    netmask: 255.255.0.0
 
    network_auto: false
 
    network_interface: eth1
 
    root_password: myrootpassword
 
    timezone: Europe/Belgrade
roles/preseed/molecule/default/molecule.yml
Show inline comments
 
@@ -32,24 +32,51 @@ platforms:
 
    provider_raw_config_args:
 
      - "customize ['modifyvm', :id, '--paravirtprovider', 'minimal']"
 

	
 
  - name: parameters-optional-with-overrides-bullseye
 
    groups:
 
      - parameters-optional-with-overrides
 
    box: debian/bullseye64
 
    memory: 256
 
    cpus: 1
 
    provider_raw_config_args:
 
      - "customize ['modifyvm', :id, '--paravirtprovider', 'minimal']"
 

	
 
  - name: parameters-mandatory-bookworm
 
    groups:
 
      - parameters-mandatory
 
    box: debian/bookworm64
 
    memory: 256
 
    cpus: 1
 
    provider_raw_config_args:
 
      - "customize ['modifyvm', :id, '--paravirtprovider', 'minimal']"
 

	
 
  - name: parameters-optional-bookworm
 
    groups:
 
      - parameters-optional
 
    box: debian/bookworm64
 
    memory: 256
 
    cpus: 1
 
    provider_raw_config_args:
 
      - "customize ['modifyvm', :id, '--paravirtprovider', 'minimal']"
 

	
 
  - name: parameters-optional-with-overrides-bookworm
 
    groups:
 
      - parameters-optional-with-overrides
 
    box: debian/bookworm64
 
    memory: 256
 
    cpus: 1
 
    provider_raw_config_args:
 
      - "customize ['modifyvm', :id, '--paravirtprovider', 'minimal']"
 

	
 
provisioner:
 
  name: ansible
 
  config_options:
 
    defaults:
 
      force_valid_group_names: "ignore"
 
      interpreter_python: "/usr/bin/python3"
 
    ssh_connection:
 
      pipelining: "True"
 
  lint:
 
    name: ansible-lint
 

	
 
scenario:
0 comments (0 inline, 0 general)