Fix pbr build problem. Thanks Drimty Ilyin

Change-Id: If8b52a101c02816073978ca8a263ada48c737779
This commit is contained in:
Vladimir Sharshov 2014-02-06 14:25:31 +04:00
parent 71559b7f3e
commit 32a805d30f
3 changed files with 21 additions and 15 deletions

View File

@ -92,4 +92,3 @@ node default {
Class['postgresql::server'] -> Class['nailgun']
}

View File

@ -41,19 +41,19 @@ class nailgun::ostf(
group => 'root',
mode => 0755,
}->
nailgun::venv::pip { 'setuptools-git':
nailgun::venv::pip { "${venv}_setuptools-git":
package => 'setuptools-git==1.0',
}->
nailgun::venv::pip { 'd2to1':
nailgun::venv::pip { "${venv}_d2to1":
package => 'd2to1==0.2.10',
}->
nailgun::venv::pip { 'pbr':
nailgun::venv::pip { "${venv}_pbr":
package => 'pbr==0.5.21',
}->
nailgun::venv::pip { 'ostf-req':
nailgun::venv::pip { "${venv}_ostf-req":
package => "-r $venv/pip-requires.txt",
}->
nailgun::venv::pip { 'ostf':
nailgun::venv::pip { "${venv}_ostf":
package => 'fuel-ostf',
}
exec {'ostf-init':
@ -63,9 +63,9 @@ class nailgun::ostf(
--after-initialization-environment-hook || /bin/true",
require => [
Postgresql::Db[$dbname],
Nailgun::Venv::Pip['ostf-req'],
Nailgun::Venv::Pip['ostf'],
Nailgun::Venv::Pip["${venv}_ostf-req"],
Nailgun::Venv::Pip["${venv}_ostf"],
],
before => Class['nailgun::supervisor'],
}
}
}

View File

@ -53,11 +53,18 @@ class nailgun::venv(
venv => $venv,
}
nailgun::venv::pip { "$venv_$package":
nailgun::venv::pip { "${venv}_${package}":
package => "$package==$version",
}
nailgun::venv::pip { "psycopg2":
nailgun::venv::pip { "${venv}_pbr":
package => "pbr==0.5.21",
require => [
Nailgun::Venv::Venv[$venv],
],
}
nailgun::venv::pip { "${venv}_psycopg2":
package => "psycopg2==2.4.6",
require => [
Package["postgresql-devel"],
@ -89,15 +96,15 @@ class nailgun::venv(
file { "/usr/local/bin/fuel":
ensure => link,
target => "/opt/nailgun/bin/fuel",
require => Nailgun::Venv::Pip["$venv_$package"],
require => Nailgun::Venv::Pip["${venv}_${package}"],
}
exec {"nailgun_syncdb":
command => "${venv}/bin/nailgun_syncdb",
require => [
File["/etc/nailgun/settings.yaml"],
Nailgun::Venv::Pip["$venv_$package"],
Nailgun::Venv::Pip["psycopg2"],
Nailgun::Venv::Pip["${venv}_${package}"],
Nailgun::Venv::Pip["${venv}_psycopg2"],
Class["nailgun::database"],
],
}
@ -114,4 +121,4 @@ class nailgun::venv(
mode => 0644
}
}
}