Skip to content

Commit

Permalink
[mitogent] update to 0.3.2 (kubernetes-sigs#8470)
Browse files Browse the repository at this point in the history
  • Loading branch information
cristicalin authored and sakuraiyuta committed Apr 16, 2022
1 parent 619db07 commit 3bb8380
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
15 changes: 10 additions & 5 deletions mitogen.yml → contrib/mitogen/mitogen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
- hosts: localhost
strategy: linear
vars:
mitogen_version: 0.3.0rc1
mitogen_url: https://github.com/dw/mitogen/archive/v{{ mitogen_version }}.tar.gz
mitogen_version: 0.3.2
mitogen_url: https://github.com/mitogen-hq/mitogen/archive/refs/tags/v{{ mitogen_version }}.tar.gz
ansible_connection: local
tasks:
- name: Create mitogen plugin dir
Expand Down Expand Up @@ -38,7 +38,12 @@
- name: add strategy to ansible.cfg
ini_file:
path: ansible.cfg
section: defaults
option: strategy
value: mitogen_linear
mode: 0644
section: "{{ item.section | d('defaults') }}"
option: "{{ item.section }}"
value: "{{ item.value }}"
with_items:
- option: strategy
value: mitogen_linear
- option: strategy_plugins
value: plugins/mitogen/ansible_mitogen/plugins/strategy
4 changes: 2 additions & 2 deletions docs/mitogen.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
## Install

```ShellSession
ansible-playbook mitogen.yml
ansible-playbook contrib/mitogen/mitogen.yml
```

Ensure to enable mitogen use by environment varialbles:
The above playbook sets the ansible `strategy` and `strategy_plugins` in `ansible.cfg` but you can also enable them if you use your own `ansible.cfg` by setting the environment varialbles:

```ShellSession
export ANSIBLE_STRATEGY=mitogen_linear
Expand Down

0 comments on commit 3bb8380

Please sign in to comment.