Sha256: 4ce82ab52e4386601224ec006c790c087179bba0cf7f904c6ae682ca5784727c

Contents?: true

Size: 1.52 KB

Versions: 15

Compression:

Stored size: 1.52 KB

Contents

# This is an example motherbrain plugin.
#
# To see a list of all commands this plugin provides, run:
#
#   mb <%= config[:name] %> help
#
# For documentation, visit https://github.com/RiotGames/motherbrain

# When bootstrapping a cluster for the first time, you'll need to specify which
# components and groups you want to bootstrap.
stack_order do
<% config[:groups].each do |group| -%>
  bootstrap 'app::<%= group %>'
<% end -%>
end

# Components are logical parts of your application. For instance, a web app
# might have "web" and "database" components.
component 'app' do
  # Replace this with a better description for the component.
  description "<%= config[:name].capitalize %> application"

  # You can signify that a component's version is mapped to an environment
  # attribute, and then change the version with:
  #
  #   mb <%= config[:name] %> upgrade --components app:1.2.3
  #
  versioned # This defaults to 'app.version'
  # You can also specify a custom attribute.
  # versioned_with '<%= config[:name] %>.version'

  # Groups are collections of nodes linked by a search. If you only have one
  # group per component, it's typical to use "default" as the group name.  An
  # example of multiple groups would be a "database" component, with "master"
  # and "slave" groups.
  group 'default' do
<% config[:groups].each do |group| -%>
    recipe '<%= config[:name] %>::<%= group %>'
<% end -%>
    # In addition to recipes, you can also search by roles and attributes:
    # role 'web_server'
    # chef_attribute 'db_master', true
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
motherbrain-1.5.0 templates/motherbrain.rb
motherbrain-1.4.0 templates/motherbrain.rb
motherbrain-1.3.0 templates/motherbrain.rb
motherbrain-1.2.1 templates/motherbrain.rb
motherbrain-1.2.0 templates/motherbrain.rb
motherbrain-1.1.3 templates/motherbrain.rb
motherbrain-1.1.2 templates/motherbrain.rb
motherbrain-1.1.1 templates/motherbrain.rb
motherbrain-1.1.0 templates/motherbrain.rb
motherbrain-1.0.0 templates/motherbrain.rb
motherbrain-0.14.5 templates/motherbrain.rb
motherbrain-0.14.4 templates/motherbrain.rb
motherbrain-0.14.3 templates/motherbrain.rb
motherbrain-0.14.2 templates/motherbrain.rb
motherbrain-0.13.1 templates/motherbrain.rb