| Line 18: |
Line 18: |
| | When provisioning a new server | | When provisioning a new server |
| | | | |
| − | * check the VM is setup (cpu/mem/disk) as it should be, if not contact the provider. | + | * check the VM is setup (cpu/mem/disk) as it should be, if not contact the provider |
| − | <code>
| + | |
| | cat /proc/cpuinfo |grep processor | | cat /proc/cpuinfo |grep processor |
| | processor : 0 | | processor : 0 |
| Line 25: |
Line 25: |
| | processor : 2 | | processor : 2 |
| | processor : 3 | | processor : 3 |
| − | </code>
| + | |
| | | | |
| | * on the server install python (apt-get install python). This is needed for the ansibile provisioning | | * on the server install python (apt-get install python). This is needed for the ansibile provisioning |
| Line 38: |
Line 38: |
| | === Mandatory Configs === | | === Mandatory Configs === |
| | | | |
| − | * The network should be configured to use /etc/network/interfaces | + | * The network should be configured to use /etc/network/interfaces, and add DNS and the firewall to it and search in the allstarlink.org domain |
| | + | |
| | + | # The primary network interface |
| | + | auto eth0 |
| | + | iface eth0 inet static |
| | + | address 44.103.0.49 |
| | + | netmask 255.255.255.0 |
| | + | network 44.103.0.0 |
| | + | broadcast 44.103.0.255 |
| | + | gateway 44.103.0.1 |
| | + | dns-nameservers 44.103.0.4 1.1.1.1 |
| | + | dns-search allstarlink.org |
| | + | up /etc/network/firewall.sh |
| | + | |
| | + | |
| | | | |
| | * There is typically only one network interface, and it will be named dynamically. We must setup this using udev to be persistant | | * There is typically only one network interface, and it will be named dynamically. We must setup this using udev to be persistant |
| | | | |
| − | <code>
| |
| | root@server# ifconfig |grep HWaddr | | root@server# ifconfig |grep HWaddr |
| | eth0 Link encap:Ethernet HWaddr 52:54:00:73:86:06 | | eth0 Link encap:Ethernet HWaddr 52:54:00:73:86:06 |
| − | </code>
| + | |
| | Now take this HWaddr and put it in the config file | | Now take this HWaddr and put it in the config file |
| − | <code>
| + | echo 'SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="52:54:00:73:86:06", ATTR{dev_id}=="0x0", ATTR{type}=="1", NAME="eth0"' >/etc/udev/rules.d/70-persistent-net.rules |
| − | echo 'SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="52:54:00:73:86:06", ATTR{dev_id}=="0x0", ATTR{type}=="1", NAME="eth0"' >/etc/udev/rules.d/70-persistent-net.rules | |
| − | </code>
| |