aspyatkin / yarn-cookbook

Chef cookbook to install Yarn package manager
https://supermarket.chef.io/cookbooks/yarn
MIT License
5 stars 6 forks source link

Centos (RHEL) support #2

Closed daften closed 7 years ago

daften commented 7 years ago

I've updated the cookbook, rearranged some things a bit and added CentOS support. I've tested on Ubuntu 16.04 and CentOS 7.2

Ubuntu 14.04 usage of yarn fails because package install for node.js gets a version < 4, so need to switch to source install.

I've also added kitchen stuff to test things quicker

aspyatkin commented 7 years ago

@daften Thank you very much! Unfortunately, I'm not much knowledgeable about cookbook testing as well as CentOS systems, that's why it'll probably take me some time to get into know about these things so as to be sure everything works correctly before merging.

daften commented 7 years ago

Kitchen CI allows you to perform tests or just converges on many systems in a row. The systems (and potential test suites) are defined in the kitchen.yml file: http://kitchen.ci/ So if you do kitchen test, it will now do a converge on debian 7, debian 8, ... They all worked for me. If yarn works, depends mostly on if node.js is installed correctly, but yarn itself was installed fine.

And take your time, I can work from my fork for now :)