lab-dexter / smart-recycling-bins

Other
1 stars 0 forks source link

Deployment POC with CM tool #4

Closed asmontas-i closed 6 years ago

asmontas-i commented 6 years ago

Instead of running custom script we need to adopt proper CM tool. Considerations need to be taken into account regarding environment restrictions.

asmontas-i commented 6 years ago

Some documentation, examples: https://docs.chef.io/install_bootstrap.html https://jeffswindel.blogspot.lt/2017/08/install-chef-client-on-raspberry-pi.html

Reference to cm-poc branch. On a hosted chef new org has been created: dexter-lab-srb and initial rpi has been bootstrapped. Initial bootstrapping time is about 40mins.

asmontas-i commented 6 years ago

Initial bootstrapping and first chef-client run which fully deploys srb application with it's dependencies takes about 32mins. Chef cookbook needs to be parametrized.

asmontas-i commented 6 years ago

Chef cookbook has been parametrised and tested. Validator key still needs to be placed manually when bootstrapping a new node. If we have more RPIs to setup, we'll need an RPI image with the validator key preset.

Closing the issue.