Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Importing configuration using mongorestore for initial provisioning #12

Closed
henrikjohansen opened this issue Jan 18, 2015 · 1 comment
Closed

Comments

@henrikjohansen
Copy link

In order to recreate / provision a fully functioning Graylog cluster we would need to have access to most if not all of the REST resources using LWRPs or similar - that's a lot of work to create, maintain, test, etc.

Since the configuration is persisted in mongo it might be a good idea to support restoring the entire configuration from a mongodump - something along the lines of this:

file 'mongorestore_lockfile' do
action :create_if_missing
notifies :run, 'execute[run_mongorestore]', :immediately
end

execute 'run_mongorestore' do
command 'mongorestore -foo - bar ...'
action :nothing
end

I might do a PR if your interested in having such a feature ?

@mariussturm
Copy link
Contributor

Hi Henrik,
thanks for this idea! But at the moment I would like to go with your other idea #11 Yes it is a lot of work but we could reuse the it in other projects like the Puppet manifest as well. The idea is to extract a ruby gem with all REST resources to make it easy for people to build something against the GL api.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants