Skip to content
Snippets Groups Projects
  • Rafael Guterres Jeffman's avatar
    c979843b
    upstream CI: Allow podman options when creating containers · c979843b
    Rafael Guterres Jeffman authored
    When using containers to test ansible-freeipa there's a need to deal
    with 'podman' the development environment and the Azure environment. In
    the Azure environment, with Ubuntu hosts, using 'cap-add' does not allow
    FreeIPA to be installed on the containers, and they need to be executed
    with privileged mode. On the other hand, on development environments,
    such as recent Fedora hosts, there's no need to run the container with
    extra privileges.
    
    This patch modifies the utility function 'container_create' to allow the
    usage of key-value argumes such as "cpus=4" and "privileged", that will
    be used in the container creation.
    
    The currently available options are "privileged", "cpus", "memory" and
    "hostname". By default "cpus=2" and "hostname=ipaserver.test.local".
    
    Also, too make the image build script more self-contained, if the
    required Ansible collections are not installed, they will be temporarily
    installed so that the image can be built.
    c979843b
    History
    upstream CI: Allow podman options when creating containers
    Rafael Guterres Jeffman authored
    When using containers to test ansible-freeipa there's a need to deal
    with 'podman' the development environment and the Azure environment. In
    the Azure environment, with Ubuntu hosts, using 'cap-add' does not allow
    FreeIPA to be installed on the containers, and they need to be executed
    with privileged mode. On the other hand, on development environments,
    such as recent Fedora hosts, there's no need to run the container with
    extra privileges.
    
    This patch modifies the utility function 'container_create' to allow the
    usage of key-value argumes such as "cpus=4" and "privileged", that will
    be used in the container creation.
    
    The currently available options are "privileged", "cpus", "memory" and
    "hostname". By default "cpus=2" and "hostname=ipaserver.test.local".
    
    Also, too make the image build script more self-contained, if the
    required Ansible collections are not installed, they will be temporarily
    installed so that the image can be built.