summaryrefslogtreecommitdiffstats
path: root/packer
diff options
context:
space:
mode:
authorefiacor <fiachra.corcoran@est.tech>2019-11-27 20:02:52 +0000
committerefiacor <fiachra.corcoran@est.tech>2019-11-27 21:56:08 +0000
commit27f55b72480dbe6e27ea30f725c771beaf9da135 (patch)
tree35fe778b6b302f530bfe4608e61cfe1aae994be0 /packer
parent9f53d369aab40b48ff0bfcbdadda0d66fa9b00b5 (diff)
Add Python 3.7 to CI Nodes
Change-Id: I0013c6e59c3b02cc9a8c5182ad8c9d7040b69dfa Signed-off-by: efiacor <fiachra.corcoran@est.tech> Issue-ID: CIMAN-356
Diffstat (limited to 'packer')
-rw-r--r--packer/provision/local-builder.yaml27
-rw-r--r--packer/provision/local-docker.yaml15
2 files changed, 36 insertions, 6 deletions
diff --git a/packer/provision/local-builder.yaml b/packer/provision/local-builder.yaml
index a9280815f..10c3c407e 100644
--- a/packer/provision/local-builder.yaml
+++ b/packer/provision/local-builder.yaml
@@ -6,6 +6,18 @@
become_method: sudo
tasks:
+ - apt_repository:
+ repo: ppa:jonathonf/python-3.6
+ state: present
+ become: true
+ when: ansible_distribution == 'Ubuntu'
+
+ - apt_repository:
+ repo: ppa:deadsnakes/ppa
+ state: present
+ become: true
+ when: ansible_distribution == 'Ubuntu'
+
- name: Update and upgrade apt packages
apt:
upgrade: yes
@@ -19,12 +31,6 @@
state: present
become: true
- - apt_repository:
- repo: ppa:jonathonf/python-3.6
- state: present
- become: true
- when: ansible_distribution == 'Ubuntu'
-
- name: Install Python 3.6 and packages
apt:
name:
@@ -37,6 +43,15 @@
become: true
when: ansible_distribution == 'Ubuntu'
+ - name: Install Python 3.7
+ apt:
+ name:
+ - python3.7
+ - python3.7-dev
+ - python3.7-tk
+ become: true
+ when: ansible_distribution == 'Ubuntu'
+
- name: Install base packages
apt:
name:
diff --git a/packer/provision/local-docker.yaml b/packer/provision/local-docker.yaml
index 76e0cbbd1..c3c9f1731 100644
--- a/packer/provision/local-docker.yaml
+++ b/packer/provision/local-docker.yaml
@@ -72,6 +72,12 @@
become: true
when: ansible_distribution == 'Ubuntu'
+ - apt_repository:
+ repo: ppa:deadsnakes/ppa
+ state: present
+ become: true
+ when: ansible_distribution == 'Ubuntu'
+
- name: Update and upgrade apt packages
apt:
upgrade: yes
@@ -91,6 +97,15 @@
become: true
when: ansible_distribution == 'Ubuntu'
+ - name: Install Python 3.7
+ apt:
+ name:
+ - python3.7
+ - python3.7-dev
+ - python3.7-tk
+ become: true
+ when: ansible_distribution == 'Ubuntu'
+
- name: Install base packages
apt:
name: