Skip to content
Snippets Groups Projects
Select Git revision
  • 78b635ae78346fdfb298dd0d0c82ae1ff34b754a
  • master default protected
  • v1.14.7
  • v1.14.6
  • v1.14.5
  • v1.14.4
  • v1.14.3
  • v1.14.2
  • v1.14.1
  • v1.14.0
  • v1.13.2
  • v1.13.1
  • v1.13.0
  • v1.12.1
  • v1.12.0
  • v1.11.1
  • v1.11.0
  • v1.10.0
  • v1.9.2
  • v1.9.1
  • v1.9.0
  • v1.8.4
22 results

README-vault.md

Blame
    • Rafael Guterres Jeffman's avatar
      78b635ae
      Add suppport for changing password of symmetric vaults. · 78b635ae
      Rafael Guterres Jeffman authored
      Allows changing passwords of symmetric waults, using a new variable
      `new_password` (or the file-base version, `new_password_file`). The
      old password must be passed using the `password` or `password_file`
      variables that also received new aliases `old_password` and
      `old_password_file`, respectively.
      
      Tests were modyfied to reflect the changes.
      78b635ae
      History
      Add suppport for changing password of symmetric vaults.
      Rafael Guterres Jeffman authored
      Allows changing passwords of symmetric waults, using a new variable
      `new_password` (or the file-base version, `new_password_file`). The
      old password must be passed using the `password` or `password_file`
      variables that also received new aliases `old_password` and
      `old_password_file`, respectively.
      
      Tests were modyfied to reflect the changes.
    remove-node.yml 1.82 KiB
    ---
    - name: Check ansible version
      import_playbook: ansible_version.yml
    
    - hosts: all
      gather_facts: false
      tags: always
      tasks:
        - name: "Set up proxy environment"
          set_fact:
            proxy_env:
              http_proxy: "{{ http_proxy | default ('') }}"
              HTTP_PROXY: "{{ http_proxy | default ('') }}"
              https_proxy: "{{ https_proxy | default ('') }}"
              HTTPS_PROXY: "{{ https_proxy | default ('') }}"
              no_proxy: "{{ no_proxy | default ('') }}"
              NO_PROXY: "{{ no_proxy | default ('') }}"
          no_log: true
    
    - hosts: "{{ node | default('etcd:k8s-cluster:calico-rr') }}"
      gather_facts: no
      vars_prompt:
        name: "delete_nodes_confirmation"
        prompt: "Are you sure you want to delete nodes state? Type 'yes' to delete nodes."
        default: "no"
        private: no
    
      pre_tasks:
        - name: check confirmation
          fail:
            msg: "Delete nodes confirmation failed"
          when: delete_nodes_confirmation != "yes"
    
    - hosts: kube-master[0]
      gather_facts: no
      roles:
        - { role: kubespray-defaults }
        - { role: bootstrap-os, tags: bootstrap-os }
        - { role: remove-node/pre-remove, tags: pre-remove }
    
    - hosts: "{{ node | default('kube-node') }}"
      gather_facts: no
      roles:
        - { role: kubespray-defaults, when: reset_nodes|default(True)|bool }
        - { role: bootstrap-os, tags: bootstrap-os, when: reset_nodes|default(True)|bool }
        - { role: remove-node/remove-etcd-node }
        - { role: reset, tags: reset, when: reset_nodes|default(True)|bool }
    
    # Currently cannot remove first master or etcd
    - hosts: "{{ node | default('kube-master[1:]:etcd[1:]') }}"
      gather_facts: no
      roles:
        - { role: kubespray-defaults, when: reset_nodes|default(True)|bool }
        - { role: bootstrap-os, tags: bootstrap-os, when: reset_nodes|default(True)|bool }
        - { role: remove-node/post-remove, tags: post-remove }