Foreman on ubuntu: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Thomas (Diskussion | Beiträge) |
Thomas (Diskussion | Beiträge) |
||
| Zeile 1: | Zeile 1: | ||
| + | =requirements= | ||
| + | */etc/network/interface | ||
| + | <pre> | ||
| + | auto lo | ||
| + | iface lo inet loopback | ||
| + | |||
| + | auto eth0 | ||
| + | iface eth0 inet static | ||
| + | address 192.168.252.5 | ||
| + | netmask 255.255.255.0 | ||
| + | gateway 192.168.252.1 | ||
| + | dns-nameservers 192.168.240.200 | ||
| + | dns-search xinux.org | ||
| + | </pre> | ||
| + | |||
| + | |||
| + | |||
| + | |||
=Install and configure isc-dhcp-server= | =Install and configure isc-dhcp-server= | ||
*apt-get install isc-dhcp-server | *apt-get install isc-dhcp-server | ||
Version vom 13. November 2015, 10:51 Uhr
requirements
- /etc/network/interface
auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 192.168.252.5 netmask 255.255.255.0 gateway 192.168.252.1 dns-nameservers 192.168.240.200 dns-search xinux.org
Install and configure isc-dhcp-server
- apt-get install isc-dhcp-server
sample config
ddns-update-style interim;
ignore client-updates;
authoritative;
allow booting;
allow bootp;
omapi-port 7911;
key omapi_key {
algorithm HMAC-MD5;
secret "2wgoV3yukKdKMkmOzOn/hIsM97QgLTT4CLVzg9Zv0sWOSe1yxPxArmr7a/xb5DOJTm5e/9zGgtzL9FKna0NWis==";
}
omapi-key omapi_key;
subnet 192.168.252.0 netmask 255.255.255.0 {
option routers 192.168.252.1;
option subnet-mask 255.255.255.0;
option domain-name "xinux.org";
option domain-name-servers 192.168.240.200;
range dynamic-bootp 192.168.252.10 192.168.252.30;
default-lease-time 21600;
max-lease-time 43200;
}
Install Foreman
Repositories
- apt-get -y install ca-certificates
- wget https://apt.puppetlabs.com/puppetlabs-release-trusty.deb
- dpkg -i puppetlabs-release-trusty.deb
Enable the Foreman repo
- echo "deb http://deb.theforeman.org/ trusty 1.9" > /etc/apt/sources.list.d/foreman.list
- echo "deb http://deb.theforeman.org/ plugins 1.9" >> /etc/apt/sources.list.d/foreman.list
- wget -q http://deb.theforeman.org/pubkey.gpg -O- | apt-key add -
Downloading the installer
- apt-get update && apt-get -y install foreman-installer