]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
try ssl for management
authorStephen Gran <steve@lobefin.net>
Tue, 10 Sep 2013 21:11:17 +0000 (22:11 +0100)
committerStephen Gran <steve@lobefin.net>
Tue, 10 Sep 2013 21:11:24 +0000 (22:11 +0100)
Signed-off-by: Stephen Gran <steve@lobefin.net>
modules/roles/files/pubsub/rabbitmq-mgmt.config [new file with mode: 0644]
modules/roles/manifests/pubsub.pp

diff --git a/modules/roles/files/pubsub/rabbitmq-mgmt.config b/modules/roles/files/pubsub/rabbitmq-mgmt.config
new file mode 100644 (file)
index 0000000..4710fb5
--- /dev/null
@@ -0,0 +1,12 @@
+,{rabbitmq_management,
+       [{listener, [
+               {port,     15672},
+               {ssl,      true},
+               {ssl_options, [
+                       {cacertfile,"/etc/ssl/debian/certs/ca.crt"},
+                       {certfile,"/etc/ssl/debian/certs/thishost-server.crt"},
+                       {keyfile,"/etc/ssl/debian/keys/thishost-server.key"},
+                       {verify,verify_none},
+                       {fail_if_no_peer_cert,false}]}
+       ]}
+]}
index 43f2c6f2044dacddd163bb149844adec3bf9e591..9cc7bb7d9e5b32e0741ca6911d190b5f8a97a6c4 100644 (file)
@@ -31,6 +31,12 @@ class roles::pubsub {
                source => 'puppet:///modules/roles/pubsub/rabbitmq.config'
        }
 
+       concat::fragment { 'rabbit_mgmt_ssl':
+               target => '/etc/rabbitmq/rabbitmq.config',
+               order  => 55,
+               source => 'puppet:///modules/roles/pubsub/rabbitmq-mgmt.config'
+       }
+
        rabbitmq_user { 'admin':
                admin    => true,
                password => $admin_password,