diff --git a/bigtop-deploy/puppet/modules/ranger/manifests/init.pp b/bigtop-deploy/puppet/modules/ranger/manifests/init.pp index 7af0a035b7..6bca3b7b05 100644 --- a/bigtop-deploy/puppet/modules/ranger/manifests/init.pp +++ b/bigtop-deploy/puppet/modules/ranger/manifests/init.pp @@ -61,7 +61,8 @@ exec { 'change_postgres_password': path => ['/usr/bin', '/bin','/sbin'], - command => "sudo -u postgres psql -c \"ALTER USER postgres WITH PASSWORD 'admin';\"", + command => "psql -c \"ALTER USER postgres WITH PASSWORD 'admin';\"", + user => 'postgres', require => Service['postgresql'], }