You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ansible/README.md
+23-11Lines changed: 23 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -27,15 +27,15 @@ If you want to deploy OpenWhisk locally using Ansible, you first need to install
27
27
#### Ubuntu users
28
28
```shell script
29
29
sudo apt-get install python-pip
30
-
sudo pip install ansible==2.5.2
31
-
sudo pip install jinja2==2.9.6
30
+
sudo pip install ansible==4.1.0
31
+
sudo pip install jinja2==3.0.1
32
32
```
33
33
34
34
#### Docker for Mac users
35
35
```shell script
36
36
sudo easy_install pip
37
-
sudo pip install ansible==2.5.2
38
-
pip install jinja2==2.9.6
37
+
sudo pip install ansible==4.1.0
38
+
pip install jinja2==3.0.1
39
39
```
40
40
Docker for Mac does not provide any official ways to meet some requirements for OpenWhisk.
41
41
You need to depend on the workarounds until Docker provides official methods.
@@ -45,8 +45,8 @@ If you prefer [Docker-machine](https://docs.docker.com/machine/) to [Docker for
45
45
##### Enable Docker remote API
46
46
The remote Docker API is required for collecting logs using the Ansible playbook [logs.yml](logs.yml).
47
47
48
-
##### Activate docker0 network
49
-
This is an optional step for local deployment.
48
+
##### Activate docker0 network (local dev only)
49
+
50
50
The OpenWhisk deployment via Ansible uses the `docker0` network interface to deploy OpenWhisk and it does not exist on Docker for Mac environment.
51
51
52
52
An expedient workaround is to add alias for `docker0` network to loopback interface.
@@ -70,17 +70,29 @@ use `-i environments/docker-machine`.
70
70
71
71
In all instructions, replace `<openwhisk_home>` with the base directory of your OpenWhisk source tree. e.g. `openwhisk`
72
72
73
+
#### Ansible with pyenv (local dev only)
74
+
75
+
When using [pyenv](https://github.com/pyenv/pyenv) to manage your versions of python, the [ansible python interpreter](https://docs.ansible.com/ansible/latest/reference_appendices/python_3_support.html) will use your system's default python, which may have a different version.
76
+
77
+
To make sure ansible uses the same version of python which you configured, execute:
1. Versions of Docker and Ansible are lower than the latest released versions, the versions used in OpenWhisk are pinned to have stability during continuous integration and deployment.<br>
0 commit comments