puppet-jeepyb/manifests/init.pp
Paul Belanger dbfd559052 Revert "Remove python-six on centos"
It seems after 7.4 point release, python-six is used my other packages beside cloud-init (specifically libstoragemgmt). For now, revert so we can get puppet working again. Then start discussions on creating DIB images for control plane servers.

This reverts commit 5c956c5995.

Change-Id: Iff7723b24eaa9aed207efd330fc0ae756020a072
2018-01-08 16:34:00 +00:00

87 lines
1.8 KiB
Puppet

# == Class: jeepyb
#
class jeepyb (
$git_source_repo = 'https://git.openstack.org/openstack-infra/jeepyb',
$git_revision = 'master',
) {
case $::osfamily {
'Debian': {
$jeepyb_packages = [
'gcc',
'libxml2-dev',
'libxslt1-dev',
'libffi-dev',
'libssl-dev'
]
@package { $jeepyb_packages:
ensure => present,
}
realize (
Package['gcc'],
Package['libxml2-dev'],
Package['libxslt1-dev'],
Package['libffi-dev'],
Package['libssl-dev'],
)
$remove_packages = [
'python-paramiko',
]
package { $remove_packages:
ensure => absent,
}
}
'RedHat': {
$jeepyb_packages = [
'gcc',
'libxml2-devel',
'libxslt-devel',
'libffi-devel',
'openssl-devel'
]
@package { $jeepyb_packages:
ensure => present,
}
realize (
Package['gcc'],
Package['libxml2-devel'],
Package['libxslt-devel'],
Package['libffi-devel'],
Package['openssl-devel'],
)
$remove_packages = [
'python-paramiko',
]
package { $remove_packages:
ensure => absent,
}
}
default: {
fail("Unsupported osfamily: ${::osfamily} The 'jeepyb' module only supports osfamily Debian or RedHat.")
}
}
vcsrepo { '/opt/jeepyb':
ensure => latest,
provider => git,
revision => $git_revision,
source => $git_source_repo,
}
exec { 'install_jeepyb' :
command => 'pip install -U /opt/jeepyb',
path => '/usr/local/bin:/usr/bin:/bin/',
refreshonly => true,
subscribe => [Vcsrepo['/opt/jeepyb'], Package[$remove_packages]],
logoutput => true,
require => [Package[$jeepyb_packages], Package[$remove_packages]]
}
}