Giter Club home page Giter Club logo

chef-dash's Introduction

chef-dash-cookbook

Supported Platforms

Debian 7.x (wheezy)

Attributes

Usage

chef-dash::dash-prod

Include chef-dash::dash-prod in your node's run_list to install the dashboard wirh 'production' settings:

{
  "run_list": [
    "recipe[chef-dash::dash-prod]"
  ]
}

chef-dash::dash-dev

To setup a development environment:

Clone https://github.com/hybris/dash.git

into a folder right beside chef-dash, changedir into chef-dash and run vagrant up.

For example:

cd workspace

git clone [email protected]:hybris/dash.git

git clone [email protected]:hybris/chef-dash.git

cd chef-dash

vagrant up

Point your browser to

http://localhost:8080/

and you have a running dashboard.

License and Authors

Licensed under Apache v2.0 License

Author:: Christoph Lukas ([email protected]) Author:: Alexander Birk ([email protected])

chef-dash's People

Contributors

birka avatar

Watchers

James Cloos avatar Christoph Lukas avatar  avatar

chef-dash's Issues

Allow for usage of a corporate package repo and key server.

Hi Christoph and Alex,

We have "new secure VLAN" templates for the pipeline hosts which I am currently testing. These have no access to download anything from the internet. Therefore we had to modify the dashboard cookbook so that there is no dependency at all on any external repository, this includes the Ubuntu key-server. One piece of this task, was that the dash-debian-repo recipe in chef-dash which contacts the Ubuntu key server also had to be changed. After discussing, we decided to make chef-dash more flexible to allow usage of a corporate repo to install dashboard packages. We will add the dash packages key via "apt-key add" if using a corporate repo. So,

  1. Introduce an attribute "use-corp-repo" which can be set to "true" or "false". Defaults to "false" to use the Pingworks repo and Ubuntu key server. if set to "true" downloads the dashboard packages (scripts, front-end and back-end) from the corporate repo and provisions the dash packages key from a cookbook file using "apt-key add".
  2. However this means we have to also move the install_method choice over to chef-dash. So I will introduce a case statement on the value of the "use-corp-repo" attribute, which sets the install_method to "dpkg" when "use-corp-repo" is "true" and sets it to "apt" when it is "false"
  3. This means splitting all package installation recipes into two choices for "dpkg" and "apt" install methods based on the value of "use-corp-repo".

a2ensite error on debian8

Hey guys,
I have been using your cookbook for some time, and on my debian7 box it worked quite well, but after changing to debian8 this happens:
`bash[enable_apache_site] action run

       ================================================================================
       Error executing action `run` on resource 'bash[enable_apache_site]'
       ================================================================================

       Mixlib::ShellOut::ShellCommandFailed
       ------------------------------------
       Expected process to exit with [0], but received '1'
       ---- Begin output of "bash"  "/tmp/chef-script20160210-1181-d4epna" ----
       STDOUT: 
       STDERR: ERROR: Site dash-prod does not exist!
       ---- End output of "bash"  "/tmp/chef-script20160210-1181-d4epna" ----
       Ran "bash"  "/tmp/chef-script20160210-1181-d4epna" returned 1`

After some test it seem the problem is that the config file is called "dash-prod" and not "dash-prod.conf"

vagrant@default-debian-8:/etc/apache2/sites-available$ sudo a2ensite 000-default.conf dash-prod default-ssl.conf vagrant@default-debian-8:/etc/apache2/sites-available$ sudo a2ensite dash-prod ERROR: Site dash-prod does not exist! vagrant@default-debian-8:/etc/apache2/sites-available$ sudo mv dash-prod dash-prod.conf vagrant@default-debian-8:/etc/apache2/sites-available$ sudo a2ensite dash-prod Enabling site dash-prod. To activate the new configuration, you need to run: service apache2 reload

debian wheezy not properly tested

Although stated in the readme:

Supported Platforms
Debian 7.x (wheezy)

getting the URL from the kitchen.yml:

➜  pingworks-chef-dash git:(master) curl -I http://vagrant.pingworks.net/opscode_debian-7.7_chef-11.16.4-1.box
HTTP/1.1 404 Not Found
Date: Mon, 18 Apr 2016 15:33:27 GMT
Server: Apache/2.2.22 (Debian)
Vary: Accept-Encoding
Content-Type: text/html; charset=iso-8859-1

➜  pingworks-chef-dash git:(master)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.