enable automated setup of physical infrastructure 12/62012/3
authorMatt Welch <matt.welch@intel.com>
Mon, 14 Aug 2017 20:59:58 +0000 (16:59 -0400)
committerMatt Welch <matt.welch@intel.com>
Fri, 1 Sep 2017 13:46:11 +0000 (09:46 -0400)
commit44163ddb897d72c718187682a0ae3b0134d08875
tree6c92fd274cd73772380e45f2ae352247b9b69a9d
parent6d1e059eaa318f2e303dc1290d005f5d24b6fc94
enable automated setup of physical infrastructure

Ansible role to setup the physical infrastructure servers for the S3P
Scale testing framework.
These roles are refactored to improve structure for upstream.
Source is based on
https://github.com/intel-odl/socets/commit/975f5113e0ce16cd6ef1eeb03176230e4f6445c9
Consolidated bridge management and refactored for clarity & reuse.

Clean up infrastructure role
Improve execution idempotency by registering docker_updated_result and
only restarting docker daemon when needed.
Same with parse_apparmor_profile handler.
Added tags to most tasks for better separation of responsibilities.
Moved lab-specific variables tnd inventory to /etc/ansible/hosts.
Addes top-level site.yml to call infrastructure role.

fix docker proxy and 'restart docker' handler
Infra role will now setup proxies and only restart docker daemon on
change.
Refactor to move most variables into common role.
Updated handler

Removed trailing whitespace

Change-Id: I7956b5acba7d339af2e8abbb588c07f0e809de5c
Signed-off-by: Matt Welch <matt.welch@intel.com>
24 files changed:
roles/.gitignore [new file with mode: 0644]
roles/common/vars/main.yml [new file with mode: 0644]
roles/examples/example_setup_infra.yml [new file with mode: 0644]
roles/infra/files/docker-unconfined [new file with mode: 0644]
roles/infra/handlers/main.yml [new file with mode: 0644]
roles/infra/handlers/parse_apparmor_profile.yml [new file with mode: 0644]
roles/infra/tasks/configure_docker_daemon.yml [new file with mode: 0644]
roles/infra/tasks/copy_apparmor_profile.yml [new file with mode: 0644]
roles/infra/tasks/create_bridges.yml [new file with mode: 0644]
roles/infra/tasks/install_docker.yml [new file with mode: 0644]
roles/infra/tasks/install_packages.yml [new file with mode: 0644]
roles/infra/tasks/main.yml [new file with mode: 0644]
roles/infra/tasks/set_apt_proxy.yml [new file with mode: 0644]
roles/infra/tasks/set_bash_proxy.yml [new file with mode: 0644]
roles/infra/tasks/set_docker_proxy.yml [new file with mode: 0644]
roles/infra/tasks/set_proxies.yml [new file with mode: 0644]
roles/infra/tasks/setup_bridge.yml [new file with mode: 0644]
roles/infra/tasks/setup_docker_daemon.yml [new file with mode: 0644]
roles/infra/tasks/update_etc_hosts.yml [new file with mode: 0644]
roles/infra/templates/daemon.json.j2 [new file with mode: 0644]
roles/infra/templates/http-proxy.conf.j2 [new file with mode: 0644]
roles/infra/vars/main.yml [new file with mode: 0644]
roles/infrastructure.yml [new file with mode: 0644]
roles/site.yml [new file with mode: 0644]