forked from puppetlabs/kream
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathservers.yaml
112 lines (105 loc) · 5.32 KB
/
servers.yaml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
---
-
box: bento/centos-7.5
cpu: 2
ip: "172.17.10.101"
name: kube-master
forward_ports:
- { guest: 22, host: 9999, id: "ssh" }
ram: 4096
shell_commands:
- { shell: 'setenforce 0 || true'}
- { shell: 'swapoff -a'}
- { shell: 'systemctl stop firewalld && systemctl disable firewalld'}
- { shell: 'echo -e "172.17.10.101 kubernetes\n172.17.10.101 kube-master\n172.17.10.102 kube-node-01\n172.17.10.103 kube-node-02">>/etc/hosts'}
- { shell: 'rpm -q puppet5-release-5.0.0-4.el7.noarch || sudo rpm -Uvh https://yum.puppet.com/puppet6/puppet6-release-el-7.noarch.rpm'}
- { shell: 'yum install vim git puppet-agent rubygems ruby-devel -y' }
- { shell: 'gem install r10k -v 2.6.3'}
- { shell: '[ -f /usr/bin/r10k ] || ln -s /usr/local/bin/r10k /usr/bin/r10k' }
- { shell: 'cp /home/vagrant/kube-master/Puppetfile /tmp && cd /tmp && r10k puppetfile install --verbose' }
- { shell: 'cp /home/vagrant/kube-master/modules/* -R /tmp/modules || true'}
-
box: bento/centos-7.5
cpu: 2
ip: "172.17.10.210"
name: kube-replica-master-01
forward_ports: []
ram: 4096
shell_commands:
- { shell: 'setenforce 0 || true'}
- { shell: 'swapoff -a'}
- { shell: 'systemctl stop firewalld && systemctl disable firewalld'}
- { shell: 'echo -e "172.17.10.210 kubernetes\n172.17.10.210 kube-replica-master-01\n172.17.10.101 kube-master\n172.17.10.102 kube-node-01\n172.17.10.103 kube-node-02">>/etc/hosts'}
- { shell: 'rpm -q puppet5-release-5.0.0-4.el7.noarch || sudo rpm -Uvh https://yum.puppet.com/puppet5/puppet5-release-el-7.noarch.rpm'}
- { shell: 'yum install vim git puppet-agent rubygems ruby-devel -y' }
- { shell: 'gem install r10k -v 2.6.3'}
- { shell: '[ -f /usr/bin/r10k ] || ln -s /usr/local/bin/r10k /usr/bin/r10k' }
- { shell: 'cp /home/vagrant/kube-replica-master-01/Puppetfile /tmp && cd /tmp && r10k puppetfile install --verbose' }
- { shell: 'cp /home/vagrant/kube-replica-master-01/modules/* -R /tmp/modules || true'}
-
box: bento/centos-7.5
cpu: 2
ip: "172.17.10.220"
name: kube-replica-master-02
forward_ports: []
ram: 4096
shell_commands:
- { shell: 'setenforce 0 || true'}
- { shell: 'swapoff -a'}
- { shell: 'systemctl stop firewalld && systemctl disable firewalld'}
- { shell: 'echo -e "172.17.10.210 kubernetes\n172.17.10.110 kube-replica-master-01\n172.17.10.101 kube-master\n172.17.10.102 kube-node-01\n172.17.10.103 kube-node-02">>/etc/hosts'}
- { shell: 'rpm -q puppet5-release-5.0.0-4.el7.noarch || sudo rpm -Uvh https://yum.puppet.com/puppet5/puppet5-release-el-7.noarch.rpm'}
- { shell: 'yum install vim git puppet-agent rubygems ruby-devel -y' }
- { shell: 'gem install r10k -v 2.6.3'}
- { shell: '[ -f /usr/bin/r10k ] || ln -s /usr/local/bin/r10k /usr/bin/r10k' }
- { shell: 'cp /home/vagrant/kube-replica-master-02/Puppetfile /tmp && cd /tmp && r10k puppetfile install --verbose' }
- { shell: 'cp /home/vagrant/kube-replica-master-02/modules/* -R /tmp/modules || true'}
-
box: bento/centos-7.5
cpu: 2
ip: "172.17.10.102"
name: kube-node-01
forward_ports: []
ram: 4096
shell_commands:
- { shell: 'setenforce 0 || true'}
- { shell: 'swapoff -a'}
- { shell: 'systemctl stop firewalld && systemctl disable firewalld'}
- { shell: 'echo -e "172.17.10.101 kube-master\n172.17.10.102 kube-node-01\n172.17.10.103 kube-node-02">>/etc/hosts'}
- { shell: 'rpm -q puppet5-release-5.0.0-4.el7.noarch || sudo rpm -Uvh https://yum.puppet.com/puppet5/puppet5-release-el-7.noarch.rpm'}
- { shell: 'yum install vim git puppet-agent rubygems ruby-devel -y' }
- { shell: 'gem install r10k -v 2.6.3'}
- { shell: '[ -f /usr/bin/r10k ] || ln -s /usr/local/bin/r10k /usr/bin/r10k' }
- { shell: 'cp /home/vagrant/kube-node-01/Puppetfile /tmp && cd /tmp && r10k puppetfile install --verbose' }
- { shell: 'cp /home/vagrant/kube-node-01/modules/* -R /tmp/modules || true'}
-
box: bento/centos-7.5
cpu: 2
ip: "172.17.10.103"
name: kube-node-02
forward_ports: []
ram: 4096
shell_commands:
- { shell: 'setenforce 0 || true'}
- { shell: 'swapoff -a'}
- { shell: 'systemctl stop firewalld && systemctl disable firewalld'}
- { shell: 'echo -e "172.17.10.101 kube-master\n172.17.10.102 kube-node-01\n172.17.10.103 kube-node-02">>/etc/hosts'}
- { shell: 'rpm -q puppet5-release-5.0.0-4.el7.noarch || sudo rpm -Uvh https://yum.puppet.com/puppet5/puppet5-release-el-7.noarch.rpm'}
- { shell: 'yum install vim git puppet-agent rubygems ruby-devel -y' }
- { shell: 'gem install r10k -v 2.6.3'}
- { shell: '[ -f /usr/bin/r10k ] || ln -s /usr/local/bin/r10k /usr/bin/r10k' }
- { shell: 'cp /home/vagrant/kube-node-02/Puppetfile /tmp && cd /tmp && r10k puppetfile install --verbose' }
- { shell: 'cp /home/vagrant/kube-node-02/modules/* -R /tmp/modules || true'}
-
box: bento/centos-7.5
cpu: 1
ip: "172.17.10.214"
name: lb
forward_ports: []
ram: 512
shell_commands:
- { shell: 'systemctl stop firewalld && systemctl disable firewalld'}
- { shell: 'yum install vim docker -y' }
- { shell: 'systemctl start docker'}
- { shell: 'cd /vagrant/lb && docker build -t puppet/nginx .'}
- { shell: 'docker run -d --name nginx --net=host puppet/nginx' }