openshift 的 playbooks
playbooks/deploy_cluster.yml
---
- import_playbook: init/main.yml
vars:
l_networkman_check_hosts: "oo_nodes_to_config"
- import_playbook: openshift-checks/private/install.yml
- import_playbook: openshift-node/private/bootstrap.yml
- import_playbook: common/private/control_plane.yml
- import_playbook: openshift-node/private/join.yml
- import_playbook: common/private/components.yml
cat playbooks/init/main.yml
---
# l_install_base_packages is passed in via prerequistes.yml.
# skip_sanity_checks is passed in via openshift-node/private/image_prep.yml
- name: Initialization Checkpoint Start
hosts: all
gather_facts: false
roles:
- installer_checkpoint
tasks:
- name: Set install initialization 'In Progress'
run_once: true
set_stats:
data:
installer_phase_initialize:
title: "Initialization"
playbook: ""
status: "In Progress"
start: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
- import_playbook: evaluate_groups.yml
- import_playbook: basic_facts.yml
# NOTE: we must call init repos before installing base packages
# because they may come from the repos.
- import_playbook: repos.yml
# base_packages needs to be setup for openshift_facts.py to run correctly.
- import_playbook: base_packages.yml
when: l_install_base_packages | default(False) | bool
- import_playbook: cluster_facts.yml
- import_playbook: version.yml
- import_playbook: sanity_checks.yml
when: not (skip_sanity_checks | default(False))
- name: Initialization Checkpoint End
hosts: all
gather_facts: false
tasks:
- name: Set install initialization 'Complete'
run_once: true
set_stats:
data:
installer_phase_initialize:
status: "Complete"
end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
[root@master openshift-ansible]#
cat openshift-ansible/playbooks/redeploy-certificates.yml
---
- import_playbook: init/main.yml
- import_playbook: openshift-etcd/private/redeploy-certificates.yml
- import_playbook: openshift-master/private/redeploy-certificates.yml
- import_playbook: openshift-etcd/private/restart.yml
vars:
g_etcd_certificates_expired: "{{ ('expired' in (hostvars | lib_utils_oo_select_keys(groups['etcd']) | lib_utils_oo_collect('check_results.check_results.etcd') | lib_utils_oo_collect('health'))) | bool }}"
- import_playbook: openshift-master/private/restart.yml
- import_playbook: openshift-node/private/restart.yml
- import_playbook: openshift-hosted/private/redeploy-router-certificates.yml
when: openshift_hosted_manage_router | default(true) | bool
- import_playbook: openshift-hosted/private/redeploy-registry-certificates.yml
when: openshift_hosted_manage_registry | default(true) | bool
- import_playbook: openshift-master/private/revert-client-ca.yml
- import_playbook: openshift-master/private/restart.yml
- import_playbook: openshift-web-console/private/redeploy-certificates.yml
when: openshift_web_console_install | default(true) | bool
- import_playbook: openshift-console/private/redeploy-certificates.yml
when: openshift_console_install | default(true) | bool
[root@master opt]#
- 点赞
- 收藏
- 关注作者
评论(0)