Skip to content

Instantly share code, notes, and snippets.

@pwood
Created March 31, 2010 18:28
Show Gist options
  • Save pwood/350688 to your computer and use it in GitHub Desktop.
Save pwood/350688 to your computer and use it in GitHub Desktop.
[root@nebula /usr/data/jails]# ./create_jail.rb
Alastria Networks Limited Jail Creator
Enter FQDN: midnightsyndicate.eu
Availible bases: [20100318]
Which base? [20100318]:
Availible ports: [20100318]
Which port? [20100318]:
Choose shared resources:
Include 'dns' [y/N]?
Include 'domains' [y/N]?
Include 'home' [y/N]?
Include 'mail' [y/N]?
Include 'mysql' [y/N]?
Loopback Private IP: 10.1.1.166
Public IP (if any): 89.238.171.166
Process complete, please confirm options before proceeding.
FQDN: midnightsyndicate.eu
Base: 20100318
Ports: 20100318
Shared:
Private IP: 10.1.1.166
Public IP: 89.238.171.166
Are these details correct? [y/n] y
Here we go...
1. Creating directories...
2. Updating /etc/fstab...
3. Updating /etc/rc.conf
4. Mounting...
Jail created, do you wish to start it? [y/n]y
Configuring jails:.
Starting jails: midnightsyndicate.eu.
true
[root@nebula /usr/data/jails]#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment