Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Manage "driver" and "driver_opts" in docker.networks.install state #310

Open
kartnico opened this issue Dec 26, 2021 · 1 comment

Comments

@kartnico
Copy link

Is your feature request related to a problem?

No

Describe the solution you'd like

Manage "driver" and "driver_opts" in docker.networks.install state

Salt docker_network.present syntax1 :

mynet:
  docker_network.present:
    - driver: macvlan
    - driver_opts: macvlan_mode=bridge,parent=eth0

Salt docker_network.present syntax2 :

mynet:
  docker_network.present:
    - driver: macvlan
    - driver_opts:
      - macvlan_mode=bridge
      - parent=eth0

Salt docker_network.present state
Docker bridge driver options

Describe alternatives you've considered

Additional context

My use case is to manage "com.docker.network.bridge.name" driver_opts in order to rename bridge name

@corycandia
Copy link

Would adding something like this accomplish the driver request and allow additional configuration of network?

docker-network-{{ name }}-present:
  docker_network.present:
    - name: {{ name }}
    - unless: docker network ls | grep ' {{ name }} '
    {{- format_kwargs(d.networks[name]) }}

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

No branches or pull requests

2 participants