Glauco Oliveira 0258a70c25 Add acceptance tests for puppet-bandersnatch
Add acceptance tests for puppet-bandersnatch module so that once the
module is applied we check if files were created, packages were
installed and services were started.

Change-Id: Iaa1e27842351d834d469f76d5aabe54ff49bd089
Co-Authored-By: Bruno Tavares <btavare@thoughtworks.com>
2015-10-15 18:01:48 -03:00

14 lines
453 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'],
}