Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cobbler_proxy_url to allow installation via a proxy. #38

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ cobbler_configure_repos: false
# Cobbler GPG Key
# cobbler_gpg_key: 'https://download.opensuse.org/repositories/systemsmanagement/CentOS_7/repodata/repomd.xml.key'

# Define a proxy for the installation if necessary.
# cobbler_proxy_url: http://192.168.0.100:3128

# Credentials for the cobbler API
cobbler_api_username: cobbler
cobbler_api_password: CHANGEME
Expand Down
2 changes: 1 addition & 1 deletion templates/templates/debian.seed.j2
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ $SNIPPET('netcfg')
d-i mirror/country string manual
d-i mirror/http/hostname string $install_source_hostname
d-i mirror/http/directory string $install_source_directory
d-i mirror/http/proxy string
d-i mirror/http/proxy string {% if cobbler_proxy_url is defined %}{{ cobbler_proxy_url }}{% endif +%}

# Suite to install.
#d-i mirror/suite string testing
Expand Down
2 changes: 1 addition & 1 deletion templates/templates/rhel.ks.j2
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ keyboard us
# System language
lang en_US.UTF-8
# Use network installation
url --url=$tree
url --url=$tree {% if cobbler_proxy_url is defined %}--proxy={{ cobbler_proxy_url }}{% endif +%}
# If any cobbler repo definitions were referenced in the kickstart profile, include them here.
$yum_repo_stanza
# Network information
Expand Down
Loading