Added mirantis-epel-fuel to centos kickstart in cobbler
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
|
||||
class cobbler::distro::centos63_x86_64(
|
||||
$http_iso = 'http://download.mirantis.com/epel-fuel-folsom-2.1/CentOS-6.3-x86_64-minimal.iso',
|
||||
$ks_url = 'http://download.mirantis.com/epel-fuel-folsom-2.1/mirror.external.list'
|
||||
$ks_url = 'http://download.mirantis.com/epel-fuel-folsom-2.1'
|
||||
) {
|
||||
|
||||
Exec {path => '/usr/bin:/bin:/usr/sbin:/sbin'}
|
||||
|
||||
@@ -29,6 +29,10 @@ class cobbler::profile::centos63_x86_64(
|
||||
{
|
||||
"name" => "Mirantis-CentOS-minimal",
|
||||
"url" => "http://download.mirantis.com/centos-minimal",
|
||||
},
|
||||
{
|
||||
"name" => "Mirantis-epel-fuel-install",
|
||||
"url" => "http://download.mirantis.com/epel-fuel-folsom-2.1",
|
||||
}
|
||||
],
|
||||
|
||||
|
||||
@@ -99,14 +99,21 @@ puppet apply -e '
|
||||
} '
|
||||
|
||||
# Configuring squid with or without parent proxy
|
||||
[ -n "$parent_proxy" ] && IFS=: read server port <<< "$parent_proxy"
|
||||
puppet apply -e "
|
||||
\$squid_cache_parent = \"$server\"
|
||||
\$squid_cache_parent_port = \"$port\"
|
||||
class { squid: }"
|
||||
if [[ -n "$parent_proxy" ]];then
|
||||
IFS=: read server port <<< "$parent_proxy"
|
||||
puppet apply -e "
|
||||
\$squid_cache_parent = \"$server\"
|
||||
\$squid_cache_parent_port = \"$port\"
|
||||
class { squid: }"
|
||||
else
|
||||
puppet apply -e "class { squid: }"
|
||||
fi
|
||||
|
||||
iptables -A PREROUTING -t nat -i $mgmt_if -s $mgmt_ip/$mgmt_mask ! -d $mgmt_ip -p tcp --dport 80 -j REDIRECT --to-port 3128
|
||||
|
||||
/etc/init.d/iptables save
|
||||
|
||||
|
||||
gem install /var/www/astute-0.0.1.gem
|
||||
|
||||
cp `find / -name config.yaml -print0 | grep -FzZ 'samples/config.yaml'` /root
|
||||
|
||||
Reference in New Issue
Block a user