Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

Commit

Permalink
(IMAGES-801) Add the load balancer repo to redhat-6-x86_64 images
Browse files Browse the repository at this point in the history
Puppet modules testing CI requires the haproxy package, which is offered
via the lb (load balancer) repo. This is only required for the
redhat-6-x86_64 platform.
  • Loading branch information
ScottGarman committed Apr 12, 2018
1 parent 75e1d9e commit f6c1dc1
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
11 changes: 11 additions & 0 deletions manifests/modules/packer/manifests/repos.pp
Expand Up @@ -46,6 +46,17 @@
gpgcheck => "1",
gpgkey => "file:///etc/pki/rpm-gpg/${gpgkey}"
}

# We add the lb (load balancer) repo for redhat-6-x86_64 which is
# used in puppet modules testing
if $::operatingsystemmajrelease == "6" and $::architecture == "x86_64" {
yumrepo { "localmirror-lb":
descr => "localmirror-lb",
baseurl => "${base_url}/lb",
gpgcheck => "1",
gpgkey => "file:///etc/pki/rpm-gpg/${gpgkey}"
}
}
}

}
11 changes: 11 additions & 0 deletions manifests/modules/packer/manifests/vsphere/repos.pp
Expand Up @@ -129,6 +129,17 @@
gpgcheck => "1",
gpgkey => "file:///etc/pki/rpm-gpg/${gpgkey}"
}

# We add the lb (load balancer) repo for redhat-6-x86_64 which is
# used in puppet modules testing
if $::operatingsystemmajrelease == "6" and $::architecture == "x86_64" {
yumrepo { "localmirror-lb":
descr => "localmirror-lb",
baseurl => "${base_url}/lb",
gpgcheck => "1",
gpgkey => "file:///etc/pki/rpm-gpg/${gpgkey}"
}
}
}

if $::operatingsystem == 'CentOS' {
Expand Down
2 changes: 1 addition & 1 deletion templates/redhat/6.8/x86_64/vars.json
Expand Up @@ -2,7 +2,7 @@
"template_name" : "redhat-6.8-x86_64",
"template_os" : "rhel6-64",
"beakerhost" : "redhat6-64",
"version" : "0.0.3",
"version" : "0.0.4",
"iso_url" : "https://artifactory.delivery.puppetlabs.net/artifactory/generic/iso/rhel-server-6.8-x86_64-dvd.iso",
"iso_checksum" : "d35fd1af20f6adef9b11b46c2534ae8b6e18de7754889e2b51808b436dff2804",
"iso_checksum_type" : "sha256",
Expand Down

0 comments on commit f6c1dc1

Please sign in to comment.