-
Notifications
You must be signed in to change notification settings - Fork 83
Expand file tree
/
Copy pathscaleup.yml
More file actions
31 lines (26 loc) · 954 Bytes
/
scaleup.yml
File metadata and controls
31 lines (26 loc) · 954 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
mkdir -p /var/lib/os-apply-config/templates/var/lib/ansible/playbooks
cat << 'EOF' > /var/lib/os-apply-config/templates/var/lib/ansible/playbooks/scaleup.yml
{{=<% %>=}}
<%#volume_quota%>
- include: /var/lib/ansible/playbooks/quota.yml
<%/volume_quota%>
- include: /usr/share/ansible/openshift-ansible/playbooks/byo/openshift-node/scaleup.yml
vars:
openshift_infra_nodes: "{{ groups.infra | default([]) }}"
- hosts: new_nodes
sudo: yes
tasks:
- name: Allow docker traffic
shell: iptables -A DOCKER -p tcp -j ACCEPT
when: openshift_use_flannel
- name: Set up masquerading on flannel interface
shell: iptables -t nat -A POSTROUTING -o {{ flannel_interface }} -j MASQUERADE
- name: Make iptables rules permanent
shell: /usr/libexec/iptables/iptables.init save
- hosts: new_nodes
sudo: yes
tasks:
- name: Restart node service
service: name={{openshift.common.service_type}}-node state=restarted
<%={{ }}=%>
EOF