openshift 的 playbooks

举报
tscswcn 发表于 2019/01/19 12:56:45 2019/01/19
【摘要】 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: ope...

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]#



【版权声明】本文为华为云社区用户原创内容,转载时必须标注文章的来源(华为云社区)、文章链接、文章作者等基本信息, 否则作者和本社区有权追究责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@huaweicloud.com
  • 点赞
  • 收藏
  • 关注作者

评论(0

0/1000
抱歉,系统识别当前为高风险访问,暂不支持该操作

全部回复

上滑加载中

设置昵称

在此一键设置昵称,即可参与社区互动!

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。