-
Notifications
You must be signed in to change notification settings - Fork 14
/
servers.yaml
101 lines (91 loc) · 5.34 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
---
-
#box: scottyc/centos-7-puppet-kernel-4-4
box: puppetlabs/centos-7.2-64-puppet
cpu: 1
ip: "172.17.8.101"
name: swarm-101
forward_ports:
- { guest: 8500, host: 9501 }
- { guest: 80, host: 8001 }
- { guest: 443, host: 8441 }
- { guest: 8080, host: 8081 }
ram: 4096
shell_commands:
- { shell: 'yum install -y rubygems ruby-devel git wget curl lvm2 unzip device-mapper-libs && systemctl stop firewalld && systemctl disable firewalld' }
- { shell: 'echo -e "PEERDNS=no\nDNS1=127.0.0.1\nDNS2=8.8.8.8">>/etc/sysconfig/network-scripts/ifcfg-enp0s3 && systemctl restart network'}
- { shell: 'echo -e "PEERDNS=no\nDNS1=127.0.0.1\nDNS2=8.8.8.8">>/etc/sysconfig/network-scripts/ifcfg-enp0s8 && systemctl restart network'}
- { shell: 'gem install puppet_forge -v 2.2.6 && gem install r10k'}
- { shell: 'echo -e "172.17.8.101 swarm-101">/etc/hosts && echo "PATH=\$PATH:/usr/local/bin" >> ~/.bashrc' }
- { shell: 'cp /home/vagrant/swarm-101/Puppetfile /tmp && cd /tmp && r10k puppetfile install -v' }
- { shell: 'cp /home/vagrant/swarm-101/modules/* -R /tmp/modules' }
-
box: puppetlabs/centos-7.2-64-puppet
cpu: 1
ip: "172.17.8.102"
name: swarm-102
forward_ports:
- { guest: 8500, host: 9502 }
- { guest: 80, host: 8002 }
- { guest: 443, host: 8442 }
- { guest: 8080, host: 8082 }
ram: 4096
shell_commands:
- { shell: 'yum install -y rubygems ruby-devel git wget curl lvm2 device-mapper-libs unzip && systemctl stop firewalld && systemctl disable firewalld' }
- { shell: 'echo -e "PEERDNS=no\nDNS1=127.0.0.1\nDNS2=8.8.8.8">>/etc/sysconfig/network-scripts/ifcfg-enp0s3 && systemctl restart network'}
- { shell: 'echo -e "PEERDNS=no\nDNS1=127.0.0.1\nDNS2=8.8.8.8">>/etc/sysconfig/network-scripts/ifcfg-enp0s8 && systemctl restart network'}
- { shell: 'gem install puppet_forge -v 2.2.6 && gem install r10k' }
- { shell: 'echo -e "172.17.8.101 swarm-101\n172.17.8.102 swarm-102">/etc/hosts && echo "PATH=\$PATH:/usr/local/bin" >> ~/.bashrc' }
- { shell: 'cp /home/vagrant/swarm-102/Puppetfile /tmp && cd /tmp && r10k puppetfile install -v' }
- { shell: 'cp /home/vagrant/swarm-102/modules/* -R /tmp/modules' }
-
box: puppetlabs/centos-7.2-64-puppet
cpu: 1
ip: "172.17.8.103"
name: swarm-103
forward_ports:
- { guest: 8500, host: 9503 }
- { guest: 80, host: 8003 }
- { guest: 443, host: 8443 }
- { guest: 8080, host: 8083 }
ram: 4096
shell_commands:
- { shell: 'yum install -y rubygems ruby-devel git wget curl lvm2 unzip device-mapper-libs && systemctl stop firewalld && systemctl disable firewalld' }
- { shell: 'echo -e "PEERDNS=no\nDNS1=127.0.0.1\nDNS2=8.8.8.8">>/etc/sysconfig/network-scripts/ifcfg-enp0s3 && systemctl restart network'}
- { shell: 'echo -e "PEERDNS=no\nDNS1=127.0.0.1\nDNS2=8.8.8.8">>/etc/sysconfig/network-scripts/ifcfg-enp0s8 && systemctl restart network'}
- { shell: 'gem install puppet_forge -v 2.2.6 && gem install r10k' }
- { shell: 'echo -e "172.17.8.101 swarm-101\n172.17.8.103 swarm-103">/etc/hosts && echo "PATH=\$PATH:/usr/local/bin" >> ~/.bashrc' }
- { shell: 'cp /home/vagrant/swarm-103/Puppetfile /tmp && cd /tmp && r10k puppetfile install -v' }
- { shell: 'cp /home/vagrant/swarm-103/modules/* -R /tmp/modules' }
-
box: puppetlabs/centos-7.2-64-puppet
cpu: 1
ip: "172.17.8.114"
name: swarm-master-01
forward_ports:
- { guest: 8500, host: 9504 }
ram: 2048
shell_commands:
- { shell: 'yum install -y rubygems ruby-devel git wget curl lvm2 unzip device-mapper-libs && systemctl stop firewalld && systemctl disable firewalld' }
- { shell: 'echo -e "PEERDNS=no\nDNS1=127.0.0.1\nDNS2=8.8.8.8">>/etc/sysconfig/network-scripts/ifcfg-enp0s3 && systemctl restart network'}
- { shell: 'echo -e "PEERDNS=no\nDNS1=127.0.0.1\nDNS2=8.8.8.8">>/etc/sysconfig/network-scripts/ifcfg-enp0s8 && systemctl restart network'}
- { shell: 'gem install puppet_forge -v 2.2.6 && gem install r10k' }
- { shell: 'echo -e "172.17.8.101 swarm-101\n172.17.8.114 swarm-master-01">/etc/hosts && echo "PATH=\$PATH:/usr/local/bin" >> ~/.bashrc' }
- { shell: 'cp /home/vagrant/swarm-master-01/Puppetfile /tmp && cd /tmp && r10k puppetfile install -v' }
- { shell: 'cp /home/vagrant/swarm-master-01/modules/* -R /tmp/modules' }
-
box: puppetlabs/centos-7.2-64-puppet
cpu: 1
ip: "172.17.8.115"
name: swarm-master-02
forward_ports:
- { guest: 8500, host: 9505 }
ram: 2048
shell_commands:
- { shell: 'yum install -y rubygems ruby-devel git wget curl lvm2 unzip device-mapper-libs && systemctl stop firewalld && systemctl disable firewalld' }
- { shell: 'echo -e "PEERDNS=no\nDNS1=127.0.0.1\nDNS2=8.8.8.8">>/etc/sysconfig/network-scripts/ifcfg-enp0s3 && systemctl restart network'}
- { shell: 'echo -e "PEERDNS=no\nDNS1=127.0.0.1\nDNS2=8.8.8.8">>/etc/sysconfig/network-scripts/ifcfg-enp0s8 && systemctl restart network'}
- { shell: 'gem install puppet_forge -v 2.2.6 && gem install r10k' }
- { shell: 'echo -e "172.17.8.101 swarm-101\n172.17.8.115 swarm-master-02">/etc/hosts && echo "PATH=\$PATH:/usr/local/bin" >> ~/.bashrc' }
- { shell: 'cp /home/vagrant/swarm-master-02/Puppetfile /tmp && cd /tmp && r10k puppetfile install -v' }
- { shell: 'cp /home/vagrant/swarm-master-02/modules/* -R /tmp/modules' }