Skip to content

Feature request: ability to use file content for a template #164

Description

@kees-closed

The fedora.linux_system_roles.podman role has a nice feature to use file_content. This removes the need to define a template in the /playbooks directory. IMHO that looks a bit messy to put files in the /playbooks dir (or wherever your playbook is launched it looks for the template path). Having a file_content option would make it more dynamic and easier to override as well. Or am I missing something from the systemd role docs? I could not find a way to define a unit like I can for Podman Quadlets. Of course template_src should still be there, for those who would like to use actual files.

podman_quadlet_specs:
  - name: quadlet-demo
    type: network
    file_content: |
      [Network]
      Subnet=192.168.30.0/24
      Gateway=192.168.30.1
      Label=app=wordpress
  - file_src: quadlet-demo-mysql.volume
  - template_src: quadlet-demo-mysql.container.j2
  - file_src: envoy-proxy-configmap.yml
  - file_src: quadlet-demo.yml
  - file_src: quadlet-demo.kube
    activate_systemd_unit: true

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions