Sha256: c0050e31a5dca26eee9f85e64183e3f0d55b368dc4c99f27bafb424bc0deaff5

Contents?: true

Size: 989 Bytes

Versions: 1

Compression:

Stored size: 989 Bytes

Contents

Vagabond::Vagabondfile.describe do
  defaults do
    template 'ubuntu_1204'
    environment 'testing'
    run_list ['recipe[apt]']
  end
  definitions do
    database do
      template 'ubuntu_1204'
      run_list ['recipe[internal::db]']
    end
    web_site do
      run_list ['recipe[internal::website]']
      attributes do
        apache do
          ports %w(80 443)
        end
      end
    end
  end
  nodes do
    db do
      definition 'database'
      environment 'production'
      custom_specs %w(blah blah blah)
    end
    db_slave.definition 'database'
    db_slave.attributes.internal.database.role 'slave'
  end
  clusters do
    db ['db', 'db_slave']
  end
  specs.clusters do
    db do
      overrides.environment 'staging'
      provision do
        times 4
        spec :after_2, :after_4
        after(2) do
          run.on.db '/usr/bin/fail_database'
          pause 3
        end
        after.every.run '/usr/bin/log_database_state'
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vagabond-0.2.10 Vagabondfile.sample