Przeglądaj źródła

add ability to specify an etcd version

Mark McKinstry 8 lat temu
rodzic
commit
8c2ec1b18c

+ 2 - 0
inventory/byo/hosts.origin.example

@@ -89,6 +89,8 @@ openshift_release=v1.4
 # Skip upgrading Docker during an OpenShift upgrade, leaves the current Docker version alone.
 # docker_upgrade=False
 
+# Specify exact version of etcd to configure or upgrade to.
+# etcd_version="3.1.0"
 
 # Upgrade Hooks
 #

+ 2 - 0
inventory/byo/hosts.ose.example

@@ -89,6 +89,8 @@ openshift_release=v3.4
 # Skip upgrading Docker during an OpenShift upgrade, leaves the current Docker version alone.
 # docker_upgrade=False
 
+# Specify exact version of etcd to configure or upgrade to.
+# etcd_version="3.1.0"
 
 # Upgrade Hooks
 #

+ 1 - 1
roles/etcd/tasks/etcdctl.yml

@@ -1,6 +1,6 @@
 ---
 - name: Install etcd for etcdctl
-  package: name=etcd state=present
+  package: name=etcd{{ '-' + etcd_version if etcd_version is defined else '' }} state=present
   when: not openshift.common.is_atomic | bool
 
 - name: Configure etcd profile.d alises

+ 1 - 1
roles/etcd/tasks/main.yml

@@ -7,7 +7,7 @@
     etcd_ip: "{{ etcd_ip }}"
 
 - name: Install etcd
-  package: name=etcd state=present
+  package: name=etcd{{ '-' + etcd_version if etcd_version is defined else '' }} state=present
   when: not etcd_is_containerized | bool
 
 - name: Pull etcd container

+ 1 - 1
roles/etcd_server_certificates/tasks/main.yml

@@ -1,6 +1,6 @@
 ---
 - name: Install etcd
-  package: name=etcd state=present
+  package: name=etcd{{ '-' + etcd_version if etcd_version is defined else '' }} state=present
   when: not etcd_is_containerized | bool
 
 - name: Check status of etcd certificates