ソースを参照

atomic-openshift-installer: add containerized to inventory

Updates to actually check the containerized setting and add it
to the inventory.
Samuel Munilla 9 年 前
コミット
eb6cb4ff6c
1 ファイル変更2 行追加0 行削除
  1. 2 0
      utils/src/ooinstall/openshift_ansible.py

+ 2 - 0
utils/src/ooinstall/openshift_ansible.py

@@ -128,6 +128,8 @@ def write_host(host, inventory, schedulable=None):
         facts += ' openshift_hostname={}'.format(host.hostname)
         facts += ' openshift_hostname={}'.format(host.hostname)
     if host.public_hostname:
     if host.public_hostname:
         facts += ' openshift_public_hostname={}'.format(host.public_hostname)
         facts += ' openshift_public_hostname={}'.format(host.public_hostname)
+    if host.containerized:
+        facts += ' containerized={}'.format(host.containerized)
     # TODO: For not write_host is handles both master and nodes.
     # TODO: For not write_host is handles both master and nodes.
     # Technically only nodes will ever need this.
     # Technically only nodes will ever need this.