Chef cookbook for installing resourcespace
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
attributes
recipes
templates/default
.gitignore
README.md
metadata.rb

README.md

chef-resourcespace

Installs and configures resourcespace

Supported Platforms

Tested on Ubuntu 12.04

Attributes

Key Type Description Default
['resourcespace']['config']['mysql'] Hash Hash that contains the database connection configuration. Without this the recipe won't work n/a (required)
['resourcespace']['config']['baseurl'] String The base url of the resourcespace installation n/a (required)
['resourcespace']['config']['email'] Hash Hash that contains the email configs for the resourcespace configuration n/a (required)
['resourcespace']['config']['spider_password'] String Make sure to create a secure one! n/a (required)
['resourcespace']['config']['scramble_key'] String Make sure to create a secure one! n/a (required)
['resourcespace']['config']['api_scramble_key'] String Make sure to create a secure one! n/a (required)
['resourcespace']['revision'] String revision of the resourcespace source to checkout HEAD
['resourcespace']['root_dir'] String Directory to place the resourcespace installation /var/www/resourcespace
'resourcespace']['config']['others'] Hash Other resourcespace configurations none (optional)

Usage

chef-resourcespace::default

Include chef-resourcespace in your node's run_list:

{
  "run_list": [
    "recipe[resourcespace]"
  ]
}

Make sure to add the required json attributes. An example if you are using Vagrant:

config.vm.provision :chef_solo do |chef|
  chef.run_list = [
      "recipe[resourcespace]"
  ]

  chef.json = {
    mysql: {
      server_debian_password: 'securedebpass',
      server_root_password: 'securerootpass',
      server_repl_password: 'securereplpass'
    },
    resourcespace: {
      config: {
        mysql: {
          mysql_server: 'localhost',
          mysql_username: 'resourcespace',
          mysql_password: 'super_secret',
          mysql_db: 'resourcespace'
        },
        baseurl: 'http://localhost:10080',
        email: {
          email_from: 'resourcespace@example.com',
          email_notify: 'resourcespace@example.com'
        },
        spider_password: 'mytuba5aSEGA',
        scramble_key: '5YvAhAgYdyny',
        api_scramble_key: 'nEQYXATUmuzU'
      }
    }
  }
end

When asked for a login, Resourcespace's default username and password is admin

Contributing

  1. Fork the repository on Github
  2. Create a named feature branch (i.e. add-new-recipe)
  3. Write you change
  4. Write tests for your change (if applicable)
  5. Run the tests, ensuring they all pass
  6. Submit a Pull Request

License and Authors

Author:: Lester Celestial (lesterc@sourcepad.com)

Copyright 2009-2014 SourcePad, Inc

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.