puppet: Set correct permissions for supervisor.sock.

We can't do this with a "file" entry because it doesn't handle objects
of type socket.

(imported from commit 5f0f79f1a7905c4d70cc7e2f4c474b0629841c12)
This commit is contained in:
Tim Abbott
2013-08-20 11:00:19 -04:00
parent 65520d99b8
commit a8e28bb99a

View File

@@ -20,4 +20,10 @@ class zulip::supervisor {
hasrestart => true, hasrestart => true,
restart => "supervisorctl reload" restart => "supervisorctl reload"
} }
exec { "fix_supervisor_socket_permissions":
command => "chown humbug:humbug /var/run/supervisor.sock",
unless => "bash -c 'ls -ld /var/run/supervisor.sock | cut -f 3-4 -d\" \" | grep -q \"^humbug humbug$\"'",
require => Service["supervisor"],
}
} }