Revision 419295eb
Added by gcoxmoz about 4 years ago
manifests/admin.pp | ||
---|---|---|
Stdlib::Absolutepath $static_root = $pulpcore::pulp_static_root,
|
||
) {
|
||
Concat <| title == 'pulpcore settings' |>
|
||
-> exec { "python3-django-admin ${title}":
|
||
-> exec { "python3-django-admin ${command}":
|
||
path => $path,
|
||
environment => [
|
||
'DJANGO_SETTINGS_MODULE=pulpcore.app.settings',
|
spec/defines/admin_spec.rb | ||
---|---|---|
|
||
it do
|
||
is_expected.to compile.with_all_deps
|
||
is_expected.to contain_exec('python3-django-admin help')
|
||
is_expected.to contain_exec('python3-django-admin migrate --noinput')
|
||
.with_environment([
|
||
'DJANGO_SETTINGS_MODULE=pulpcore.app.settings',
|
||
'PULP_SETTINGS=/etc/pulpcore/settings.py',
|
Also available in: Unified diff
Update pulpcore::admin to use the command parameter if it is passed (#91)
Update pulpcore::admin to use the command parameter if it is passed