
In 2940279 management of the apache vhost was split into a separate class and the vhost_name parameter was removed from the bandersnatch::mirror class. This wasn't done in a backwards compatible way and the acceptance tests were never updated to use the new API. Additionally, a88c399 split the bandersnatch cron job out of the mirror class into its own class, so the test for the existence of the job was failing. This patch updates the tests to use the new classes and to stop using the now invalid parameter. We also relax some of the internal system assertions and opt instead for checking that the service is working correctly by curling the endpoints and checking the contents. This exposed an issue on CentOS where selinux was not allowing apache to serve the robots.txt file, so also added an selinux rule to the fixture. Change-Id: If724c51b72f634a95bbffd080a9d33234a5d7645
21 lines
636 B
Puppet
21 lines
636 B
Puppet
# Installing pip since bandersnatch dependencies are managed by it
|
|
exec { 'download get-pip.py':
|
|
command => 'wget https://bootstrap.pypa.io/get-pip.py -O /tmp/get-pip.py',
|
|
path => '/bin:/usr/bin:/usr/local/bin',
|
|
creates => '/tmp/get-pip.py',
|
|
}
|
|
|
|
exec { 'install pip using get-pip':
|
|
command => 'python /tmp/get-pip.py',
|
|
path => '/bin:/usr/bin:/usr/local/bin',
|
|
refreshonly => true,
|
|
subscribe => Exec['download get-pip.py'],
|
|
}
|
|
|
|
# Install selinux utils so that we can manage apache directory permissions for CentOS
|
|
if $::osfamily == 'RedHat' {
|
|
package { 'policycoreutils-python':
|
|
ensure => present,
|
|
}
|
|
}
|