Faidon Liambotis has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/235046

Change subject: openstack: fix non-capitalized resource references
......................................................................

openstack: fix non-capitalized resource references

Fixes deprecation notices.

Change-Id: Ia7e7bd6a267ec8fbe923d8d660db883950a3c006
---
M modules/openstack/manifests/glance/service.pp
1 file changed, 7 insertions(+), 7 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/46/235046/1

diff --git a/modules/openstack/manifests/glance/service.pp 
b/modules/openstack/manifests/glance/service.pp
index d3ab79a..8ace66e 100644
--- a/modules/openstack/manifests/glance/service.pp
+++ b/modules/openstack/manifests/glance/service.pp
@@ -81,7 +81,7 @@
     }
 
     ssh::userkey { 'glancesync':
-        require => user['glancesync'],
+        require => User['glancesync'],
         ensure  => present,
         content => secret('ssh/glancesync/glancesync.pub'),
     }
@@ -90,7 +90,7 @@
         owner   => 'glancesync',
         group   => 'glance',
         mode    => '0700',
-        require => user['glancesync'],
+        require => User['glancesync'],
     }
     file { '/home/glancesync/.ssh/id_rsa':
         content => secret('ssh/glancesync/glancesync.key'),
@@ -101,10 +101,10 @@
     }
     if $spare_glance_host != hiera('labs_nova_controller') {
         cron { 'rsync_glance_images':
-            command     => "/usr/bin/rsync -aS ${image_datadir}/* 
${spare_glance_host}:${image_datadir}/",
-            minute      => 15,
-            user        => 'glancesync',
-            require => user['glancesync'],
+            command => "/usr/bin/rsync -aS ${image_datadir}/* 
${spare_glance_host}:${image_datadir}/",
+            minute  => 15,
+            user    => 'glancesync',
+            require => User['glancesync'],
         }
     } else {
         # If the primary and the spare are the same, it's not useful to sync
@@ -116,6 +116,6 @@
         command     => "chown -R glance ${image_datadir}/*",
         minute      => 30,
         user        => 'root',
-        require     => cron['rsync_glance_images'],
+        require     => Cron['rsync_glance_images'],
     }
 }

-- 
To view, visit https://gerrit.wikimedia.org/r/235046
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia7e7bd6a267ec8fbe923d8d660db883950a3c006
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Faidon Liambotis <fai...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to