Module: VagrantSubutai::Configs::Blueprint

Defined in:
lib/vagrant-subutai/configs/configs.rb,
lib/vagrant-subutai/configs/configs.rb

Defined Under Namespace

Modules: MODE

Constant Summary collapse

SCHEME =
{
  name:            'name',
  description:     'My static website',
  version:         'Blueprint version',
  'author':        'Author',
  'ssh-key':        'ssh-key-name',
  containers:      [
                    {
                      hostname:   'www',
                      template:   'apache',
                      size:       'TINY',
                      'peer-criteria':   'HTTP-GROUP',
                      'port-mapping':     [
                                           {
                                             protocol:      'http',
                                             domain:        '${domain}',
                                             'internal-port':  '80',
                                             'external-port':  '80'
                                           },
                                           {
                                             protocol:       'tcp',
                                             domain:         '${domain}',
                                             'internal-port':  '22',
                                             'external-port':  '4040'
                                           }
                                          ]
                    }
                   ],
  'peer-criteria':   [
                      {
                        name:                   'HTTP-GROUP',
                        'max-price':            '5',
                        'avg-cpu-load':         '50',
                        'min-free-ram':         '128',
                        'min-free-disk-space':  '10'
                      }
                     ],
  'ansible-configuration': {
      'source-url': 'zip_file_url',
      'ansible-playbook': 'any_name',
      'extra-vars': [
          {
              'key': 'any_name',
              'value': 'any_name_value'
          }
      ],
      'groups': [
          {
              'name': 'any_name',
              'python-interpreter': '/usr/bin/python3',
              'hostnames': [
                  'hostname_of_container'
              ]
          }
      ]
  },
  'user-variables':  {
                        any_name: {
                                  description: 'Select your domain or create new one',
                                  type:        'domain',
                                  default:     'site.env.subutai.cloud',
                                  validation:  '[a-zA-Z0-9.-]+'
                                }
                      }
}.freeze
CONTAINER_SIZES =
%w(TINY SMALL MEDIUM LARGE HUGE).freeze
FILE_NAME =
'Subutai.json'.freeze
ATTEMPT =
10.freeze