GithubHelp home page GithubHelp logo

Comments (7)

cf-gitbot avatar cf-gitbot commented on July 2, 2024

We have created an issue in Pivotal Tracker to manage this. Unfortunately, the Pivotal Tracker project is private so you may be unable to view the contents of the story.

The labels on this github issue will be updated when the story is started.

from cf-rabbitmq-release.

michaelklishin avatar michaelklishin commented on July 2, 2024

You want definitions import. I highly recommend not reinventing them on top of BOSH.

from cf-rabbitmq-release.

MatthiasWinzeler avatar MatthiasWinzeler commented on July 2, 2024

Are you talking about Load definitions at startup?

If we can specify this in the deployment manifest - which is not possible currently - this could indeed solve our problem.

from cf-rabbitmq-release.

michaelklishin avatar michaelklishin commented on July 2, 2024

@MatthiasWinzeler yes, that section. I'm pretty sure there is a way to specify arbitrary config settings in Ops Manager, so presumably there should be a way to do that with straight BOSH.

Even if somehow that's not possible or very difficult, making that possible should be the goal instead of reinventing definitions import with BOSH and rabbitmqctl.

from cf-rabbitmq-release.

MatthiasWinzeler avatar MatthiasWinzeler commented on July 2, 2024

@michaelklishin You're right, we could set the config entry load_definitions using the rabbitmq-server.config key.

But: load_definitions needs a JSON file on the server itself - so we would need to add a mechanism to the BOSH release to write this file to the server.
What do you guys think about this:

# Introduce a new configuration item 
rabbitmq-server.load_definitions:
  description: definitions (JSON) to be imported on RabbitMQ startup
  default: null
  example: |
    {
	"users": [{
		"name": "defuser",
		"password": "defpasswd",
		"tags": "administrator"
	}],
	"vhosts": [{
		"name": "from-def"
	}],
	"permissions": [{
		"user": "defuser",
		"vhost": "from-def",
		"configure": ".*",
		"write": ".*",
		"read": ".*"
	}]
}

This would then write the contents as a file to the FS and point the RMQ config entry to it.

from cf-rabbitmq-release.

carlo-colombo avatar carlo-colombo commented on July 2, 2024

@MatthiasWinzeler we recently implemented this feature. We expose load_definitions property in the rabbitmq-server. Differently from your suggestion the property is not a json serialized as string but directly a structure that will be serialized and loaded using http://www.rabbitmq.com/management.html#load-definitions.

The feature is available from release v226.6

rabbitmq-server.load_definitions:
 description: definitions (JSON) to be imported on RabbitMQ startup
 default: null
 example:
   vhosts:
   -  {name: from-def}
   users:
   - name: defuser
     password: pwd
     tags: administrator
   permissions:
   - user: defuser
     vhost: from-def
     configure: '*.'
     write: '.*'
     read: '.*'

from cf-rabbitmq-release.

MatthiasWinzeler avatar MatthiasWinzeler commented on July 2, 2024

Nice to hear - thank you!

from cf-rabbitmq-release.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.