---
# Copyright 2016 IBM Corp.
#
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

- name: Gather facts from localhost
  hosts: localhost
  gather_facts: yes
  tasks:
    - name: Include localhost variables
      include_vars: host_vars/localhost

- name: Configure interfaces
  hosts: all
  tasks:
    - include: tasks/create_interfaces.yml
  handlers:
    - include: handlers/reboot.yml

- name: Wait for networks to initialize
  hosts: localhost
  tasks:
    - name: Pause 1 minute
      pause:
        minutes: 1

- name: Transfer keys
  hosts: controllers:compute
  tasks:
    - include: tasks/transfer_keys.yml

- name: Transfer inventory file
  hosts: controllers
  tasks:
    - include: tasks/transfer_inventory.yml

- name: Cluster Software Bootstrap
  hosts: all
  tasks:
    - include: tasks/cmd_bootstrap.yml
      when: software_bootstrap is defined

---
# Copyright 2016, 2017 IBM Corp.
#
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

- name: Gather facts from localhost
  hosts: localhost
  gather_facts: yes
  tasks:
    - name: Include localhost variables
      include_vars: host_vars/localhost

- name: Configure interfaces
  hosts: all
  tasks:
    - include: tasks/create_interfaces.yml
  handlers:
    - include: handlers/reboot.yml

- name: Wait for networks to initialize
  hosts: localhost
  tasks:
    - name: Pause 1 minute
      pause:
        minutes: 1

- name: Transfer keys
  # Note the targeting of controllers and compute groups is deprecated and
  # these groups will be removed in a future release.
  hosts: solution_keys:controllers:compute
  tasks:
    - include: tasks/transfer_keys.yml

- name: Transfer inventory file
  # Note the targeting of controllers group is deprecated and
  # these groups will be removed in a future release.
  hosts: solution_inventory:controllers
  tasks:
    - include: tasks/transfer_inventory.yml

- name: Cluster Software Bootstrap
  hosts: all
  tasks:
    - include: tasks/cmd_bootstrap.yml
      when: software_bootstrap is defined

Change key and inv file propagation groups
feat: Change key and inv file propagation groups

Change the groups targeted for key configuration and inventory
file propagation.

Change-Id: Ic886558820beb76008ecc65c6faafd310dc8295e
