Skip to content

kkeane/chef-frontaccounting

Repository files navigation

frontaccounting-cookbook

Installes FrontAccounting (http://www.frontaccounting.com)

Supported Platforms

Tested on CentOS 6.6. Other platforms may work, possibly with some modifications.

Attributes

Key Type Description Default
['frontaccounting']['baseurl'] String The URL file path under which the accounting package should be available /accounting
['frontaccounting']['documentroot'] String The directory in the file system where the root of the Web server is located. The baseurl will be added later /var/www/html
['frontaccounting']['servername'] String The server name (for virtual hosting) The machine's FQDN
['frontaccounting']['fileuser'] String The user name who should own the files in the application root
['frontaccounting']['filegroup'] String The group name who should own the files in the application apache
['frontaccounting']['company'] Array Information about each company in the Frontaccounting database. Note that the password is not included here; you must pass the passwords using node.run_state instead. ['companyname'] = "Sample Company Inc."
['dbhost'] = "localhost"
['dbname'] = "frontacc"
['dbuser'] = "frontacc"

Usage

frontaccounting::default

Set up a Web server, for instance using the httpd cookbook. If you are using nginx or other servers, you may need additional work to make php work.

Set any attributes you need as non-default.

Specify the database password using the node.run_state[:frontaccounting_dbpw] mechanism:

node.run_state[:frontaccounting_dbpw] = 'password'

Include frontaccounting in your node's run_list:

{
  "run_list": [
    "recipe[frontaccounting::default]"
  ]
}

After this cookbook is installed, FrontAccounting will have a single company. The COA, user names and passwords come from the database en_US-demo.sql that are shipped with FrontAccounting. As of this writing, the initial user names and passwords are:

adminpassword
demouserpassword

You should immediately change the user names and passwords for these users.

License and Authors

Author:: North County Tech Center, LLC ([email protected]) License:: GPLv3

About

Chef cookbook to manage frontaccounting

Resources

License

Stars

Watchers

Forks

Packages

No packages published