saltstack-formulas / node-formula

Manage node.js with SaltStack
http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
Other
26 stars 102 forks source link

Correct packages and fpm as checkinstall alternative for RedHat and CentOS #31

Closed JulioECastro closed 7 years ago

JulioECastro commented 8 years ago

I send you a proposal to solve some problems with RedHat and CentOS. I used gem FPM as alternative to Checkinstall.

Regards.-

gravyboat commented 8 years ago

Hmm, I think we could improve on this if the package stuff was moved into the map and then loaded from there. Building from scratch should also be in a different state I think if we can manage it.

myoung34 commented 7 years ago

@JulioECastro you should use grains['os_family'] instead of grains['os'] to support derivatives like AWS Linux

[ec2-user@ip-10-0-3-149 ~]$ sudo salt-call grains.get os
local:
    Amazon
[ec2-user@ip-10-0-3-149 ~]$ sudo salt-call grains.get os_family
local:
    RedHat
myoung34 commented 7 years ago

Tested it on AWS Linux (centos 6 fork) and it works as expected.