dokku / ansible-dokku

Ansible modules for installing and configuring Dokku
MIT License
169 stars 44 forks source link

Implement Resource limits and reserves modules #103

Closed apavanello closed 3 years ago

apavanello commented 3 years ago

Hello

What you think about a function of resource limit and reserve, today we lack of configurations to set limits and reserves (dokku resource:limit and dokku resource:reserve

The main ideia is make possible manipulate the limits of a several resources avaliable in dokku, the ansible, for exemple:

dokku_resource_limit

- name: Create a dokku app cpu and memory limit
  dokku_resource_limit:
    app: hello-world
    resources:
      cpu: 100
      memory: 100

or make a reserve: dokku_resource_reserve

- name: Create a dokku app network in  process-type web reserve
  dokku_resource_reserve:
    app: hello-world
    process-type: web
    resources:
      network: 120

Thinking about that i make a PR, who implement that modules, can you check?

TY

Alexandre Pavanello

apavanello commented 3 years ago

Aready merged, can closed