Spawn nodes & connect network with ansible roles 17/62717/4
authorMatt Welch <matt.welch@intel.com>
Tue, 5 Sep 2017 15:14:10 +0000 (11:14 -0400)
committerMatt Welch <matt.welch@intel.com>
Tue, 5 Sep 2017 19:09:48 +0000 (15:09 -0400)
commited5edabcb29f29035630384290df9be180f87b0b
tree7fbc711fabf847bfa8820ce572fc859b304115e0
parent3c7912a10e5214964e635299924c6db137d54eb2
Spawn nodes & connect network with ansible roles

Refactor for better task encapsulation
Add kill_chown.yml to kill stuck chown processes.
Add restart_stacking.yml to restart compute nodes.
Move additional lab-specific variables into inventory.
Update tags to enble more granular task selection.
Modify container networking to use ansible instead of the bash script.
Add ansible tasks to pull container images from the registry.
Add tasks to purge containers matching a supplied string.
Modify order of infra tasks to install packages first, including
bridge-utils.
Add sampe hosts file.
Update site.yml to include a complete cloud setup.
Changed tabs to spaces for SpaceConsistencyBear.

Enable roles to spawn compute and service nodes
Common task added to start stacking on a compute or service node.
New common variable auto_stack added to control stacking after spawn.
Example ansible scripts to setup infra, spawn compute, & spawn service.
Compute and service roles spawn docker containers & connect them to the
network with a bash script.
Handler for apparmor parser moved to handlers/main.yml.
Site.yml now starts a service node by default.
Removed EOL whitespace.

Change-Id: I892afc76fffdcd85e399c5d2596eb4e5020cc318
Signed-off-by: Matt Welch <matt.welch@intel.com>
33 files changed:
roles/common/tasks/kill_chown.yml [new file with mode: 0644]
roles/common/tasks/pull_image.yml [new file with mode: 0644]
roles/common/tasks/restart_stacking.yml [new file with mode: 0644]
roles/common/tasks/start_stacking.yml [new file with mode: 0644]
roles/common/templates/connect_container_to_network.sh.j2 [new file with mode: 0644]
roles/common/vars/main.yml
roles/compute/tasks/main.yml [new file with mode: 0644]
roles/compute/tasks/pull_compute.yml [new file with mode: 0644]
roles/compute/tasks/run_compute.yml [new file with mode: 0644]
roles/compute/vars/main.yml [new file with mode: 0644]
roles/examples/example_connect_container_to_network.yml [new file with mode: 0644]
roles/examples/example_purge_containers.yml [new file with mode: 0644]
roles/examples/example_setup_infra.yml [deleted file]
roles/examples/example_setup_infrastructure.yml [new file with mode: 0644]
roles/examples/example_spawn_compute_node_11.yml [new file with mode: 0644]
roles/examples/example_spawn_compute_node_COMP_ID.yml [new file with mode: 0644]
roles/examples/example_start_service_node.yml [new file with mode: 0644]
roles/infra/handlers/main.yml
roles/infra/tasks/create_bridges.yml
roles/infra/tasks/install_packages.yml
roles/infra/tasks/main.yml
roles/infra/tasks/purge_containers.yml [new file with mode: 0644]
roles/network/tasks/add_veth_links_to_container.yml [new file with mode: 0644]
roles/network/tasks/link_container_netns.yml [new file with mode: 0644]
roles/network/tasks/link_to_bridge.yml [new file with mode: 0644]
roles/network/tasks/main.yml [new file with mode: 0644]
roles/network/vars/main.yml [new file with mode: 0644]
roles/sample_hosts_file [new file with mode: 0644]
roles/service/tasks/main.yml [new file with mode: 0644]
roles/service/tasks/pull_service.yml [new file with mode: 0644]
roles/service/tasks/run_service.yml [new file with mode: 0644]
roles/service/vars/main.yml [new file with mode: 0644]
roles/site.yml