-
Notifications
You must be signed in to change notification settings - Fork 20
/
servers.yaml.ubuntu
95 lines (89 loc) · 4.35 KB
/
servers.yaml.ubuntu
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
---
-
box: bento/ubuntu-18.04
cpu: 2
ip: "192.168.56.101"
name: kube-master
forward_ports:
- { guest: 22, host: 9999, id: "ssh" }
ram: 4096
shell_commands:
- { shell: 'echo -e "192.168.56.101 kubernetes\n192.168.56.101 kube-master\n192.168.56.102 kube-node-01\n192.168.56.103 kube-node-02">>/etc/hosts'}
- { shell: 'ufw disable && swapoff -a' }
- { shell: 'wget https://apt.puppetlabs.com/puppet6-release-xenial.deb && sudo dpkg -i puppet6-release-xenial.deb'}
- { shell: 'apt-get update -y && apt-get install vim git puppet-agent rubygems ruby-dev -y' }
- { shell: 'gem install 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/ubuntu-18.04
cpu: 2
ip: "192.168.56.210"
name: kube-replica-master-01
forward_ports: []
ram: 4096
shell_commands:
- { shell: 'echo -e "192.168.56.210 kubernetes\n192.168.56.210 kube-replica-master-01\n192.168.56.101 kube-master\n192.168.56.102 kube-node-01\n192.168.56.103 kube-node-02">>/etc/hosts'}
- { shell: 'ufw disable && swapoff -a' }
- { shell: 'wget https://apt.puppetlabs.com/puppet6-release-xenial.deb && sudo dpkg -i puppet6-release-xenial.deb'}
- { shell: 'apt-get update -y && apt-get install vim git puppet-agent rubygems ruby-dev -y' }
- { shell: 'gem install 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/ubuntu-18.04
cpu: 2
ip: "192.168.56.220"
name: kube-replica-master-02
forward_ports: []
ram: 4096
shell_commands:
- { shell: 'echo -e "192.168.56.220 kubernetes\n192.168.56.220 kube-replica-master-02\n192.168.56.101 kube-master\n192.168.56.102 kube-node-01\n192.168.56.103 kube-node-02">>/etc/hosts'}
- { shell: 'ufw disable && swapoff -a' }
- { shell: 'wget https://apt.puppetlabs.com/puppet6-release-xenial.deb && sudo dpkg -i puppet6-release-xenial.deb'}
- { shell: 'apt-get update -y && apt-get install vim git puppet-agent rubygems ruby-dev -y' }
- { shell: 'gem install 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/ubuntu-18.04
cpu: 2
ip: "192.168.56.102"
name: kube-node-01
forward_ports: []
ram: 4096
shell_commands:
- { shell: 'echo -e "192.168.56.101 kube-master\n192.168.56.102 kube-node-01\n192.168.56.103 kube-node-02">>/etc/hosts'}
- { shell: 'ufw disable && swapoff -a' }
- { shell: 'wget https://apt.puppetlabs.com/puppet6-release-xenial.deb && sudo dpkg -i puppet6-release-xenial.deb'}
- { shell: 'apt-get update -y && apt-get install vim git puppet-agent rubygems ruby-dev -y' }
- { shell: 'gem install 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/ubuntu-18.04
cpu: 2
ip: "192.168.56.103"
name: kube-node-02
forward_ports: []
ram: 4096
shell_commands:
- { shell: 'echo -e "192.168.56.101 kube-master\n192.168.56.102 kube-node-01\n192.168.56.103 kube-node-02">>/etc/hosts'}
- { shell: 'ufw disable && swapoff -a' }
- { shell: 'wget https://apt.puppetlabs.com/puppet6-release-xenial.deb && sudo dpkg -i puppet6-release-xenial.deb'}
- { shell: 'apt-get update -y && apt-get install vim git puppet-agent rubygems ruby-dev -y' }
- { shell: 'gem install 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/ubuntu-18.04
cpu: 1
ip: "192.168.56.214"
name: lb
forward_ports: []
ram: 512
shell_commands:
- { shell: 'ufw disable' }
- { shell: 'apt-get update -y && apt-get install vim docker.io -y' }
- { shell: 'cd /vagrant/lb && docker build -t puppet/nginx .'}
- { shell: 'docker run -d --name nginx --net=host puppet/nginx' }