diff options
author | Scott Dodson <sdodson@redhat.com> | 2017-12-07 12:19:40 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-07 12:19:40 -0500 |
commit | 33b127157d3339caa690e6b238a81f7fe83f1383 (patch) | |
tree | e307026abdee8e76c1b7df0edbc62a0e43049731 /playbooks/container-runtime | |
parent | 54175f4b668cc1e6108b7d0af13275fcda9f586f (diff) | |
parent | 2249ba3d08d1e6c55bf008609c9e4eace16bd917 (diff) | |
download | openshift-33b127157d3339caa690e6b238a81f7fe83f1383.tar.gz openshift-33b127157d3339caa690e6b238a81f7fe83f1383.tar.bz2 openshift-33b127157d3339caa690e6b238a81f7fe83f1383.tar.xz openshift-33b127157d3339caa690e6b238a81f7fe83f1383.zip |
Merge pull request #6362 from mgugino-upstream-stage/crt-plays
Implement container_runtime playbooks and changes
Diffstat (limited to 'playbooks/container-runtime')
-rw-r--r-- | playbooks/container-runtime/config.yml | 6 | ||||
-rw-r--r-- | playbooks/container-runtime/private/config.yml | 28 | ||||
l--------- | playbooks/container-runtime/private/roles | 1 |
3 files changed, 35 insertions, 0 deletions
diff --git a/playbooks/container-runtime/config.yml b/playbooks/container-runtime/config.yml new file mode 100644 index 000000000..f15aa771f --- /dev/null +++ b/playbooks/container-runtime/config.yml @@ -0,0 +1,6 @@ +--- +- import_playbook: ../init/main.yml + vars: + skip_verison: True + +- import_playbook: private/config.yml diff --git a/playbooks/container-runtime/private/config.yml b/playbooks/container-runtime/private/config.yml new file mode 100644 index 000000000..67445edeb --- /dev/null +++ b/playbooks/container-runtime/private/config.yml @@ -0,0 +1,28 @@ +--- +- hosts: "{{ l_containerized_host_groups }}" + vars: + l_chg_temp: "{{ openshift_containerized_host_groups | default([]) }}" + l_containerized_host_groups: "{{ (['oo_nodes_to_config'] | union(l_chg_temp)) | join(':') }}" + # role: container_runtime is necessary here to bring role default variables + # into the play scope. + roles: + - role: container_runtime + tasks: + - include_role: + name: container_runtime + tasks_from: package_docker.yml + when: + - not openshift_docker_use_system_container | bool + - not openshift_use_crio_only | bool + - include_role: + name: container_runtime + tasks_from: systemcontainer_docker.yml + when: + - openshift_docker_use_system_container | bool + - not openshift_use_crio_only | bool + - include_role: + name: container_runtime + tasks_from: systemcontainer_crio.yml + when: + - openshift_use_crio | bool + - openshift_docker_is_node_or_master | bool diff --git a/playbooks/container-runtime/private/roles b/playbooks/container-runtime/private/roles new file mode 120000 index 000000000..148b13206 --- /dev/null +++ b/playbooks/container-runtime/private/roles @@ -0,0 +1 @@ +../../roles/
\ No newline at end of file |