Skip to content

Commit

Permalink
Define $user referenced in db.pp
Browse files Browse the repository at this point in the history
In db.pp, in the exec 'ceilometer dbsync' ressource the user
is supposed to be $::ceilometer::params::user, but it was
not defined.

Change-Id: I812b6ba2877faddfce86d3c97b95772b0d22d368
  • Loading branch information
Spredzy committed Feb 21, 2014
1 parent 1aa1d79 commit e6c1911
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/db.pp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
exec { 'ceilometer-dbsync':
command => $command,
path => '/usr/bin',
user => $::ceilometer::params::username,
user => $::ceilometer::params::user,
refreshonly => true,
logoutput => on_failure,
subscribe => Ceilometer_config['database/connection']
Expand Down
1 change: 1 addition & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

$dbsync_command = 'ceilometer-dbsync --config-file=/etc/ceilometer/ceilometer.conf'
$expirer_command = 'ceilometer-expirer'
$user = 'ceilometer'

case $::osfamily {
'RedHat': {
Expand Down
5 changes: 5 additions & 0 deletions spec/classes/ceilometer_db_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
:command => 'ceilometer-dbsync --config-file=/etc/ceilometer/ceilometer.conf',
:path => '/usr/bin',
:refreshonly => 'true',
:user => 'ceilometer',
:logoutput => 'on_failure'
)
end
Expand Down Expand Up @@ -60,6 +61,7 @@
:command => '/bin/true',
:path => '/usr/bin',
:refreshonly => 'true',
:user => 'ceilometer',
:logoutput => 'on_failure'
)
end
Expand Down Expand Up @@ -92,6 +94,7 @@
:command => 'ceilometer-dbsync --config-file=/etc/ceilometer/ceilometer.conf',
:path => '/usr/bin',
:refreshonly => 'true',
:user => 'ceilometer',
:logoutput => 'on_failure'
)
end
Expand Down Expand Up @@ -125,6 +128,7 @@
:command => '/bin/true',
:path => '/usr/bin',
:refreshonly => 'true',
:user => 'ceilometer',
:logoutput => 'on_failure'
)
end
Expand Down Expand Up @@ -154,6 +158,7 @@
:command => 'ceilometer-dbsync --config-file=/etc/ceilometer/ceilometer.conf',
:path => '/usr/bin',
:refreshonly => 'true',
:user => 'ceilometer',
:logoutput => 'on_failure'
)
end
Expand Down

0 comments on commit e6c1911

Please sign in to comment.