diff --git a/share/oneprovision/edge-clusters-extra/virtual/provisions/aws.d/inputs-hci.yml b/share/oneprovision/edge-clusters-extra/virtual/provisions/aws.d/inputs-hci.yml index 667df89701..6008e86102 100644 --- a/share/oneprovision/edge-clusters-extra/virtual/provisions/aws.d/inputs-hci.yml +++ b/share/oneprovision/edge-clusters-extra/virtual/provisions/aws.d/inputs-hci.yml @@ -16,20 +16,20 @@ # ---------------------------------------------------------------------------- # inputs: - - name: 'number_hosts' - type: text - description: 'Total number of AWS instances to create' - default: '1' - - name: 'number_ceph_full_hosts' type: text - description: 'Number of instances to install Ceph HCI (osd + mon), usually 3' - default: '1' + description: 'Number of instances for Ceph full nodes (OSD+MON), usually 3' + default: '3' - name: 'number_ceph_osd_hosts' type: text - description: 'Number of instances to install Ceph HCI (osd only)' - default: '1' + description: 'Number of instances for Ceph OSD (OSD only)' + default: '0' + + - name: 'number_ceph_client_hosts' + type: text + description: 'Number of instances for hypervisor (Ceph client only)' + default: '0' - name: 'number_public_ips' type: text diff --git a/share/oneprovision/edge-clusters-extra/virtual/provisions/common.d/hosts-hci.yml b/share/oneprovision/edge-clusters-extra/virtual/provisions/common.d/hosts-hci.yml index 74ab2a31e7..61efae805c 100644 --- a/share/oneprovision/edge-clusters-extra/virtual/provisions/common.d/hosts-hci.yml +++ b/share/oneprovision/edge-clusters-extra/virtual/provisions/common.d/hosts-hci.yml @@ -30,7 +30,7 @@ hosts: - im_mad: "${input.one_hypervisor}" vm_mad: "${input.one_hypervisor}" provision: - count: "${input.number_hosts}" ceph_full_count: "${input.number_ceph_full_hosts}" ceph_osd_count: "${input.number_ceph_osd_hosts}" - hostname: "edge-vhost${index}" + ceph_client_count: "${input.number_ceph_client_hosts}" + hostname: "edge-host${index}" diff --git a/share/oneprovision/edge-clusters/metal/provisions/aws.d/inputs-hci.yml b/share/oneprovision/edge-clusters/metal/provisions/aws.d/inputs-hci.yml index bed4e0c365..c126c32992 100644 --- a/share/oneprovision/edge-clusters/metal/provisions/aws.d/inputs-hci.yml +++ b/share/oneprovision/edge-clusters/metal/provisions/aws.d/inputs-hci.yml @@ -16,20 +16,20 @@ # ---------------------------------------------------------------------------- # inputs: - - name: 'number_hosts' - type: text - description: 'Total number of AWS instances to create' - default: '1' - - name: 'number_ceph_full_hosts' type: text - description: 'Number of instances to install Ceph HCI (osd + mon), usually 3' - default: '1' + description: 'Number of instances for Ceph full nodes (OSD+MON), usually 3' + default: '3' - name: 'number_ceph_osd_hosts' type: text - description: 'Number of instances to install Ceph HCI (osd only)' - default: '1' + description: 'Number of instances for Ceph OSD (OSD only)' + default: '0' + + - name: 'number_ceph_client_hosts' + type: text + description: 'Number of instances for hypervisor (Ceph client only)' + default: '0' - name: 'number_public_ips' type: text diff --git a/share/oneprovision/edge-clusters/metal/provisions/common.d/hosts-hci.yml b/share/oneprovision/edge-clusters/metal/provisions/common.d/hosts-hci.yml index 84428db09b..1a8605fe49 100644 --- a/share/oneprovision/edge-clusters/metal/provisions/common.d/hosts-hci.yml +++ b/share/oneprovision/edge-clusters/metal/provisions/common.d/hosts-hci.yml @@ -30,8 +30,8 @@ hosts: - im_mad: "${input.one_hypervisor}" vm_mad: "${input.one_hypervisor}" provision: - count: "${input.number_hosts}" ceph_full_count: "${input.number_ceph_full_hosts}" ceph_osd_count: "${input.number_ceph_osd_hosts}" + ceph_client_count: "${input.number_ceph_client_hosts}" hostname: "edge-host${index}" ... diff --git a/src/oneprovision/lib/provision/provision.rb b/src/oneprovision/lib/provision/provision.rb index 09502b4992..a8e4120077 100644 --- a/src/oneprovision/lib/provision/provision.rb +++ b/src/oneprovision/lib/provision/provision.rb @@ -886,6 +886,10 @@ module OneProvision hostnames = h['provision']['hostname'] elsif h['provision']['count'] count = Integer(h['provision']['count']) + elsif h['provision']['ceph_full_count'] + count = Integer(h['provision']['ceph_full_count']) + \ + Integer(h['provision']['ceph_osd_count']) + \ + Integer(h['provision']['ceph_client_count']) else count = 1 end