rabbitmq-vhost-exists

Description

Create RabbitMQ vhost.

Variables

Name Type Default Description

name

string --

The name of the vhost. Required

Code

doc:
  short_help: Create RabbitMQ vhost.

args:
  name:
    doc:
      short_help: The name of the vhost.
    type: string
    required: true

frecklets:
- frecklet:
    name: rabbitmq_vhost
    type: ansible-module
    desc:
      short: "create rabbitmq vhost '{{:: name ::}}'"
    properties:
      idempotent: true
      internet: false
      elevated: true
  task:
    become: true
  vars:
    name: '{{:: name ::}}'
    state: present
frecklecute --community rabbitmq-vhost-exists --help

Usage: frecklecute rabbitmq-vhost-exists [OPTIONS]

  Create RabbitMQ vhost.

Options:
  --name NAME  The name of the vhost.  [required]
  --help       Show this message and exit.
# -*- coding: utf-8 -*-


#
# module path: pycklets.rabbitmq_vhost_exists.RabbitmqVhostExists
#


from dataclasses import dataclass
from pyckles import AutoPycklet
from typing import *    # noqa

@dataclass
class RabbitmqVhostExists(AutoPycklet):
    """Create RabbitMQ vhost.

       Args:
         name: The name of the vhost.

    """

    FRECKLET_ID = "rabbitmq-vhost-exists"

    name: str = None


    def __post_init__(self):
        super(RabbitmqVhostExists, self).__init__(var_names=["name"])


frecklet_class = RabbitmqVhostExists
# -*- coding: utf-8 -*-


#
# module path: pycklets.rabbitmq_vhost_exists.RabbitmqVhostExists
#


from pyckles import AutoPycklet

class RabbitmqVhostExists(AutoPycklet):
    """Create RabbitMQ vhost.

       Args:
         name: The name of the vhost.

    """

    FRECKLET_ID = "rabbitmq-vhost-exists"

    def __init__(self, name=None):

        super(RabbitmqVhostExists, self).__init__(var_names=["name"])
        self._name = name

    @property
    def name(self):
        return self._name

    @name.setter
    def name(self, name):
        self._name = name



frecklet_class = RabbitmqVhostExists