Redcloud icon indicating copy to clipboard operation
Redcloud copied to clipboard

Non-Interactive Deployment

Open heywoodlh opened this issue 5 years ago • 5 comments

First off, thanks for a great project.

I'm working on Ansible playbooks to deploy Redcloud. Is there a way to deploy Redcloud on a remote machine without requiring user interaction? Not using the menu, but rather supplying all the configuration via a config file or arguments to redcloud.py.

My desired workflow is to non-interactively git clone the repository and run python redcloud.py/installing without a dialog.

Anyway, any suggestions would be great!

heywoodlh avatar Jun 26 '19 22:06 heywoodlh

Hello, thank you for checking Redcloud out. I have not yet planned when I will be adding new features to Redcloud, but arguments or config fold were part of the potential new feature. Is that what you had in mind? Cheers!

khast3x avatar Jun 27 '19 15:06 khast3x

Yep, some way to pass the configuration to RedCloud without requiring user interaction just to get it running would be awesome (arguments or a config file).

Btw, most of my fellow security analysts on my team and myself have been playing with RedCloud over the past few days and we think we'll probably add it to our pen-testing kit. It's a great tool!

heywoodlh avatar Jun 28 '19 15:06 heywoodlh

Oh wow what nice feedback to read, thanks! I'll keep this issue opened until I find the time to add this. Cheers!

khast3x avatar Jun 29 '19 01:06 khast3x

Hey actually, I just decided to docker-compose build and docker-compose up the RedCloud installation and that worked perfectly fine. Here are the Ansible tasks for it (for the record):

---
- name: git clone https://github.com/khast3x/Redcloud.git /opt/redcloud
  git:
    repo: https://github.com/khast3x/Redcloud.git
    dest: /opt/redcloud
  become: true
- name: mkdir -p /opt/portainer/data
  file:
    path: /opt/portainer/data
    state: directory
  become: true
- name: docker-compose build && docker-compose up in /opt/redcloud
  docker_compose:
    build: yes
    project_src: /opt/redcloud/ 
  become: true

For my purposes running docker-compose is sufficient for what I need so if you want to close this issue you totally can.

heywoodlh avatar Jul 03 '19 16:07 heywoodlh

Smart workaround. Glad to know. I'll keep the issue opened, it's on the todo list anyway.
Cheers!

khast3x avatar Jul 03 '19 22:07 khast3x