Pastebin

Paste #2500: None

< previous paste - next paste>

Pasted by tdn@malbec

Download View as text

## Configuration definitions for nodes/newCorp/webfront
import "public/service/apache2"
import "public/config/php5"

IP = "192.168.42.133"

[settings.public/config/hostname]
hostname = "webfront"

[apt]
# Install PHP5, PhpMyAdmin, PHP-PEAR
install += ["phpmyadmin", "libapache2-mod-php5", "php-pear"]
# Support for GeoIP in PHP
install += ["geoip-bin", "php5-geoip"]
# Install cronolog
install += "cronolog"

# System group for developers
[unixgroup.devs]
gid = 2000

# System user for Joe Coder
[unixuser.joecoder]
uid = 1000
gid = 2000
gecos = "Joe Coder"

[settings.public/config/network]
iface["eth0"] = dict( address = IP, 
                      netmask = "255.255.255.0", 
                      gateway = "192.168.42.1")
iface["eth1"] = dict( address = "192.168.42.88", 
                      netmask = "255.255.255.0")

# Apache configuration
[settings.public/service/apache2]
log_dir = "/data/www/log"
namevirtualhost += [IP + ":80"]
namevirtualhost += [IP + ":443"]
mods_enable  += "ssl"
sites_enable += "000-default"
sites_enable += "newcorp.com"
sites_enable += "adm.newcorp.com"
sites_enable += "dev.newcorp.com"
sites_enable += "shop.newcorp.com"

[settings.public/config/tcpwrapper]
# Allow ssh access from HQ
allow_hosts_sshd += "192.168.42.10"
allow_hosts_sshd += "192.168.42.12"

# Firewall rules
[settings.public/config/firewall]
tcp_ports += "22"
tcp_ports += "80"
tcp_ports += "443"

New Paste


Do not write anything in this field if you're a human.

Go to most recent paste.